Jason Wray
737ebed7d5
[ios, tests] Bump most waitForExpectationsWithTimeout's to 5s
...
[skip firebase]
Bump MGLOfflineStorageTests timeouts to 5 seconds
2018-09-20 14:57:07 -07:00
Jason Wray
0a1b38e7f8
[ios, tests] Work around improper verbing of 'optional'
2018-09-20 13:42:57 -07:00
Fabian Guerra
9b09ec1e6a
[ios, macos] Fix add file content test, create Documents folder when missing.
2018-09-19 15:13:05 -07: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
ryanhamley
31cca05fc6
Port symbol-z-order symbol layout style-spec property to Native
2018-09-07 13:05:19 -07:00
Nadia Barbosa
7017ac512e
[ios, macos] Allow -convertCoordinateBounds to span antimeridian
2018-09-04 18:57:18 -07: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
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
Ivo van Dongen
ca0f2f925d
[darwin] arbitrary offline region geometries
2018-08-20 22:49:01 +03:00
Jason Wray
ec7b920603
[ios] Standardize exception definitions
2018-08-09 13:35:28 -04:00
John Firebaugh
9bdd765a02
[core] Merge DataDrivenPropertyValue into PropertyValue ( #12513 )
2018-07-31 14:21:47 -07:00
Lloyd Sheng
9c90509750
[iOS] Add fallbacks for name fields ( #12387 )
...
* Add fallbacks for name fields
* Add a fallback for `name_zh-Hant`
* Update changelog
2018-07-26 13:53:12 +08:00
Chris Loer
0b2221cb74
[android, ios, macos] Generate symbol-placement: line-center wrappers
2018-07-23 13:33:27 -07:00
John Firebaugh
2c5d0e74a1
[ios, macos] Convert token strings to expressions on input
...
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.
2018-07-20 12:35:00 -07:00
John Firebaugh
c8edbb0500
[core] Replace {Source,Camera,Composite}Function with PropertyExpression
2018-07-20 11:56:30 -07:00
Minh Nguyễn
ec8ac3c64f
[ios, macos] Allow unwrapped arguments in match expressions
2018-07-09 16:03:03 -07:00
Minh Nguyễn
f11ab91fc4
[ios, macos] Convert predicate options to collators
2018-07-09 16:02:40 -07:00
John Firebaugh
6dfe56510c
[darwin] Replace use of *Stops with expressions DSL
2018-06-29 15:38:11 -07:00
Molly Lloyd
e1af62e87d
[core] add raster-resampling property ( #12176 )
...
* update style-code for raster-resampling
* implement user-defined raster-resampling
* invert filter condition
* raster-resampling -> raster-resampling-mode for darwin language conventions
2018-06-21 14:37:17 -07:00
Julian Rex
5e65cb7812
[ios, macos] Added macro to handle pending iOS tests (rather than disabling via scheme) ( #11806 )
2018-05-24 00:43:29 -04:00
Fabian Guerra Soto
3ea1a7062f
[ios, macos] Fix keypath expressions, json object is parsed incorrectly for nested keypaths. ( #11959 )
...
* [ios, macos] Fix keypath expressions, a json object is parsed incorrectly for nested keypaths.
* [ios, macos] Update changelogs.
2018-05-23 13:21:31 -04:00
John Firebaugh
b2fabe5eef
[core] Align match behavior with case/==
...
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.
2018-05-18 12:10:31 -07:00
Fabian Guerra Soto
1aa5c67837
[ios, macos] Support array values in match expressions. ( #11866 )
...
* [ios, macos] Support array values in match expressions.
* [ios, macos] Update mgl_match documentation.
* [ios, macos] Update changelogs.
* [ios, macos] Clarify match expressions documentation.
2018-05-17 14:47:01 -04:00
Fabian Guerra
30376f3ce1
Merge branch 'release-boba' into master
...
# 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
2018-05-17 11:47:31 -04:00
Minh Nguyễn
baf5fd7d01
[ios, macos] Fixed English priority during label localization
...
Respect English in the Preferred Languages setting even if other Mapbox Streets source–supported languages are listed too.
2018-05-14 14:12:51 -07:00
Lauren Budorick
62c875e01b
[core] Rework spec function/expression taxonomy
...
Ports https://github.com/mapbox/mapbox-gl-js/pull/6521 , updating codegen scripts to parse new expression taxonomy.
2018-05-14 12:38:14 -07:00
Lucas Wojciechowski
a4e2c1af1f
[core] Convert "legacy" filters directly into expressions ( #11610 )
...
Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
2018-05-10 12:37:14 -07:00
Fabian Guerra Soto
a425995189
[ios, macos] Add to-rgba expression operator. ( #11725 )
...
* [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.
2018-05-07 12:01:29 -04:00
Fabian Guerra Soto
a365dd11da
[ios, macos] Make NSPredicate+MGLAdditions public. ( #11810 )
2018-05-04 15:09:07 -04:00
Fabian Guerra Soto
1c847b321b
[ios, macos] Add support for subscripting in expressions. ( #11770 )
...
* [ios, macos] Add support for subscripting in expressions.
* [ios, macos] Update changelogs.
* [ios, macos] Refactor LAST subscripting expression.
2018-05-04 13:30:06 -04:00
Fabian Guerra Soto
86a2e93294
[ios, macos] Fix overlay bounds that span the antimeridian. ( #11783 )
...
* [ios, macos] Fix overlay bounds that span the antimeridian.
* [ios, macos] Update changelogs.
* [ios, macos] Make MGLLocationCoordinate2DIsValid private.
* [ios, macos] Update changelogs.
2018-05-04 12:49:58 -04:00
Jason Wray
c067865e7b
[ios, macos] Update minimum deployment versions to iOS 9, macOS 10.11 ( #11776 )
...
* [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
2018-04-27 12:25:49 -04:00
Julian Rex
1f4e3e0f6e
[ios, macos] Raise exceptions for empty expression stops dictionaries ( #9539 )
2018-04-26 12:40:26 -04:00
Fabian Guerra Soto
a45670cfb5
[ios, macos] Rename featureProperties to featureAttributes. ( #11748 )
...
* [ios, macos] Rename featureProperties to featureAttributes.
* [ios, macos] Update style documentation.
* [ios, macos] Remove featureProperties variable tests.
* [ios, macos] Update the changelogs.
2018-04-23 09:05:36 -04:00
Jordan Kiley
f81f770741
[ios, macos] Update Style Functions guide ( #11724 )
2018-04-19 18:43:04 -07:00
Fabian Guerra Soto
a6c02adeb6
[ios, macos] Add trigonometric support to NSExpression. ( #11716 )
...
* [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.
2018-04-17 18:23:35 -04:00
Fabian Guerra Soto
cec46070c6
[ios, macos] Add NSExpression convenience constructors and helper methods. ( #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.
2018-04-16 20:48:04 -04:00
Jason Wray
d4e597eb94
[ios, macos] Convert various class methods to class properties
...
This improves the Swift interface while having no effect on Obj-C usage.
2018-04-16 18:42:34 -04:00
Minh Nguyễn
e16ce7d879
Localize expressions more thoroughly ( #11651 )
...
* [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
2018-04-16 15:24:33 -07:00
Fabian Guerra Soto
62dd097328
[ios, macos] NSPredicate expression filters. ( #11587 )
...
* [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.
2018-04-16 16:51:59 -04:00
Fabian Guerra Soto
fe4348eec3
[ios, macos] Remove mgl_ prefix from built-in expressions variables. ( #11689 )
2018-04-16 13:39:10 -04:00
Fabian Guerra Soto
23f0222fd9
[ios, macos] Add predicate like expressions to NSExpression ( #11632 )
...
* [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.
2018-04-12 17:43:01 -04:00
Minh Nguyễn
9b869c51ad
[ios, macos] Renamed expression initializer to be more Swiftian
2018-04-11 20:26:02 -07:00
Anand Thakker
f0f67b4788
Add abs, round, floor, ceil operators ( #11653 )
...
* 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
2018-04-11 12:03:56 -04:00
Minh Nguyễn
f9e32d59ad
[ios, macos] Distinguish between conditionals and expressions in case expression
2018-04-06 13:47:49 -07:00
Asheem Mamoowala
e32a0586f2
Change MGLMapPointMake to MGLMapPointForCoordinate
2018-04-06 10:06:05 -07:00
Asheem Mamoowala
cc01781db7
[ios, macos] Projection Matrix and LatLng projection to Mercator methods
2018-04-05 18:04:25 -07:00
Minh Nguyễn
9faed7293b
[ios, macos] Eliminated MGLAbstractShapeSource
...
MGLComputedShapeSource is now a direct subclass of MGLSource and sibling of MGLShapeSource.
2018-04-02 10:42:54 -07:00
Minh Nguyễn
a877b6dbe8
[ios, macos] Renamed MGLVectorSource to MGLVectorTileSource
2018-04-02 10:42:54 -07:00
Minh Nguyễn
29a8efab26
[ios, macos] Renamed MGLRasterSource to MGLRasterTileSource
...
Also updated various source class listings to reflect the addition of image and raster DEM sources.
2018-04-02 10:42:54 -07:00