Mikhail Pozdnyakov
ad03e42b28
[core] LayerManager can disable annotations
...
At the moment, the annotations implementation in the `mapbox-gl-native`
core is creating concrete layer instances apart from `LayerManager/LayerFactory`
code path.
So, annotations must be disabled if the `LayerManager` implementation does
not provide line, fill or symbol layers (those, used by the annotations).
Note: in future, annotations implementation will be moved from the core to the
platform SDK level(see https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation )
and `LayerManager` won't need to disable it.
2018-11-28 17:18:38 +02:00
Mikhail Pozdnyakov
361982fef8
[core][Android][Darwin] LayerManager creates RenderLayer instances
...
`LayerManager` is now responsible for `RenderLayer` instances creation,
so that there is a single entry point for creating of objects, which
correspond to a certain layer type.
The `LayerType type` field is dropped from `Layer::Impl`.
2018-11-27 18:10:21 +02:00
Chris Loer
336409b861
[ios, macos] Pass program cache path and local font family config options to MGLMapSnapshotter.
2018-11-24 09:57:32 -08:00
Julian Rex
fd4b470158
[ios] Adds support for MGLCollisionBehaviorPre4_0 in NSUserDefaults ( #13426 )
2018-11-21 13:56:41 -05:00
Julian Rex
53bbf9d699
[ios] Added teardown of core objects when receiving UIApplicationWillTerminateNotification ( #13367 )
2018-11-20 14:31:09 -05:00
Jason Wray
8b232f693d
[darwin] Fix stray semicolon at end of method definition
...
Per -Wsemicolon-before-method-body.
2018-11-20 11:48:18 -05:00
Jason Wray
c17e74d457
[darwin] Don't redefine mbgl::style::GeoJSONOptions struct as a class
...
Per -Wmismatched-tags.
2018-11-20 11:48:18 -05:00
Jason Wray
ddcecdf7f7
[darwin] Rename variables to avoid shadow declarations
...
Per GCC_WARN_SHADOW.
2018-11-20 11:48:18 -05:00
Jason Wray
4519f8a867
[darwin] Fix typos in pragma diagnostic declarations
...
Per GCC_WARN_UNKNOWN_PRAGMAS.
2018-11-20 11:48:18 -05:00
Jason Wray
83ecb76562
[darwin] Fix GCC_WARN_SIGN_COMPARE warnings
2018-11-20 11:48:18 -05:00
Julian Rex
90f609ca8f
[ios, macos] Added -(BOOL)[MGLStyle removeSource:error:] that provides an NSError. ( #13399 )
2018-11-20 10:26:09 -05:00
Mikhail Pozdnyakov
8077055b1a
[ios, macos] Layer manager for Darwin platforms
...
The newly introduced `MGLStyleLayerManager` is now responsible
for creating both style layer objects and their obj C peers on Darwin.
2018-11-19 22:31:20 +02:00
Minh Nguyễn
425a3ade9e
[ios, macos] Harmonize bundle identifiers
...
For consistency with each other and with their product name and module name, the iOS and macOS map SDKs now have a bundle identifier of com.mapbox.Mapbox, whether in the form of a static or dynamic framework. The logging subsystem identifier has also been changed to match.
2018-11-15 22:00:30 -08:00
Huyen Chau Nguyen
9a606caf0b
[core] define number of concurrent downloads in online file source variable
2018-11-15 12:19:48 -08:00
Fabian Guerra Soto
c8fbcfd322
[ios, macos] Logging. ( #13235 )
...
* [ios, macos] Update the logging subsystem to platform agnostic.
* [ios, macos] Add coordinate to string function.
* [ios, macos] Add BOOL to string function.
* [ios, macos] Add tracing logs.
* [ios, macos] Add tracing logs to generated style classes.
* [ios, macos] Split logging categories accordingly to MGLLoggingLevel.
* [ios, macos] Log network requests.
* [ios, macos] Migrate NSAssert to MGLAssert.
* [ios, macos] Include MGLLoggingConfiguration to filesource-files.txt.
* [ios, macos] Fix logger string specifier for the line parameter.
* [ios, macos] Add logs to shapes classes.
* [ios, macos] Add logs to offline classes.
* [ios, macos] Add logs to annotation classes.
* [ios, macos] Add logs to foundation classes.
* [ios, macos] Fix snapshotter size logging.
* [macos] Add logs to map view.
* [ios, macos] Fix string from boolean prefix, add custom function for NSCAssert.
* Log size test
* [ios, macos] Add logging conditional compilation flag.
* [ios, macos] Rename function NSStringFromMGLTransition to MGLStringFromMGLTransition.
* [ios, macos] Remove verbose logging for release builds.
* [ios, macos] Rename NSStringFromCLLocationCoordinate2D to MGLStringFromCLLocationCoordinate2D.
* [ios, macos] Clean unnecesary blank lines in MGLLight.mm set methods.
* [ios, macos] Fix logging grammar, format, function names.
* [ios, macos] Remove compilation flag, rename flags.
2018-11-14 15:42:18 -08:00
Jordan Kiley
d44be9a91b
[ios] Address bad access exception in MGLAttributionInfo ( #13300 )
...
* [ios] move creation of attributed string to global queue]
* [ios] check if on main queue
2018-11-13 16:07:19 -08:00
Josh Erb
b891a8d6b0
[ios][documentation] link API documentation to ios-sdk/examples
2018-11-13 11:39:39 -08:00
Bruno de Oliveira Abinader
bf8b24fa8d
[build] Update to geometry v1.0.0
2018-11-13 17:28:26 +02:00
Minh Nguyễn
d13cd54af6
[ios, macos] Renamed ambient cache prewarming method
...
Renamed the method for prewarming the ambient cache to conform to Cocoa and Swift naming conventions.
2018-11-08 14:40:23 -08:00
Mikhail Pozdnyakov
c8f59d3692
[mac] Fix wrong allocation at layerFromMBGLLayer
...
A leftover from https://github.com/mapbox/mapbox-gl-native/pull/13221
2018-11-07 18:42:22 +02:00
Julian Rex
3b9618e025
[ios] Changed event attributes to be JSON serialization friendly. ( #13266 )
2018-11-02 11:56:09 -04:00
Mikhail Pozdnyakov
56808731b6
Remove style::Layer::is()/as()
2018-10-31 11:22:46 +02:00
Minh Nguyễn
3f314682fa
[ios, macos] Added $lineProgress expression variable
2018-10-30 14:26:59 -07:00
Minh Nguyễn
7ae171c6f9
[ios, macos] Fixed crash on nullary vararg expression function
...
Equate the nullary and unary forms of vararg-style aftermarket expression functions when converting to JSON objects.
2018-10-27 23:38:20 -07:00
Fabian Guerra
064d8b9aa8
Add a custom logging for the Mapbox Maps SDK for iOS.
2018-10-26 12:45:14 -07:00
Minh Nguyễn
8e2214129e
[ios, macos] Refined MGLLineStyleLayer.lineGradient documentation
2018-10-25 09:23:59 +00:00
Josh Erb
2d471da9ce
[ios][documentation] add two links for delegates
...
* MGLMapView <-> MGLMapViewDelegate
* MGLCalloutView <-> MGLCalloutViewDelegate
* MGLLocationManager <-> MGLLocationManagerDelegate
2018-10-24 13:24:23 -04:00
Nadia Barbosa
5f1d4199d9
[ios] Log event when offline pack is created
2018-10-23 15:49:11 -07:00
Bruno de Oliveira Abinader
98c36fc06e
[core] CameraOptions receives and outputs angle and pitch as degrees, not radians
2018-10-19 12:05:16 +02:00
Chris Loer
aab55cfbcd
[darwin,test] Add "must-revalidate" support to putResourceWithURL
...
Testing must-revalidate: true required an expiration date in the future, which exposed a round-tripping problem from translating NSDate to time_point based on now().
Use epoch of 1970 instead (although technically it's not guaranteed to be the epoch for system_clock until C++20)
2018-10-17 12:53:24 -07:00
Chris Loer
5a45976b7c
[darwin] Add MGLOfflineStorage putResourceForURL
...
Useful for pre-warming the ambient cache
2018-10-17 12:53:24 -07:00
Chris Loer
d0cd49f516
[ios, macos] Minimal darwin wrappers of 'format' expression
...
Add support for `MGL_FUNCTION('format', <text>, <options dictionary>)`
2018-10-15 13:15:46 -07:00
Minh Nguyễn
a9dc1b5294
[ios, macos] Fixed camera initialization with eye coordinate
...
Rewrote the code that calculates the heading and pitch of the camera when given an eye coordinate.
2018-10-01 18:12:03 -07:00
Minh Nguyễn
85a474e275
[ios, macos] Added MGLMapCamera.viewingDistance property
...
Co-authored-by: Dave Prukop <dave.prukop@mapbox.com >
2018-10-01 18:12:03 -07:00
Minh Nguyễn
a030f1474f
[ios, macos] Distinguish between viewing distance and altitude
...
+[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] incorrectly treated the distance as an altitude. Due to backwards compatibility concerns, this method can’t be fixed in place. Instead, separate +[MGLMapCamera cameraLookingAtCenterCoordinate:correctlyFromDistance:pitch:heading:] and +[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:] methods have been added.
2018-10-01 18:12:03 -07:00
Dave Prukop
79dd9ca250
Moved MGLAltitudeForZoomLevel and MGLZoomLevelForAltitude to public API ( #12986 )
...
* Moved MGLAltitudeForZoomLevel and MGLZoomLevelForAltitude to public API
* Added notes to changelogs for ios and macos
2018-10-01 16:46:11 -07:00
Fabian Guerra Soto
57837443bb
[ios, macos] Add crossSourceCollissions property. ( #12941 )
...
* [ios, macos] Add crossSourceCollissions property.
* [ios, macos] Add perSourceCollisions property.
* [ios, macos] Update changelogs.
2018-09-26 15:17:30 -07:00
Julian Rex
a995977312
[ios] Fix for user location annotation jittering (and view annotations lagging) ( #12895 )
2018-09-26 12:19:26 -04:00
Fabian Guerra Soto
a938c3ef68
[ios, macos] Offline regions merge. ( #12791 )
...
* [ios, macos] Add offline regions merge.
* [ios, macos] Update changelogs.
* [ios, macos] Fix refreshing the offline packs after new content is added.
* [ios, macos] Update MGLOfflineStorage's add contents of file documentation.
* [ios, macos] Add MGLOfflineStorage test cases for adding file contents.
* [ios, macos] Add offline merge test database.
* [ios, macos] Add packs parameter to MGLBatchedOfflinePackAdditionCompletionHandler.
* [core] Fix a query mege duplication.
* [ios, macos] Remove unnecessary pack iteration.
* [ios, macos] Fix packs update KVO notifications.
* [ios, macos] Add localization strings.
* [core] Fix query readability.
* [ios, macos] Fix MGLOfflineStorageTest, cleanup the cache database after the test.
* [ios, macos] Fix offline packs, updating triggers a crash.
2018-09-17 15:31:43 -07:00
Minh Nguyễn
c63e628acc
[ios, macos] Look even more widely for IB designables agent
...
The IBDesignablesAgent helper process has been renamed to IBAgent as of the Xcode 10 GM seed, so cast an even wider net when trying to detect it.
2018-09-13 12:52:26 -07:00
ryanhamley
31cca05fc6
Port symbol-z-order symbol layout style-spec property to Native
2018-09-07 13:05:19 -07:00
Julian Rex
315a9e3cdf
[ios, macos] Call snapshotter (Obj-C) completion block on dealloc/cancel if snapshot hasn't finished. ( #12355 )
2018-09-05 11:53:12 -04:00
Molly Lloyd
4a5dc37245
[core] Implement CrossFadedDataDrivenProperty to add support for feature expressions in *-pattern properties
2018-08-31 13:08:47 -07:00
Mikhail Pozdnyakov
fb5afd34b9
[core] Add line-gradient property
...
Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303
See the link above for the description of the feature and
its limitations).
Based on patch from @lbud (Lauren Budorick).
2018-08-23 19:01:40 +03:00
Mikhail Pozdnyakov
5ce64b786c
[ios, macos] Introduce MGLShapeSourceOptionLineDistanceMetrics
...
Exposes access to
https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-geojson-lineMetrics
2018-08-21 13:49:35 +03:00
Nadia Barbosa
50059659d1
Warn if MGLShapeSource is initialized with MGLShapeCollection
...
Move warning from ShapeCollection to ShapeSource
Try checking MGLComputedShapeSources
Include MGLShapeCollection header
Add changelog entry
2018-08-20 15:45:03 -07:00
Ivo van Dongen
ca0f2f925d
[darwin] arbitrary offline region geometries
2018-08-20 22:49:01 +03:00
Konstantin Käfer
112bbc7ab2
[core] make style/conversion.hpp implementation private
2018-08-19 13:09:16 +02:00
Konstantin Käfer
6e06e55b95
WIP: use expected<T, E> for passing on errors
2018-08-14 17:03:46 -07:00
Jason Wray
f117865e8e
[ios] Remove Xcode 7 compatibility typedefs
2018-08-09 13:46:53 -04:00