Commit Graph

936 Commits

Author SHA1 Message Date
Fabian Guerra Soto
fed201aaed [ios, macos] Fix number conversions when expressions cast to large numbers. (#13580)
* [ios, macos] Fix number conversions when expressions cast to large numbers.

* [ios, macos] Update changelogs.
2018-12-14 14:40:16 -08:00
Konstantin Käfer
1d8235f5b8 [build] rework platform/default directory and add -files.txt for vendored libs 2018-12-14 11:03:03 +01:00
Fabian Guerra Soto
bbeec8dacb [ios, macos] Add enablePlacementTransitions to MGLStyle. (#13565)
* [ios, macos] Add enablePlacementTransitions to MGLStyle.

* [ios, macos] Update changelogs.
2018-12-13 10:19:56 -08:00
Alexander Shalamov
b6b1067caf [ios, darwin] Make MGLFeature.attributes non-nullable and add integration test
Enforce non-nullable semantics for MGLFeature.attributes, to avoid construction of invalid mbgl::Feature properties
from nil NSDictionary object and align with public SDK property definition.

Integration test "testShapeSourceWithLineDistanceMetrics" is added to verify that MGLFeature is correctly converted.

Fixes issue #13378
2018-12-13 19:38:50 +02:00
Fabian Guerra
98984ef292 [ios, macos] Fix MGLTransition struct creation. 2018-12-12 15:07:23 -08:00
Jordan Kiley
b3a244f7d8 [darwin] move turnstile event for snapshotter (#13549) 2018-12-12 10:58:08 -08:00
Mikhail Pozdnyakov
ebd87a5442 [core, android, darwin] Move layer factories to separate files 2018-12-10 18:20:32 +02:00
Minh Nguyễn
3dffb1fd53 [ios] Added CJK string transforms 2018-12-08 02:18:56 -08:00
Jason Wray
fca084b923 [ios, macos] Add Streets-v8 field names to accessibility checks 2018-12-08 02:18:56 -08:00
Jason Wray
7cdbe6664a [ios, macos] Update for streets-v8 data and coalesced name fields in v11 styles 2018-12-07 21:46:46 -05:00
Lloyd Sheng
86117eb28f [ios] Add turnstile events for Snapshotter (#13476)
* Add turnstile events for iOS MGLMapSnapshotter
2018-12-06 11:51:33 +08:00
Minh Nguyễn
efe4f4c09d [android, ios, macos] Updated French translations
Removed an incompatible localized format string.
2018-12-04 22:29:39 -08:00
Minh Nguyễn
ff0f7a8754 [ios, macos] Refined source removal errors
Clarified and copyedited the descriptions of errors that are raised when attempting to remove a source from a style. Worded the changelog entry more generically because the same method in Swift throws an error instead of returning.

A mismatch would occur if the identifier is used by a different source than the one being removed. An application could cause this error to occur by keeping a reference to an MGLSource after changing the style URL of an MGLMapView. Another way would be to remove a source from the style, add another source to the style with the same identifier, then attempt to re-remove the original source from the style.
2018-12-04 22:29:39 -08:00
Maxime Le Moine
2b84c2df27 [ios] Update French translation - telemetry (#13360)
* Update French translation - telemetry

"Make better" is better translated by "Améliorer". "Rend meilleure les cartes Mapbox" is also grammatically incorrect.

* Update from Transifex
2018-12-01 22:00:31 -08:00
Mikhail Pozdnyakov
92352de87d [core] layermanager folder
Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
2018-11-30 19:09:17 +02:00
Bruno de Oliveira Abinader
e64c28613a [core] Support fill-extrusion-vertical-gradient 2018-11-29 14:23:55 +02:00
Jason Wray
fc1f744fbb [darwin] Add platform-agnostic MGLStringFromSize() method 2018-11-28 14:02:19 -05:00
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
Josh Erb
9d1d4ecdb8 [ios][documentation] link expression guide to NSExpression(MGLAdditions) 2018-11-27 12:51:41 -05: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
a0ebd61929 [ios, macos] Fixed typo in style authors guide 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
8368bd4878 [tests, darwin] Standardize on 10 second timeout for map loading
5 second timeouts have been intermittently failing on CI.
2018-10-17 13:14:44 -07: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