summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Make Xcode 7.3 the minimum required versionJason Wray2016-08-1830-56/+4
| | | | | | | | | - Removes nullability shims for Xcode 6. - Removes MGLTypes.h from files where it was only being used for nullability support. - Accepts that `NS_SWIFT_NAME` is not fully supported by Xcode 7.2 and lower. - Adds documentation about Xcode 7.3 requirement.
* [ios, macos] fixes #6056 backwards compatibility macro (#6075)Fredrik Karlsson2016-08-181-1/+1
|
* [ios, macos] reuse utility functionFredrik Karlsson2016-08-183-9/+31
|
* [ios, macos] fixes #5974 Move style classes API to MGLStyleFredrik Karlsson2016-08-184-2/+91
|
* [ios] #fixes 5961 omit style filter until it's implementedFredrik Karlsson2016-08-182-10/+0
|
* [ios, macos] Fixes #5975 Add source getter to MGLStyleFredrik Karlsson2016-08-187-6/+2364
|
* [ios, macos] Fixed compiler warning about std::moveMinh Nguyễn2016-08-181-1/+1
| | | | Fixes #5943.
* [ios, macos] Fixed incorrect assignment in style layer testsMinh Nguyễn2016-08-181-1/+1
| | | | Fixes #5992.
* [ios, macos] fixes #5969 remove function typeFredrik Karlsson2016-08-181-7/+0
|
* [ios, macos] fixes #5958 naming conventionsFredrik Karlsson2016-08-189-91/+91
|
* [ios, macos] More MGLGeoJSONSource optionsMinh Nguyễn2016-08-172-18/+70
| | | | | | MGLGeoJSONSource can now be initialized with GeoJSON data. Replaced the data property with a geoJSONData property and added features and URL properties alongside it. Each property may be set or unset based on how the object was initialized. Fixes #5965, fixes #5966.
* [ios, macos] Renamed Objective-C++ headers to .hMinh Nguyễn2016-08-1631-69/+70
| | | | | | Also removed a redundant reference to MGLStyle_Private.h in ios.xcodeproj. Fixes #5952.
* [ios] fix circular class referenceJustin R. Miller2016-08-161-1/+1
|
* fixes #5957: automatically call update() for iOS runtime style APIJustin R. Miller2016-08-1611-12/+120
|
* [ios, macos] Removed MGLSource.sourceType (#6028)Minh Nguyễn2016-08-164-11/+4
| | | Fixes #6027.
* [ios, macos] Accept absolute file paths as style URLs (#6026)Minh Nguyễn2016-08-162-0/+38
| | | | | It turns out that mbgl::AssetFileSource supports absolute file URLs in addition to relative file URLs. So replace the file: scheme with asset: while percent-escaping as necessary. Also added amsterdam.geojson to macos.xcodeproj for consistency with ios.xcodeproj.
* [ios, macos] Replaced testAAALoadPacks with a setUp method (#6007)Minh Nguyễn2016-08-151-12/+16
| | | XCTest apparently no longer executes tests in alphabetical order, so naming the test testAAALoadPacks doesn’t ensure it gets run first. Instead, put the pack loading test inside -setUp, but also put it inside a dispatch_once() block to ensure that it only gets run before the first offline storage test that gets run in the current process.
* Runtime styling API for iOS/macOS (#5727)Fredrik Karlsson2016-08-1169-1/+3438
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
* [ios, macos] Offline storage size APIMinh Nguyễn2016-07-183-0/+25
| | | | | | Added a property to MGLOfflineStorage that indicates the disk space occupied by all cached and offline resources. Fixes #5580.
* [core] Add support for $id key to filtersJohn Firebaugh2016-07-181-8/+9
| | | | https://github.com/mapbox/mapbox-gl-style-spec/issues/391
* [core] Clean-up threading #ifdefsThiago Marcos P. Santos2016-07-161-0/+13
|
* Merge branch 'release-ios-v3.3.0'Minh Nguyễn2016-07-142-2/+5
|\
| * [ios, macos] Reorganize jazzy’s navigation categories; cleanup docs (#5660)Jason Wray2016-07-122-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | An attempt to better surface relevant information. Includes slight cleanups of inline documentation. - Demotes MGLMapDebugMaskOptions to "Other Enums”. - Demotes MGLMapViewDecelerationRate* and MGLStyleDefaultVersion to "Other Constants”. - Demotes MGLOfflinePack's less significant global types. - Demotes MGLAnnotationVerticalAlignment and documents its usage caveat. - Demotes MGLAnnotationViewDragState and removes extra asterisk. - Adds note to `MGLUserTrackingMode` about usage with `MGLMapView.userTrackingMode`. - MGLAccountManager is currently only used for access tokens. - Adds missing closing bracket.
* | [ios,macos] Partially revert 06af75Bruno de Oliveira Abinader2016-07-143-5/+5
| | | | | | | | | | Use static_cast<float> to convert from CGfloat when creating PropertyValue<float> and avoid breaking backwards-compatibility.
* | [ios,macos] Update {Line,Fill}Annotation properties setterBruno de Oliveira Abinader2016-07-133-8/+8
| |
* | [ios, macos] Updated MGLFeature ID documentationMinh Nguyễn2016-07-101-4/+14
| | | | | | Since #5514, feature IDs may be integers, unsigned integers, floating-point numbers, or strings, not just unsigned integers.
* | Merge branch 'release-ios-v3.3.0' into masterJesse Bounds2016-07-0724-50/+1096
|\ \ | |/
| * [ios] Move cache.db to a subdirectory (#5601)Jason Wray2016-07-072-49/+84
| | | | | | | | | | | | | | | | | | | | | | We cannot guarantee that the offline/ambient tile cache (cache.db) will be created in a timely manner, so it's safer to set the backup exclusion key on its containing directory. But, because we placed cache.db in the base of the app's Application Support directory (where backups are expected to be allowed), we need to move cache.db into a directory that we control and can exclude from backups with impunity. This is an amalgam of https://github.com/mapbox/mapbox-gl-native/pull/5578 (directory exclusion) and https://github.com/mapbox/mapbox-gl-native/pull/5585 (refactored URL methods, but without the new database size method). Also: * Prefix mapbox subdirectory with dot, for extra safety * Update changelog entry with new ticket, less speculation
| * [ios] #3979 compress telemetry events (#5490)Fredrik Karlsson2016-07-052-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] #3979 wip gzip telemetry events * [ios] expose compression from core instead of adding a new dependency * [ios] #3979 Exposed decompress from mbgl and added a test case * [ios] #3979 cleanup * [ios] #3979 cleaned up test case * [ios] #3979 cleanup * [ios] #3979 gzip -> deflate
| * [ios, macos] Add Mapbox Jazzy themeJason Wray2016-07-0119-0/+973
| | | | | | | | | | | | | | | | | | | | | | - Based on Jazzy's "full width" theme. - Add ellipsis to overlong items in navigation menu. - Set minimum width for navigation menu. - Use Open Sans font face. - Inline GitHub header icon as SVG. - Center images by default. - Add GitHub SVG icon to 'show on github' link. - Wrap overlong method names on class pages.
| * [ios, macos] Use common instead of default mode for run loop source (#5503)Jesse Bounds2016-06-291-1/+1
| | | | | | | | | | | | The map events instigated by certain actions (i.e. updates from a UIScrollView) are not processed by the run loop with `kCFRunLoopDefaultMode`until the thread is idle. This changes the mode to `kCFRunLoopCommonModes` to avoid this issue.
| * [macos] Renamed OS X SDK to macOS SDKMinh Nguyễn2016-06-182-5/+5
| | | | | | | | | | | | Also renamed as many references to OS X as possible to macOS in documentation. Cherry-picked from b9702ef41a4cfdd0ab3107cfe5cec16ba3a4c230.
* | [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)Young Hahn2016-07-062-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] geometry.hpp 0.8.0 * geojsonvt @ 6.0.0 * Update platform deps, build scripts * Perf optimizations/cleanup * Rebase in geometry@080 * D.R.Y. etc * Ensure fill annotation geometries have closed rings. * Optimizations * Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt * Apply close multi/poly geoms for line annotations as well
* | Color class (#5361)Young Hahn2016-06-151-2/+2
| | | | | | | | | | | | * Color class * Switch to list initialization
* | [macos] Renamed OS X SDK to macOS SDKMinh Nguyễn2016-06-142-5/+5
| | | | | | | | Also renamed as many references to OS X as possible to macOS in documentation.
* | [core] Make enum ↔ string conversion more generic-friendlyJohn Firebaugh2016-06-131-1/+2
| | | | | | | | | | | | Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types. While there, properly validated enumerated property values.
* | [tidy] Check modernize-use-nullptrBruno de Oliveira Abinader2016-06-131-1/+1
| | | | | | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
* | [core] fix pedantic warning messagesKonstantin Käfer2016-06-131-60/+0
|/
* [ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:]John Firebaugh2016-06-011-0/+5
|
* [all] Rationalize annotation APIJohn Firebaugh2016-06-014-16/+21
|
* [core] Use geometry.hpp types for shape annotationsJohn Firebaugh2016-06-014-41/+32
|
* [osx] Relegated “selection” to context menuMinh Nguyễn2016-05-272-4/+4
| | | | Moved feature selection to the context menu and restored the press gesture for dropping a pin. Bust complex features into simple shapes to feed into MGLMapView as overlays.
* [ios, osx] Ignore compound shape types as annotationsMinh Nguyễn2016-05-274-2/+12
| | | | Ignore any multipolyline, multipolygon, or shape collection object passed into -addAnnotation: or -addAnnotations:. Previously, these methods broke apart the compound shape into its constituent shapes in order to recursively add them to the map. But that broke assumptions about a one-to-one correspondence between annotations and their contexts during selection and deletion.
* [ios, osx] Cleaned up evaluatorsMinh Nguyễn2016-05-271-78/+52
| | | | Removed a level of indirection when creating Objective-C collections from C++ collections. Adopted mbgl typedefs for geometry.hpp types. Factored out MGLPolygon construction.
* [ios, osx] Holes in polygonsMinh Nguyễn2016-05-277-46/+136
| | | | | | | | MGLPolygon (and by extension MGLMultiPolygon) now supports interior rings. The data is preserved in feature querying results, and interior rings are respected when adding polygon overlays to the map. Fixes #1729. [ios, osx] Updated changelog
* [ios, osx] MGLFeature testsMinh Nguyễn2016-05-271-0/+130
|
* [ios, osx] Streamlined conversion to MGLFeatureMinh Nguyễn2016-05-273-145/+150
| | | | Made writability of MGLFeature properties private, to avoid having to awkwardly explain that changes to the properties don’t change the map (maybe someday they will). This allows the identifier and attributes to be set in only one place, avoiding copy-pasta.
* [ios, osx] Feature querying; complex geometry classesMinh Nguyễn2016-05-279-0/+590
| | | | | | | | | | | | | | Added methods to MGLMapView that return the rendered features at a visible point or within a visible rectangle on the map, optionally restricted to a set of layers, plus voluminous documentation. Added several new geometry classes corresponding to distinct geometry types supported by geometry.hpp. Added parallel “feature” classes to represent these geometries along with tags (IDs) and attributes (properties) from the source. Grouped classes in the Foundation and SDK groups by theme. In iosapp, dropped pins’ callout views now display the name of the topmost named feature at that point. In osxapp, a long press on the map highlights the features under the cursor. Dropping a pin via the menu or context menu item shows the usual dropped pin, but the pin’s title is now the name of a feature under the cursor, if available, rather than “Dropped Pin”. Fixes the iOS/OS X side of #352.
* [ios] Set backup exclusion flag after initializing DefaultFileSource (#5124)Jason Wray2016-05-242-7/+30
| | | Speculatively fixes #511, where apps mistakenly backup the offline/ambient cache.
* [ios] Make MGLCoordinateInCoordinateBounds() public (#5053)Jason Wray2016-05-173-5/+29
| | | Bounds should always be in NE, SW order — any other coordinate order (e.g., NW, SE) will give false results.