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
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
Chris Loer
c66f92f452
[test] Test[ MGLOfflineStorage putResourceForURL]
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
Fabian Guerra
710a7f5037
[ios, macos] Enable offline merge test.
2018-10-04 11:04:15 -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
Fabian Guerra
9b21786f62
[ios, macos] Disable offline merge test.
2018-10-01 16:45:00 -07:00
Jason Wray
1ce31af289
[ios] Bump more test timeouts for Xcode 10 sluggishness
2018-09-26 14:12:57 -07:00
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