summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLTileSource.h
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Update minimum deployment versions to iOS 9, macOS 10.11 (#11776)Jason Wray2018-04-271-1/+1
| | | | | | | | | | | | | | | | | | | * [ios] Remove iOS 8 conditionals * [ios, macos] Bump pod deployment targets * [ios, macos] Add changelog entries * [ios, macos] Update docs * Remove unnecessary selector-based version checks * Update SQLite note * [ios, macos] Replace lightweight generics macros with direct use Lightweight generics for Foundation collections are available everywhere with the bump to iOS 9 and macOS 10.11. * Update deprecated macOS method
* Merge branch 'release-boba' into masterupstream/fabian-merge-v4.0.0Fabian Guerra2018-04-231-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # include/mbgl/style/expression/let.hpp # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapKeyListener.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Projection.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java # platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml # platform/android/gradle/dependencies.gradle # platform/android/src/example_custom_layer.cpp # platform/android/src/geojson/point.cpp # platform/darwin/src/NSPredicate+MGLAdditions.mm # platform/darwin/test/MGLExpressionTests.mm # platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/ios/app/MBXViewController.m # src/mbgl/renderer/layers/render_custom_layer.cpp # src/mbgl/style/conversion/filter.cpp # src/mbgl/style/expression/interpolate.cpp # src/mbgl/style/expression/value.cpp # test/style/filter.test.cpp
| * [ios, macos] Clarified source optionsMinh Nguyễn2018-04-021-13/+0
| | | | | | | | Also moved options to the primary classes that use them.
| * [ios, macos] Renamed MGLVectorSource to MGLVectorTileSourceMinh Nguyễn2018-04-021-3/+3
| |
| * [ios, macos] Renamed MGLRasterSource to MGLRasterTileSourceMinh Nguyễn2018-04-021-1/+1
| | | | | | | | Also updated various source class listings to reflect the addition of image and raster DEM sources.
| * [ios, macos] cherry-pick darwin changes to tileset encoding param onto boba ↵Molly Lloyd2018-02-271-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#11324) * [ios, macos] add tileset encoding option to darwin sources (#11274) * add tileset encoding option to darwin sources * correct style guide * link out to dem encoding docs * markdownify comments * correct changelog
* | [ios, macos] add tileset encoding option to darwin sources (#11274)Molly Lloyd2018-02-261-0/+30
|/ | | | | | | | | | * add tileset encoding option to darwin sources * correct style guide * link out to dem encoding docs * markdownify comments
* [ios, macos] Added option to restrict tile source to boundsMinh Nguyễn2018-02-081-0/+14
|
* [ios, macos] Revised descriptions for abstract classes (#9095)Jordan Kiley2017-06-141-3/+3
| | | Addresses https://github.com/mapbox/mapbox-gl-native/issues/8635
* [darwin] Remove unnecessary MGLTileSource initializersJohn Firebaugh2017-04-131-129/+0
|
* [ios, macos] Expanded feature querying documentationMinh Nguyễn2017-03-141-0/+4
| | | | Also fixed a couple incorrect Swift method names on macOS.
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-23/+23
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7Minh Nguyễn2017-01-161-2/+121
|\
| * [ios, macos] Compare source options to specsMinh Nguyễn2017-01-041-0/+20
| |
| * [ios, macos] Expand documentation on MGLTileSource URL templates (#7213)Justin R. Miller2016-12-221-2/+90
| | | | | | | | | | | | | | | | | | | | * provide better docs for MGLTileSet template strings * clean up docs * line breaks * [ios, macos] Rewrote tile URL template docs
| * [ios, macos] Added URL accessor to MGLTileSourceMinh Nguyễn2016-12-201-0/+11
| |
* | [build] add -fvisibility=hidden to macOS dynamic framework and export ↵Konstantin Käfer2017-01-041-7/+9
|/ | | | required symbols
* [ios, macos] Simplify MGLSource and subclasses (#7377)Minh Nguyễn2016-12-131-0/+179
* [ios, macos] Audited source headers for nullability * [macos] Made MGLTileSet public * [ios, macos] Replaced MGLTileSet with MGLTileSource MGLRasterSource and MGLVectorSource now share a common abstract superclass, MGLTileSource. MGLTileSet has been removed. MGLTileSource is modeled after mbgl::style::RasterSource and mbgl::style::VectorSource. It has initializers that incorporate the parameters of MGLTileSet’s initializers, but it lacks getters for everything but the attribution string. MGLTileSet’s properties have been converted into options that can be passed into MGLTileSource’s initializers in a dictionary. Properly implement rawSource as a covariant property so that it doesn’t end up getting autosynthesized as a shadow ivar. This prevents concrete subclasses of MGLSource from setting _rawSource directly but getting a different value out of self.rawSource. Marked -[MGLSource init] as unavailable and ensured that concrete subclasses of MGLSource have the right set of initializers marked as designated initializers. Documentation comments for each concrete source class identify the corresponding source type in the style specification. Clarified the purpose of MGLTileSetScheme, now known as MGLTileCoordinateSystem. * [ios, macos] Clarified tile size interpretation Sticking to a default value of 256 for mapbox: URLs, but other URLs get the standard 512 value. * [ios, macos] rawSource is always set * [ios, macos] Cleaned up MGLShapeSource initialization rawSource is never nil, so there’s no need for a -commonInit method. Extracted -geoJSONOptions from MGLShapeSource into a standalone function for easier testing. * [ios, macos] Synchronized headers in project Realphabetized headers in groups. Added headers missing from one project or the other. * [ios, macos] Added MGLShape methods to (de)serialize GeoJSON data Added a class initializer and instance method to MGLShape that deserialize and serialize the shape as GeoJSON data, respectively. The new initializer handles parsing errors gracefully. Removed methods specific to GeoJSON data from MGLShapeSource, in an effort to reduce parallel state. Developers are now expected to go through the new MGLShape initializer to get an MGLShape representation. Alternatively, a local file URL can be passed into the other MGLShapeSource initializer. * [ios, macos] Typo in assertion message * [ios, macos] Simplified GeoJSON serialization Every MGLShape now knows its most specific mbgl::GeoJSON representation. * [ios, macos] Reremoved MGLFeaturePrivate mbgl::GeoJSON, which is a variant, allows a single GeoJSON representation method to traffic in whatever type is needed for a particular shape class. This change removes some hidden private protocols, which are a bug waiting to happen. * [ios, macos] Fixed covariant rawLayer property Properly implement rawLayer as a covariant property so that it doesn’t end up getting autosynthesized as a shadow ivar. This prevents concrete subclasses of MGLStyleLayer from setting _rawLayer directly but getting a different value out of self.rawLayer. * [ios, macos] Use MGLAttributionInfo for source attribution Made MGLAttributionInfo public. Replaced MGLTileSource’s attribution property with an attributionInfos property set to an array of MGLAttributionInfo objects. Added an MGLTileSourceOption for specifying an array of MGLAttributionInfo objects instead of an HTML string (either is acceptable when creating an MGLTileSource). * [ios, macos] Corrected method references in documentation