summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Suppress warning by silencing unknown warnings (ignoring ↵upstream/jrex-tautological-constant-compare-warningJulian Rex2018-06-191-3/+3
| | | | `-Wunknown-warning-option`) (instead of #if/#end)
* Uncommented check.Julian Rex2018-06-191-2/+2
|
* [ios] Added check for `-Wtautological-constant-compare` support before ↵Julian Rex2018-06-191-1/+3
| | | | ignoring; this removes a warning on iOS: `Unknown warning group '-Wtautological-constant-compare', ignored`
* [core] Use a getter for the BackendScope static variableThiago Marcos P. Santos2018-06-131-7/+15
| | | | | Fix a static variable initialization issue when dynamic loading Mapbox GL Native.
* [core] allow logging error codes and formatting strings at the same timeKonstantin Käfer2018-06-121-2/+8
|
* [test] standardize on database file name and move I/O functions to utilKonstantin Käfer2018-06-122-4/+21
|
* [core] fix undefined behavior in LineAtlas::addDashKonstantin Käfer2018-06-121-0/+7
|
* [core] always commit placement to fix #11795Ansis Brammanis2018-06-073-20/+14
| | | | | | | | Since placements will be committed even if they do not need the full fade duration to fade features in, we need the new `fadeStartTime` to keep track of how long we still need to fade. This is important because if we fade too long we will trigger another placement and never stop rendering.
* [core] Fix crash due to mixing legacy filters and expressions (#12065)Anand Thakker2018-06-061-33/+51
| | | | | | | | | | | | | | | | | | | * Fix crash due to mixing legacy filters and expressions In some cases, (invalid) nested filters that used a mix of legacy filter syntax and expression syntax caused a crash due to a failure to propagate parsing errors from deeper within the filter expression. These errors went undetected in part because these conversion functions returned unique_ptr<Expression> values (or vectors thereof), using {nullptr} to represent a parsing error, but the core expression classes expect unique_ptr<Expression> that are never null. This changes over to using expression::ParseResult (aka optional<unique_ptr<Expression>>), to represent conversion failure the same way we do in the rest of the expression system. * Fix clang 3.8 / gcc 4.9 issue
* [core] fix bogus unused variable with GCC 7Konstantin Käfer2018-06-041-3/+3
|
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-0410-14/+16
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* Set Tile loaded/rendered instead of marking tile as optional.Asheem Mamoowala2018-05-241-3/+3
|
* [core] wrap glGetString in `MBGL_CHECK_ERROR` tooKonstantin Käfer2018-05-241-2/+2
|
* [core] re-assign ids when lng jumps to avoid flickerAnsis Brammanis2018-05-224-2/+46
|
* [core] avoid symbol flickering when longitude is wrappedAnsis Brammanis2018-05-223-3/+34
|
* [android] - remove mips and armeabi as supported ABIsTobrun2018-05-221-0/+1
| | | | | | | | | | [android] - bump CI image to NDK 17 compatible [core] - remove setting edgeDistance to 0, comparison 'const short' > 32767 is always false [android] - remove throwing in desructor, undefined behaviour [android] - bump dependency versions of project
* [core] Use std::ios::binary format in std::ifstreamBruno de Oliveira Abinader2018-05-221-2/+2
|
* [core] fix hang when parsing very large angles for hue in hsl colorsKonstantin Käfer2018-05-221-3/+3
|
* Clamp TileJSON.bounds latitudes to [-90, 90] (#11964)Asheem Mamoowala2018-05-211-8/+9
| | | Fixes #11963.
* [ios,macos] Fix for infinite loop crash when setting shape to nil in ↵Julian Rex2018-05-212-10/+49
| | | | MGLMapViewDelegate methods (#11614)
* [core] Align URL token replacement behavior with GL JSJohn Firebaugh2018-05-183-7/+17
| | | | I.e. preserve unknown tokens in URLs rather than replacing them with an empty string.
* [core] Align match behavior with case/==John Firebaugh2018-05-181-2/+16
| | | | 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.
* Merge branch 'release-boba' into masterupstream/fabian-merge-release-4.0.1-masterFabian Guerra2018-05-1735-882/+990
|\ | | | | | | | | | | | | | | | | | | | | | | # 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
| * [core] Convert null to empty string, not “null”Minh Nguyễn2018-05-141-0/+1
| |
| * [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-1012-647/+434
| | | | | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
| * [core] Don't crash when attribute count is exceededKonstantin Käfer2018-05-0323-237/+557
| |
| * [core] Don't copy TileLayerIndexes on every frame.Chris Loer2018-05-021-1/+1
| | | | | | | | Fixes issue #11811 (too much CPU time spent in CrossTileSymbolIndex).
* | Fix bug (always true + incorrect calculation) in fill_extrusion_bucket ↵Lauren Budorick2018-05-161-2/+2
| | | | | | | | edgedistance check
* | [qt] Fix build when building the Qt Location pluginThiago Marcos P. Santos2018-05-141-1/+1
| | | | | | | | | | - MinGW has to explicitly know that is building a static library. - Android doesn't have 'round' on the std:: namespace when using g++.
* | [core] Only run placement for first layer per SymbolBucketChris Loer2018-05-038-14/+32
| | | | | | | | | | | | | | | | | | 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] Don't copy TileLayerIndexes on every frame.Chris Loer2018-05-011-1/+1
| | | | | | | | Fixes issue #11811 (too much CPU time spent in CrossTileSymbolIndex).
* | [core] Remove unused 'Throttler' class.Chris Loer2018-04-303-59/+0
| | | | | | | | Throttler was previously used to control how frequently background placement ran.
* | [core] Port is-supported-script to native.Chris Loer2018-04-273-2/+42
| | | | | | | | Native port is much simpler because RTL text support is always enabled.
* | [core] only index features within tile boundariesAnsis Brammanis2018-04-263-5/+11
| | | | | | | | | | | | | | Previously we relied on tile buffers for querying features who's rendered representations cross tile boundaries. Now we query multiple tiles making it unnecessary to index features that are completely outside a tile's boundaries.
* | [core] fix circle querying for scale and alignmentChris Loer2018-04-2639-68/+186
| | | | | | | | | | | | | | This fixes circle querying for cases where either circle-pitch-alignment=map or circle-pitch-scaling=viewport
* | [core] fix querying circles across tile boundariesChris Loer2018-04-267-16/+30
| |
* | [core] Streaming TileCover for polygonal regions (#11267)Asheem Mamoowala2018-04-265-25/+559
| | | | | | A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
* | Review changes:Chris Loer2018-04-251-3/+5
| | | | | | | | | | - assert symbol layer tiles must be geometry tiles, instead of dynamically checking - re-use retainedBucketQuery iterator instead of calling find twice.
* | Bump GL JS pin to get tests for global symbol querying.Chris Loer2018-04-251-0/+3
| | | | | | | | | | | | - 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.
* | Port global symbol query from GL JS:Chris Loer2018-04-2534-196/+219
| | | | | | | | | | | | | | - Symbol querying is now global instead of per-tile - Symbols that bleed over tile boundaries no longer missed in queries - Symbol results now sorted based on rendering order (ie overlapping symbols change their sort order when a bearing change causes their render order to change) - Placement::retainedQueryData now responsible for maintaining symbol querying data for buckets that may no longer be in the TilePyramid.
* | Merge branch 'release-boba' into masterupstream/fabian-merge-v4.0.0Fabian Guerra2018-04-2339-377/+411
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 crash on placing symbols with 0 renderable glyphsChris Loer2018-04-192-2/+8
| | | | | | | | | | | | Fixes issue #11729. Close relative of issue #10956. It is possible for us to receive Glyphs from the server that are valid, but have an invalid bitmap. In that case, the glyphs will be present in the `GlyphMap` used for shaping, but not present in the `GlyphPositions` used in `getGlyphQuads`. `SymbolInstance::hasText` looked at the shaping instead of the actual quads. `symbol_projection.cpp` should never try to project a label without any quads, but we'll also try to make it so that it doesn't crash if it does.
| * Don't enforce ["zoom"] constraints for filters (#11672)Anand Thakker2018-04-122-5/+29
| | | | | | | | | | | | | | | | | | | | | | | | * Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
| * Update layer immediately when changing its max/min zoom level (#11399)Łukasz Paczos2018-04-1210-0/+20
| | | | | | | | | | | | * [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 (#11653)Anand Thakker2018-04-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Fix style parsing bug for constant expressions (#11606)Anand Thakker2018-04-091-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix style parsing bug for constant expressions Closes #10849 * Ignore tests for unported GL JS change Refs https://github.com/mapbox/mapbox-gl-js/pull/6429 * Fuller fix * Update mapbox-gl-js
| * [core] re-bind uniform locations after re-linking program (#11618)Łukasz Paczos2018-04-061-0/+5
| | | | | | | | | | - On some gl implementations the uniform locations are shifted after linking the program a second time, resulting in errors when using any uniform. On some implementations they are actually doubled. Re-binding the uniforms after selectively binding the vertex attributes prevents this. (cherry picked from commit 4a0e025)
| * [core] Add Projection matrix to CustomLayerRenderParameters to transform web ↵Asheem Mamoowala2018-04-051-0/+4
| | | | | | | | mercator world coordinates to GL coordinates.
| * Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-025-52/+22
| | | | | | | | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
| * [core] Make FeatureIndex own GeometryTileData.Chris Loer2018-04-025-30/+27
| | | | | | | | | | Prevents querying a FeatureIndex built against a separate set of data, which can lead to invalid index exceptions. The GeometryTileWorker 'data' member can still change independently of the data in the feature index, at the time 'setData' is called. The GeometryTileWorker maintains ownership of its local data (which may be used to re-parse) and clones the data for use by the FeatureIndex in the foreground.