| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
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.
|
|
|
|
| |
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.
|
|
|
| |
(cherry picked from commit 0256f15)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* [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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
(#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
|
|
|
|
| |
This improves the Swift interface while having no effect on Obj-C usage.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* [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] 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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Including feedback edits as suggested by @friedbunny
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* [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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Don't enforce ["zoom"] constraints for filters
Fixes #11594
* Add a couple of comments
* Fix ambiguous constructor call
* ParsingContext(optional<Type>) => ParsingContext(Type)
|
| |
|
| |
|
|
|
|
|
|
| |
* [android][core] update layer immediately when changing it's max/min zoom
* [core] node bindings for layer zoom range
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
(#11650)
|
| |
|
|
|
|
|
| |
macOS 10.13 no longer allows wholesale chown'ing of /usr/local (and this
approach also works in 10.12).
|