summaryrefslogtreecommitdiff
path: root/platform/darwin
Commit message (Collapse)AuthorAgeFilesLines
* [core] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-3120-261/+240
|
* [iOS] Add fallbacks for name fields (#12387)Lloyd Sheng2018-07-262-5/+24
| | | | | | | | * Add fallbacks for name fields * Add a fallback for `name_zh-Hant` * Update changelog
* [ios, macos] Fixed typos in expression conversion error messagesMinh Nguyễn2018-07-251-2/+2
|
* [darwin] Use FOUNDATION_EXTERN instead of plain externJason Wray2018-07-2410-37/+37
| | | | FOUNDATION_EXTERN is an alias for extern in most cases, but also covers us in the event that a method could be mismangled by the compiler as C++ (when we want C-style mangling, for Obj-C compatibility).
* [ios] Simplify and (internally) document MGLPointRounded()Jason Wray2018-07-242-1/+4
| | | | `UIScreen.nativeScale` is available beginning in iOS 8, so the conditional is no longer necessary.
* [ios] Move private geometry symbol visibility definitions to headerJason Wray2018-07-242-4/+2
|
* [ios] Fix symbol mangling issue with MGLMapPointForCoordinate()Jason Wray2018-07-241-2/+2
| | | | `MGLMapPointForCoordinate()` was `extern`-defined in a C header, but implemented in an Obj-C++ source file and mangled as a C++ symbol. `FOUNDATION_EXTERN` is C++-aware and will force C-style symbol mangling, which fixes the undefined symbol issue in consumer Obj-C projects.
* [android, ios, macos] Generate symbol-placement: line-center wrappersChris Loer2018-07-234-26/+49
|
* [ios] Mapbox's Location Manager new API. (#12013)Fabian Guerra Soto2018-07-203-0/+302
| | | | | | * [ios] The new location manager API provides two new protocols MGLLocationManager and MGLLocationManagerDelegate to handle the location cycle and updates respectively. This enables developers to chose the appropriate location provider according to their needs, or transition between outdoors/indoors location updates. It does provide a default implementation based on CLLocationManager.
* [ios, macos] Convert token strings to expressions on inputJohn Firebaugh2018-07-2011-174/+79
| | | | Removes mgl_expressionByReplacingTokensWithKeyPaths and associated code. Converting on output is no longer necessary: from the prior commit, core converts token strings to expressions at parse time; all that's necessary is to ensure that the runtime styling API does so as well.
* [core] Convert token strings to expressionsJohn Firebaugh2018-07-201-1/+1
|
* [core] Replace {Source,Camera,Composite}Function with PropertyExpressionJohn Firebaugh2018-07-2011-200/+192
|
* Correct `MGL_MATCH ` documentation (#12378)Lloyd Sheng2018-07-181-1/+1
|
* [ios, macos] Allow unwrapped arguments in match expressionsMinh Nguyễn2018-07-092-5/+16
|
* [ios, macos] Convert predicate options to collatorsMinh Nguyễn2018-07-096-28/+143
|
* [ios, macos] Remove duplicate MGLTileSourceOptionDEMEncoding declarationJason Wray2018-07-061-13/+0
|
* [ios] [macos] Added `-[MGLSnapshot coordinateForPoint:]` and associated test.Julian Rex2018-07-052-8/+54
|
* Rename `HeatmapColorPropertyValue` to `ColorRampPropertyValue`Mikhail Pozdnyakov2018-07-053-7/+7
| | | | | | | | Based on patch from @lbud (Lauren Budorick). Give `HeatmapColorPropertyValue` a more generic name, since the same value type will be used for both `heatmap-color` and `line-gradient` properties.
* [core] Avoid blocking in Thread<Object> constructor (#12151)Anand Thakker2018-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce AspiringActor, EstablishedActor This pair of objects represents the two-phase (parent-thread / child-thread) construction that's needed to support constructing Thread<Object> without blocking until the child thread is up and running. An `AspiringActor<O>` is responsible for: - ownership of the actor's `Mailbox` - allocating the memory for (but *not* constructing) the target object `O` Using these two pieces--the mailbox and a stable address for `O`--an `AspiringActor<O>` can accept messages for the target object, or provide `ActorRef<O>`s that do so, before the object has actually been constructed by the corresponding `EstablishedActor<O>`. (Such messages are queued in the mailbox until after the object is constructed.) This allows for an `AspiringActor<O>` to be created and safely used by a thread other than the one on which the target object will (eventually) live. An `EstablishedActor<O>` is responsible for managing the lifetime of the target object `O` and the open/closed state of the parent's `mailbox`. The `O` object's lifetime is contained by that of its owning `EstablishedActor<O>`: the `EstablishedActor` constructor executes the `O` constructor via "placement new", constructing it at the address provided by the parent `AspiringActor`, and the `~EstablishedActor` destructor similarly executes the `~O` destructor (after closing the mailbox). `EstablishedActor` should therefore live entirely on the thread intended to own `O`. * Remove Actor#{invoke,ask}
* [ios, macos] Try to make darwin "resolvedLocale" BCP 47 compliantChris Loer2018-07-031-6/+12
|
* [ios, macos] Darwin "collator" implementationChris Loer2018-07-031-0/+64
| | | | | - Uses NSString for comparison - Uses NSLocale for loading locales
* [ios, macos] Autolocalize into Japanese, KoreanMinh Nguyễn2018-07-031-2/+4
| | | | Added Japanese and Korean to the list of languages for which the Mapbox Streets source has dedicated name fields.
* [darwin] Replace use of *Stops with expressions DSLJohn Firebaugh2018-06-2912-979/+1352
|
* [core] add raster-resampling property (#12176)upstream/rcleeMolly Lloyd2018-06-214-1/+176
| | | | | | | | | | * update style-code for raster-resampling * implement user-defined raster-resampling * invert filter condition * raster-resampling -> raster-resampling-mode for darwin language conventions
* [ios, build] Completely remove support for Fabric (#12106)Jason Wray2018-06-181-35/+1
|
* [ios, macos] Look more widely for IBDesignablesAgentMinh Nguyễn2018-06-131-7/+1
| | | | The IBDesignablesAgent helper process has been renamed for each platform as of Xcode 10, so cast a wider net when trying to detect it.
* [ios,macos] Fixed crash in `-[MGLStyle localizeLabelsIntoLocale:]` on iOS ↵Julian Rex2018-06-111-1/+10
| | | | 9.3 (#12123)
* [ios, macos] Use NSCAssert instead of assert.Chris Loer2018-06-041-1/+1
|
* [ios, macos] Raise exception if MGLMapSnapshotter is used from thread ↵Julian Rex2018-06-041-0/+5
| | | | without active run loop.
* [ios, macos] Fix MGLMapSnapshotter concurrency bugs (issue #11827).Chris Loer2018-06-041-153/+162
| | | | | - Biggest change: when we apply the watermark on a background thread, don't capture self (turn most of the related instance methods into class methods) - Don't call mbglMapSnapshotter->snapshot from a user-provided queue, since it's an asynchronous call anyway and starting it on the user's queue requires capturing self.
* [ios, macos] Added macro to handle pending iOS tests (rather than disabling ↵Julian Rex2018-05-241-0/+27
| | | | via scheme) (#11806)
* [ios, macos] Fix keypath expressions, json object is parsed incorrectly for ↵Fabian Guerra Soto2018-05-232-1/+14
| | | | | | | | nested keypaths. (#11959) * [ios, macos] Fix keypath expressions, a json object is parsed incorrectly for nested keypaths. * [ios, macos] Update changelogs.
* Style JSON configuration on map snapshotter (#11976)Tobrun2018-05-231-1/+2
| | | * [core, android, darwin] - add style JSON configuration on MapSnapshotter
* [ios] Run MGLMapboxEvents setup asynchronously (#11784)Randall Lee2018-05-221-1/+3
| | | | | * [ios] Run MGLMapboxEvents setup asynchronously
* [core] Align match behavior with case/==John Firebaugh2018-05-181-5/+5
| | | | Makes `["match", ["get", k], label, match, otherwise]` equivalent to `["case", ["==", ["get", k], label], match, otherwise]`. This changes the behavior of match expressions where the runtime type of the input does not match the type of the labels: previously such expressions produced a runtime type error and then fell back to the property default value; now they produce the fallback value from the match expression.
* [ios, macos] Support array values in match expressions. (#11866)android-v6.2.0-alpha.1Fabian Guerra Soto2018-05-175-28/+54
| | | | | | | | | | * [ios, macos] Support array values in match expressions. * [ios, macos] Update mgl_match documentation. * [ios, macos] Update changelogs. * [ios, macos] Clarify match expressions documentation.
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-1744-589/+812
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # mapbox-gl-js # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/gradle/dependencies.gradle # platform/darwin/src/MGLVectorTileSource.mm # platform/darwin/src/MGLVectorTileSource_Private.h # platform/ios/CHANGELOG.md # src/mbgl/style/expression/compound_expression.cpp
| * [ios, macos] Moved numbers away from start of lines in documentation (#11881)Jordan Kiley2018-05-1511-49/+49
| |
| * [ios, macos] Fixed English priority during label localizationMinh Nguyễn2018-05-143-22/+7
| | | | | | | | Respect English in the Preferred Languages setting even if other Mapbox Streets source–supported languages are listed too.
| * [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-109-422/+13
| | | | | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
| * [ios, macos] Add to-rgba expression operator. (#11725)Fabian Guerra Soto2018-05-074-2/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add expression support to to-rgba operator. * [ios, macos] Update style docs. * [ios, macos] Refactored to-rgba to to-color. * [ios, macos] Add support for to-rgba expression operator. * [ios, macos] Add multiple parameters support to to-color operand. * [ios, macos] Enable to-rgba operator for MGLColor or key path expressions. * [ios, macos] Update predicates and expressions guide to reflect cast changes. * [ios, macos] Update changelogs. * [ios, macos] Clarify color casting usage.
| * [ios, macos] Make NSPredicate+MGLAdditions public. (#11810)android-v6.1.0Fabian Guerra Soto2018-05-0418-81/+131
| |
| * [ios, macos] Add support for subscripting in expressions. (#11770)Fabian Guerra Soto2018-05-042-1/+43
| | | | | | | | | | | | | | | | * [ios, macos] Add support for subscripting in expressions. * [ios, macos] Update changelogs. * [ios, macos] Refactor LAST subscripting expression.
| * [ios, macos] Fix overlay bounds that span the antimeridian. (#11783)Fabian Guerra Soto2018-05-045-2/+54
| | | | | | | | | | | | | | | | | | | | * [ios, macos] Fix overlay bounds that span the antimeridian. * [ios, macos] Update changelogs. * [ios, macos] Make MGLLocationCoordinate2DIsValid private. * [ios, macos] Update changelogs.
| * iOS: Add custom layer example to debugging app (#7734)Konstantin Käfer2018-05-032-0/+63
| |
| * [ios, macos] Fix broken link to predicates and expressions guide. (#11818)Fabian Guerra Soto2018-05-031-2/+2
| |
| * [ios, macos] Avoid implicit capture of MBGLOfflineRegionObserver this pointerJohn Firebaugh2018-05-021-3/+6
| | | | | | | | MBGLOfflineRegionObserver is owned by the offline database thread, and might be destroyed by the time the dispatch_async completes. Instead of implicitly capturing this, capture a copy of the MBGLOfflinePack weak pointer.
| * [android, ios, macos] Added Korean localizationMinh Nguyễn2018-05-022-0/+345
| |
| * [ios, macos] Fix possible retain cycles in blocksJason Wray2018-04-271-4/+7
| | | | | | | | Prompted by enabling CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF.
| * [ios, macos] Accept Xcode 9.3 project suggestionsJason Wray2018-04-271-3/+3
| | | | | | | | | | - Fix duplicate NSExpression+MGLAdditions.h and fix target membership - Explicitly cast NSUInteger to unsigned long before printing