* [ios] wip runtime styling * [ios, macos] Outlined header templates * [ios, macos] cleanup and use appropiate data types * [ios, macos] removed refs to mbgl and added convenient color methods on UIColor and NSColor * [ios, macos] updated header template, included doc string * [ios, macos] outlined template for layer implementation files * [ios, macos] moved script to platform/darwin and updated comments * [ios, macos] Cleaned up the implementation template * [ios, macos] removed unused function and added support for more datatypes * [ios, macos] overhauling the type protocols * [ios, macos] removed unnecessary style classes * [ios, macos] added support for more types * [ios, macos] fixed string and number prop values * [ios, macos] enum getters * [ios, macos] added removeLayer() and removed unused layer ref * [ios, macos] fixed remaining layer types and converted style layer into a protocol * [ios, macos] fixed addLayer() and added example for line layer * [ios] GeoJSON source now works * [ios] fixed raster layer and raster source * [ios] fixed attr prop number and outlined prop function * [ios] wip functions * [ios] bool and float function fix * [ios] cleanup * [macos] fixed support for macos * [ios] fixed string functions * [ios] extended array functions * [ios] added tests and fixed a few bugs * [ios] less verbose functions and improved tests * [ios, macos] Removed unnecessary use of default arguments Default arguments aren’t supported in Node v4, and they aren’t needed here anyways, because we’re only testing for truthiness. * [ios, macos] Enum setters Rely on a macro instead of category methods to specialize the setter implementation for enum attributes, since generic types are disallowed in Objective-C method signatures and mbgl::style::PropertyType must be type-qualified. * [ios, macos] Got macOS closer to parity w/ iOS Added various classes and test classes to the macOS workspace. Also fixed lots of compiler errors and updated macosapp runtime styling example to use the new dictionary syntax for function stops. Updated all conversions from Objective-C stops to C++ stops to enumerate over the dictionary. Fixed compiler errors in enum setter implementations. Also corrected path to script in generated file comments. * [ios, macos] Added EJS templates to project * [ios, macos] Code formatting Made code format more consistent. * [ios, macos] Spelled out ID Cocoa convention is to always spell out “ID” as “identifier”, in part to avoid confusion with the id keyword. Also, URL is capitalized in most contexts, including property names. * [ios, macos] Grouped related headers together * [ios, macos] Cleaned up layer transformation Also added support for converting background layers into Objective-C. * [ios, macos] Cleaned up tests Also made the tests work on macOS by introducing a new window to host the map. * [ios, macos] Replaced TODOs with #warnings * [ios] convert array based property values * [ios, macos] color function/undefined getter * [ios, macos] fixed function/undefined getters for bool and float properties * [ios, macos] more function/undefined property getters * [ios, macos] more type conversion and cleanup * [ios, macos] disable macos runtime styling tests for now * [ios, macos] cleaned up style code script * [ios, macos] more type conversion * [ios] added a base layer to handle visibility min/max zoom * [macos] fixed base layer * [ios, macos] use accessor methods * [ios, macos] cleanup * [ios, macos] add geojson to ios and macos * [macos] rebase fix * [ios, macos] fixed enum getters and added tests for enums * [ios, macos] added an update method to base layer * [ios, macos] added some documentation * [ios, macos] docs * [ios, macos] removed refs to filters for now * [ios, macos] various tail work * [ios, macos] missing import and incorrect type
149 lines
9.8 KiB
XML
149 lines
9.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="16A254g" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
|
<dependencies>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10117"/>
|
|
</dependencies>
|
|
<objects>
|
|
<customObject id="-2" userLabel="File's Owner" customClass="MapDocument">
|
|
<connections>
|
|
<outlet property="mapView" destination="q4d-kF-8Hi" id="7hI-dS-A5R"/>
|
|
<outlet property="mapViewContextMenu" destination="XbX-6a-Mgy" id="YD0-1r-5N2"/>
|
|
<outlet property="window" destination="cSv-fg-MAQ" id="TBu-Mu-79N"/>
|
|
</connections>
|
|
</customObject>
|
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
|
<window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" frameAutosaveName="MBXMapWindow" animationBehavior="default" id="cSv-fg-MAQ">
|
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" fullSizeContentView="YES"/>
|
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
|
<rect key="contentRect" x="388" y="211" width="512" height="480"/>
|
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/>
|
|
<view key="contentView" id="TuG-C5-zLS">
|
|
<rect key="frame" x="0.0" y="0.0" width="512" height="480"/>
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
<subviews>
|
|
<customView translatesAutoresizingMaskIntoConstraints="NO" id="q4d-kF-8Hi" customClass="MGLMapView">
|
|
<rect key="frame" x="0.0" y="0.0" width="512" height="480"/>
|
|
<connections>
|
|
<outlet property="delegate" destination="-2" id="dh2-0H-jFZ"/>
|
|
<outlet property="menu" destination="XbX-6a-Mgy" id="dSu-HR-Kq2"/>
|
|
</connections>
|
|
</customView>
|
|
</subviews>
|
|
<constraints>
|
|
<constraint firstAttribute="bottom" secondItem="q4d-kF-8Hi" secondAttribute="bottom" id="L2t-Be-qWL"/>
|
|
<constraint firstItem="q4d-kF-8Hi" firstAttribute="top" secondItem="TuG-C5-zLS" secondAttribute="top" id="T8A-o3-Bhq"/>
|
|
<constraint firstItem="q4d-kF-8Hi" firstAttribute="leading" secondItem="TuG-C5-zLS" secondAttribute="leading" id="fGH-YW-Qd3"/>
|
|
<constraint firstAttribute="trailing" secondItem="q4d-kF-8Hi" secondAttribute="trailing" id="yfG-iG-K4C"/>
|
|
</constraints>
|
|
</view>
|
|
<toolbar key="toolbar" implicitIdentifier="A3AC6577-4712-4628-813D-113498171A84" allowsUserCustomization="NO" displayMode="iconOnly" sizeMode="regular" id="DTc-AP-Bah">
|
|
<allowedToolbarItems>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="bld-8W-Wgg"/>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="z4l-5x-MzK"/>
|
|
<toolbarItem implicitItemIdentifier="2CB58C0A-7B95-4233-8DD3-F94BFE7D3061" label="Share" paletteLabel="Share" image="NSShareTemplate" id="XJT-Ho-tuZ" customClass="ValidatedToolbarItem">
|
|
<nil key="toolTip"/>
|
|
<size key="minSize" width="40" height="32"/>
|
|
<size key="maxSize" width="48" height="32"/>
|
|
<button key="view" verticalHuggingPriority="750" id="y6e-ev-rVL">
|
|
<rect key="frame" x="0.0" y="14" width="48" height="32"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSShareTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="TBK-Ra-XzZ">
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
</buttonCell>
|
|
</button>
|
|
<connections>
|
|
<action selector="showShareMenu:" target="-1" id="fCB-HP-iou"/>
|
|
</connections>
|
|
</toolbarItem>
|
|
<toolbarItem implicitItemIdentifier="BA3542AF-D63A-4893-9CC7-8F67EF2E82B0" label="Style" paletteLabel="Style" id="u23-0z-Otl" customClass="ValidatedToolbarItem">
|
|
<nil key="toolTip"/>
|
|
<size key="minSize" width="100" height="26"/>
|
|
<size key="maxSize" width="120" height="26"/>
|
|
<popUpButton key="view" verticalHuggingPriority="750" id="Tzm-Cy-dQg">
|
|
<rect key="frame" x="0.0" y="14" width="120" height="26"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<popUpButtonCell key="cell" type="roundTextured" title="Streets" bezelStyle="texturedRounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="wvt-tP-O3a" id="3PJ-qK-Oh3">
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
<font key="font" metaFont="menu"/>
|
|
<menu key="menu" id="xf3-qk-IhF">
|
|
<items>
|
|
<menuItem title="Streets" state="on" tag="1" id="wvt-tP-O3a"/>
|
|
<menuItem title="Outdoors" tag="2" id="RkE-lp-fL9"/>
|
|
<menuItem title="Light" tag="3" id="R4X-kt-HHb"/>
|
|
<menuItem title="Dark" tag="4" id="jUC-5X-0Zx">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
</menuItem>
|
|
<menuItem title="Satellite" tag="5" id="CTe-e2-o42">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
</menuItem>
|
|
<menuItem title="Satellite Streets" tag="6" id="7ly-oA-0ND">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
</menuItem>
|
|
</items>
|
|
</menu>
|
|
</popUpButtonCell>
|
|
</popUpButton>
|
|
<connections>
|
|
<action selector="setStyle:" target="-1" id="2Kw-9i-a3G"/>
|
|
</connections>
|
|
</toolbarItem>
|
|
</allowedToolbarItems>
|
|
<defaultToolbarItems>
|
|
<toolbarItem reference="XJT-Ho-tuZ"/>
|
|
<toolbarItem reference="z4l-5x-MzK"/>
|
|
<toolbarItem reference="u23-0z-Otl"/>
|
|
</defaultToolbarItems>
|
|
<connections>
|
|
<outlet property="delegate" destination="-2" id="V9D-gS-Tvu"/>
|
|
</connections>
|
|
</toolbar>
|
|
<connections>
|
|
<binding destination="-2" name="displayPatternTitle1" keyPath="mapView.centerCoordinate" id="wtz-AV-bG1">
|
|
<dictionary key="options">
|
|
<string key="NSDisplayPattern">%{title1}@</string>
|
|
<string key="NSValueTransformerName">LocationCoordinate2DTransformer</string>
|
|
</dictionary>
|
|
</binding>
|
|
<outlet property="delegate" destination="-2" id="HEo-Qf-o6o"/>
|
|
</connections>
|
|
</window>
|
|
<menu title="Map View" id="XbX-6a-Mgy">
|
|
<items>
|
|
<menuItem title="Drop Pin" id="KiK-wh-YwN">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
<connections>
|
|
<action selector="dropPin:" target="-1" id="ZH6-Tj-IJT"/>
|
|
</connections>
|
|
</menuItem>
|
|
<menuItem title="Remove Pin" id="Zhx-30-VmE">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
<connections>
|
|
<action selector="removePin:" target="-1" id="w0R-0B-7mG"/>
|
|
</connections>
|
|
</menuItem>
|
|
<menuItem title="Select Features" id="za5-bY-mdf">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
<connections>
|
|
<action selector="selectFeatures:" target="-1" id="ikt-CZ-yZT"/>
|
|
</connections>
|
|
</menuItem>
|
|
<menuItem title="Runtime styling" id="qZJ-mM-bLj">
|
|
<modifierMask key="keyEquivalentModifierMask"/>
|
|
<connections>
|
|
<action selector="runtimeStyling:" target="-1" id="gN9-lw-fG8"/>
|
|
</connections>
|
|
</menuItem>
|
|
</items>
|
|
<connections>
|
|
<outlet property="delegate" destination="-2" id="oHe-ZP-lyc"/>
|
|
</connections>
|
|
<point key="canvasLocation" x="820" y="254.5"/>
|
|
</menu>
|
|
</objects>
|
|
<resources>
|
|
<image name="NSShareTemplate" width="11" height="16"/>
|
|
</resources>
|
|
</document>
|