summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [core] Rework spec function/expression taxonomyLauren Budorick2018-05-141-3/+3
| | | Ports https://github.com/mapbox/mapbox-gl-js/pull/6521, updating codegen scripts to parse new expression taxonomy.
* Avoid exceptions for flow control during database creationJohn Firebaugh2018-05-092-16/+13
| | | | Unfortuntely, it's difficult to avoid all exceptions, because sqlite3_open_v2 does not reliably return SQLITE_NOTADB if the file is not a database. However, this should avoid cases where developers misinterpret the SQLITE_CANTOPEN exception as a crash, which is the common case.
* [core] Only run placement for first layer per SymbolBucketChris Loer2018-05-032-11/+16
| | | | | | | | | Native version of mapbox/mapbox-gl-js#6548. Port of mapbox/mapbox-gl-js#6550. Prevents symbols that share the same layout properties from colliding against each other. Bump GL JS pin to get regression test. Rename "bucketName" -> "bucketLeaderID" to make it clearer what it represents.
* [core] Port is-supported-script to native.Chris Loer2018-04-271-1/+1
| | | | Native port is much simpler because RTL text support is always enabled.
* [core] Streaming TileCover for polygonal regions (#11267)Asheem Mamoowala2018-04-262-17/+223
| | | A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
* Bump GL JS pin to get tests for global symbol querying.Chris Loer2018-04-251-0/+4
| | | | | | - 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-235-70/+44
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| * Don't enforce ["zoom"] constraints for filters (#11672)Anand Thakker2018-04-122-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | * Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
| * Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-021-22/+16
| | | | | | | | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
| * [core] Convert GeometryTileWorker to "one-phase" loadingChris Loer2018-04-021-33/+0
| | | | | | | | | | Modest simplification refactoring (issue #10457). Also, fixes issue #11538, which was caused in part by a hole in the vestigial two-phase loading.
| * [core] Round-trip linear interpolatorsMinh Nguyễn2018-03-301-1/+3
| |
| * [test] Update Map.PrefetchTilesupstream/fb-11334-boba-cherry-pickBruno de Oliveira Abinader2018-03-306-61/+74
| |
| * [core] Stringify expression syntax, not function syntaxJohn Firebaugh2018-03-141-12/+13
| |
| * [core] TileJSON conversion clamps bounds longitude to [-180,180], per specAsheem Mamoowala2018-03-091-0/+10
| |
| * [core] Add expression filter support (#11251)Lucas Wojciechowski2018-03-091-76/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Remove Filter::operator()(const Feature&) * WIP * WIP * WIP * WIP * Hook up expression filter evaluator * Replace `shared_ptr` with &reference * Fill in implementation of `void operator()(const ExpressionFilter&)` * Fix failing tests * Switch back to a shared_ptr per chat with @anandthakker * Fix benchmark compilation * Shot in the dark to fix CI * Shot in the dark to fix CI (part 2) * Shot in the dark to fix CI (part 3) * In src/mbgl/style/conversion/filter.cpp, add a port of isExpressionFilter and use it to decide in Converter<Filter>::operator() whether to parse the incoming JSON as an ExpressionFilter or one of the legacy filter types * Remove bool Filter::operator()(const GeometryTileFeature&) const * Ensure the map zoom is passed into filtering operations wherever applicable * Add expression filter tests * Addressed PR feedback * Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filter)` * Fix formatting& nit
| * [core] continue loading style even if we mutate itKonstantin Käfer2018-02-231-5/+16
| | | | | | | | When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
| * [core] Support a range of zooms in TileRange. Accounts for TilePyramid ↵Asheem Mamoowala2018-02-201-1/+12
| | | | | | | | requesting parent tiles of ideal zoom tiles.
* | Merge tag 'ios-v3.7.6' into masterJason Wray2018-03-141-0/+10
|\ \
| * | [core] TileJSON conversion clamps bounds longitude to [-180,180], per specAsheem Mamoowala2018-03-081-0/+10
| | |
| * | [core] Support a range of zooms in TileRange. Accounts for TilePyramid ↵Asheem Mamoowala2018-03-081-1/+12
| | | | | | | | | | | | requesting parent tiles of ideal zoom tiles.
| * | [core] continue loading style even if we mutate itKonstantin Käfer2018-02-271-5/+16
| | | | | | | | | | | | When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
| * | Cherry pick #11176 for Agua patchAsheem Mamoowala2018-02-121-0/+10
| | |
| * | Support TileJSON bounds property (#10701)Asheem Mamoowala2018-02-082-0/+128
| | | | | | | | | | | | | | | | | | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
| * | [core] fix style parsing crash when a layer's paint property is not an objectKonstantin Käfer2018-01-232-0/+15
| | |
| * | [core] don't tie Annotation geometries to Map maxzoomKonstantin Käfer2018-01-021-0/+16
| | | | | | | | | | | | Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
| * | [core] correctly alter sprite URLs when attaching sprite.png/sprite.json ↵Konstantin Käfer2017-10-171-0/+8
| | | | | | | | | | | | filenames
| * | [core] don't generate clip IDs for buckets/layers that don't need to be clippedKonstantin Käfer2017-10-171-2/+5
| | |
| * | [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-123-129/+129
| | | | | | | | | | | | | | | | | | Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving). This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
| * | [core] Add `cameraForLatLngs()` method with modified bearingAsheem Mamoowala2017-10-091-0/+26
| | |
* | | [core] Add expression filter support (#11251)Lucas Wojciechowski2018-03-081-76/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Remove Filter::operator()(const Feature&) * WIP * WIP * WIP * WIP * Hook up expression filter evaluator * Replace `shared_ptr` with &reference * Fill in implementation of `void operator()(const ExpressionFilter&)` * Fix failing tests * Switch back to a shared_ptr per chat with @anandthakker * Fix benchmark compilation * Shot in the dark to fix CI * Shot in the dark to fix CI (part 2) * Shot in the dark to fix CI (part 3) * In src/mbgl/style/conversion/filter.cpp, add a port of isExpressionFilter and use it to decide in Converter<Filter>::operator() whether to parse the incoming JSON as an ExpressionFilter or one of the legacy filter types * Remove bool Filter::operator()(const GeometryTileFeature&) const * Ensure the map zoom is passed into filtering operations wherever applicable * Add expression filter tests * Addressed PR feedback * Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filter)` * Fix formatting& nit
* | | [core, qt] move self-resetting Statement/Query object to shared headerKonstantin Käfer2018-03-022-35/+42
| | |
* | | [core] refactor SQLite error/status codesKonstantin Käfer2018-03-021-1/+1
| | |
* | | [test] Update Map.PrefetchTilesBruno de Oliveira Abinader2018-02-286-61/+74
| | |
* | | [tests] Added a test for getting resources from the databaseThiago Marcos P. Santos2018-02-262-0/+34
| | | | | | | | | | | | This test would have flagged the Qt regression.
* | | [core] continue loading style even if we mutate itKonstantin Käfer2018-02-231-5/+16
| | | | | | | | | | | | When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
* | | [core] Support a range of zooms in TileRange. Accounts for TilePyramid ↵Asheem Mamoowala2018-02-191-1/+12
| |/ |/| | | | | requesting parent tiles of ideal zoom tiles.
* | [core] add support for mapzen terrarium (#11154)Molly Lloyd2018-02-142-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | * add support for mapzen terrarium * Encoding --> DEMEncoding, avoid if statement when unpacking elevation values * add Terrarium test * update submodule * remove redundant checks
* | TileJSON Bounds allows values inclusive of world extentsAsheem Mamoowala2018-02-121-0/+10
| |
* | [core] prioritize Thread::pause() callsKonstantin Käfer2018-02-061-0/+14
| |
* | [core] don't force downloading of Open Sans fontsKonstantin Käfer2018-01-252-0/+24
| | | | | | | | When a SymbolLayer doesn't have a text-font defined, we automatically add Open Sans/Arial Unicode MS. However, when the SymbolLayer is only used for rendering icons, it doesn't have text-field defined either. In those cases, we still force downloading Open Sans/Arial Unicode MS during offline pack creation. If the user doesn't use this font, this change should save ~15MB and a few seconds in download time.
* | [core] align implementations of local and asset file sourceKonstantin Käfer2018-01-252-0/+52
| |
* | [core] fix style parsing crash when a layer's paint property is not an objectKonstantin Käfer2018-01-232-0/+15
| |
* | [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-233-0/+427
| |
* | [core] Prevent symbols at the same zoom from sharing a crossTileID.Chris Loer2018-01-171-0/+74
| | | | | | | | | | Port of GL JS PR #5994. Fixes issue #10844, which would allow multiple symbols in a tile to share the same crossTileID as one of their duplicate parent-tile symbols. Once the symbols shared a crossTileID, they would permanently remain "duplicates" of each other, even after increasing zoom level allowed the CrossTileSymbolIndex to distinguish between them.
* | [core] Add warning for invalid text-font valuesJohn Firebaugh2018-01-102-0/+149
| |
* | [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-101-0/+75
| |
* | [core] port minor collision changes from -js (#10764)Ansis Brammanis2018-01-081-1/+45
| |
* | [test] Only use our SQLite3 wrapper in testsBruno de Oliveira Abinader2018-01-081-44/+2
| |
* | Support TileJSON bounds property (#10701)Asheem Mamoowala2018-01-052-0/+128
| | | | | | | | | | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
* | [all] - update licenses to 2018Tobrun2018-01-031-1/+1
| |