summaryrefslogtreecommitdiff
path: root/platform/darwin/src
Commit message (Collapse)AuthorAgeFilesLines
* [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] Fix keypath expressions, json object is parsed incorrectly for ↵Fabian Guerra Soto2018-05-231-1/+2
| | | | | | | | 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
* [ios, macos] Support array values in match expressions. (#11866)android-v6.2.0-alpha.1Fabian Guerra Soto2018-05-172-13/+29
| | | | | | | | | | * [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-1733-324/+242
|\ | | | | | | | | | | | | | | | | | | | | | | # 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-1510-48/+48
| |
| * [ios, macos] Fixed English priority during label localizationMinh Nguyễn2018-05-142-22/+3
| | | | | | | | 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-108-208/+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-071-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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-0417-35/+85
| |
| * [ios, macos] Add support for subscripting in expressions. (#11770)Fabian Guerra Soto2018-05-041-1/+16
| | | | | | | | | | | | | | | | * [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-044-2/+18
| | | | | | | | | | | | | | | | | | | | * [ios, macos] Fix overlay bounds that span the antimeridian. * [ios, macos] Update changelogs. * [ios, macos] Make MGLLocationCoordinate2DIsValid private. * [ios, macos] Update changelogs.
| * [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.
| * [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
| * [ios, macos] Raise exceptions for empty expression stops dictionaries (#9539)Julian Rex2018-04-261-2/+14
| |
* | [core] Rework spec function/expression taxonomyLauren Budorick2018-05-141-4/+8
| | | | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/6521, updating codegen scripts to parse new expression taxonomy.
* | FixupJohn Firebaugh2018-05-021-6/+6
| |
* | [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.
* | [ios, macos] Update minimum deployment versions to iOS 9, macOS 10.11 (#11776)Jason Wray2018-04-2741-170/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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
* | Bump GL JS pin to get tests for global symbol querying.Chris Loer2018-04-252-2/+6
| | | | | | | | | | | | - Pulls over an update to line.vertex.glsl (looks like a no-op?) - Add test ignores for collator, is-supported-script, line-gradient - Exclude collator, is-supported-script, line-gradient from code generation.
* | Merge branch 'release-boba' into masterupstream/fabian-merge-v4.0.0Fabian Guerra2018-04-2374-1350/+2384
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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] Rename featureProperties to featureAttributes. (#11748)Fabian Guerra Soto2018-04-232-4/+10
| | | | | | | | | | | | | | | | | | | | * [ios, macos] Rename featureProperties to featureAttributes. * [ios, macos] Update style documentation. * [ios, macos] Remove featureProperties variable tests. * [ios, macos] Update the changelogs.
| * [ios, macos] Revamp predicate and expression guide (#11741)Minh Nguyễn2018-04-192-42/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Fact-checked expression guide Corrected various factual inaccuracies in the “Predicates and Expressions” guide. Moved some explanation from the predicates section to the expressions section. Added sections for all the other expression types we support. * [ios, macos] Reorganized custom function documentation Reorganized the custom function documentation as a series of sections with headers and definition lists instead of a monolithic table. Copyedited various sections for accuracy. Linked references to custom functions. Added format string examples for all custom functions. * [ios, macos] Made h3 more visible * [ios, macos] Added Objective-C example of placeholders * [ios, macos] Documented trig functions * [ios, macos] Also increase h3 code size * [ios, macos] Replaced Markdown with HTML in definition * [ios, macos] Replaced Markdown with HTML in custom function documentation * [ios, macos] Clarified stops * [ios, macos] Cross-referenced functions Each custom function definition cross-references the corresponding aftermarket function (or vice versa), the corresponding style specification expression operator, and any related NSExpression syntax. * [ios, macos] Fixed links in predicate guide * [ios, macos] Consolidated and documented NSExpression categories Consolidated the NSExpression categories into a single category, with marks to separate different tasks. Documented the MGLAdditions category so that it shows up in the jazzy documentation. * [ios, macos] Fixed NSExpression private category mixup
| * [ios] Provide MGLStyle.localizesLabels unavailability noticeJason Wray2018-04-171-0/+2
| |
| * [ios, macos] Add trigonometric support to NSExpression. (#11716)Fabian Guerra Soto2018-04-171-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add acos NSExpresssion operator. * [ios, macos] Add asin NSExpresssion operator. * [ios, macos] Add atan NSExpresssion operator. * [ios, macos] Add cosine NSExpresssion operator. * [ios, macos] Add sine NSExpresssion operator. * [ios, macos] Add tangent NSExpresssion operator. * [ios, macos] Add log2 NSExpresssion operator. * [ios, macos] Update style authors documentation.
| * [ios, macos] Add NSExpression convenience constructors and helper methods. ↵Fabian Guerra Soto2018-04-162-5/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#11278) * [ios, macos] Refactor convinience expression initializers. # Conflicts: # platform/darwin/src/NSExpression+MGLAdditions.h # platform/darwin/src/NSExpression+MGLAdditions.mm # platform/ios/app/MBXViewController.m * [ios, macos] Add MGL_MATCH convenience method. # Conflicts: # platform/darwin/src/NSExpression+MGLAdditions.h # platform/darwin/src/NSExpression+MGLAdditions.mm # platform/darwin/test/MGLExpressionTests.mm * [ios, macos] Add Swift friendly convenience methods name syntax.. # Conflicts: # platform/darwin/src/NSExpression+MGLAdditions.h * [ios, macos] Update runtime styling examples. # Conflicts: # platform/ios/app/MBXViewController.m * [ios, macos] Add NSExpression variable expressions properties. * [ios, macos] Clarify convenience initializer names. * [ios, macos] Update Style Authors guides. * [ios, macos] Fix cherry-pick merge. * [ios, macos] Update convenience initializers documentation.
| * [macos] Replaced UIColor with NSColor in documentationMinh Nguyễn2018-04-169-0/+367
| |
| * [ios] Fix type narrowing issue with MGLOpenGLStyleLayer projection matrix ↵Jason Wray2018-04-165-13/+25
| | | | | | | | | | | | | | | | | | (#11664) `CATransform3D`'s matrix is internally typed as `CGFloat`, which we were implicitly casting to from `double`.... except that the `-Wc++11-narrowing` flag disallows implicit narrowing casts and we need `double` precision, anyway. * [ios, macos] Use MGLMatrix4 a 4x4 double matrix for MGLOpenGLStyleLayer projection matrix. * [ios, macos] Don't use union for MGLMatrix4
| * [ios, macos] Convert various class methods to class propertiesJason Wray2018-04-169-29/+21
| | | | | | | | This improves the Swift interface while having no effect on Obj-C usage.
| * [ios] Remove more deprecated bits for release-bobaJason Wray2018-04-161-16/+5
| |
| * Localize expressions more thoroughly (#11651)Minh Nguyễn2018-04-1613-88/+340
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios] Removed changelog entry for Terrarium The broader feature is new to v4.0.0 as well. * [ios, macos] Localize expressions more thoroughly Replaced the MGLStyle.localizesLabels property with a -localizeLabelsIntoLocale: method that allows the caller to specify the locale to localize into. Also exposed a per-expression localization method for developers who want to vary behavior from layer to layer. * [macos] Offer English labels if preferred language is unsupported * [ios, macos] Removed dead code * [ios] Use new localization method in iosapp * [ios, macos] Fixed local name labels * [ios, macos] Convert tokens to key path expressions in stop dictionaries * [ios, macos] Streamlined token upgrading Separated token upgrading into a separate process that only happens as part of the MGLSymbolStyleLayer.text and MGLSymbolStyleLayer.iconImageName properties’ getters, so that it’s easy to remove later when mbgl changes obviate this workaround. Removed the replacesTokens parameter to the expression localization methods. * [ios, macos] Preserve whitespace between tokens * [ios, macos] Moved token replacement to a consistent category Fixed a build warning. * [ios, macos] Replace tokens in all string-typed getters For consistency, replace tokens with key paths in all string-typed style paint and layout properties. * [ios, macos] Test token replacement Added tests for replacement of tokens with key paths in expressions. Fixed token replacement for raw strings in stop dictionaries. Avoid sticking a single string inside an mgl_join: call. * [ios, macos] Test token replacement, localization Added unit tests of token replacement and localization of expressions. Only NSExpression is responsible for resolving the preferred language now, since NSLocale tends to tack a region code onto the locale identifier and the NSExpression method can be called independently anyways. Added a private variation of +[MGLVectorTileSource preferredMapboxStreetsLanguage] that takes an array of preferred languages. Fixed localization of non-expressions in stop dictionaries. * [ios, macos] Dictionary keys aren’t necessarily zoom levels
| * [ios, macos] NSPredicate expression filters. (#11587)Fabian Guerra Soto2018-04-165-296/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add NSAndPredicateType predicate expression filter. * [ios, macos] Add type to NSPredicate expressions. * [ios, macos] Add Expression filter support. * [ios, macos] Update NSPredicate expression based tests. * [ios, macos] Refactor ExpressionFilters. * [ios, macos] Add symmetric test to ExpressionFilters. * [ios, macos] Update NSPredicate test to ExpressionFilters. * [ios, macos] Re-introduce Filter tests. * [ios, macos] Remove typed NSComparisonPredicate's comparable values. * [ios, macos] Update style layers predicate tests. * [ios, macos] Remove unused predicate conversion code. * [ios, macos] Update documentation exaple's test. * [ios, macos] Update Predicate and Expressions guide.. * [ios, macos] Remove mgl_ prefix from variable expressions. * [ios, macos] Update predicates and expressions documentation. * [ios, macos] Update changelogs.
| * [ios, macos] Remove mgl_ prefix from built-in expressions variables. (#11689)Fabian Guerra Soto2018-04-161-6/+6
| |
| * [ios, macos] Add predicate like expressions to NSExpression (#11632)Fabian Guerra Soto2018-04-122-7/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Add NSPredicate between function. * [ios, macos] Add NSPredicate 'IN' expression filter support . * [ios, macos] Add NSPredicate 'CONTAINS' expression filter support. * [ios, macos] Refactor NSPredicate operators. * [ios, macos] Simplify NSPredicate's expression conversion code. * [ios, macos] Make 'match' the default predicate conversion option.
| * [ios, macos] Corrected link in expression documentationMinh Nguyễn2018-04-111-2/+4
| |
| * [ios, macos] Renamed expression initializer to be more SwiftianMinh Nguyễn2018-04-113-25/+25
| |
| * Add abs, round, floor, ceil operators (#11653)Anand Thakker2018-04-111-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add abs, round, floor, ceil operators Port of https://github.com/mapbox/mapbox-gl-js/pull/6496 * [ios, macos] Simplified abs, ceiling, floor expressions * [ios, macos] Added rounding expression function * [android] - binding integration for round, ceil, floor and abs expressions * Update mapbox-gl-js to include non-integer rounding test * Drop extra braces * mapbox-gl-js -> master * Update style-spec docs -> PropertyFactory.java
| * [ios, macos] Equate valueForKey: with valueForKeyPath:Minh Nguyễn2018-04-061-1/+1
| |
| * [ios, macos] Distinguish between conditionals and expressions in case expressionMinh Nguyễn2018-04-061-4/+4
| |
| * Change MGLMapPointMake to MGLMapPointForCoordinateAsheem Mamoowala2018-04-062-7/+14
| |
| * [ios, macos] Projection Matrix and LatLng projection to Mercator methodsAsheem Mamoowala2018-04-056-0/+59
| |
| * Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-023-52/+42
| | | | | | | | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
| * [ios, macos] Corrected documentationMinh Nguyễn2018-04-027-36/+48
| | | | | | | | Mentioned MGLComputedShapeSource in a few more places. Updated symbol style layer documentation to refer to aftermarket expression functions. Copyedited some heatmap style layer documentation.