Sudarsana Babu Nagineni
fc0745a699
[core] Fix build when building Qt Location plugin for Android
...
- log2 is not available on Android before API 18.
- Android doesn't have 'round' on the std:: namespace when using g++.
Co-authored-by: Thiago Marcos P. Santos <thiago@mapbox.com >
2018-08-10 11:19:24 +03:00
Bruno de Oliveira Abinader
83bd4c2135
[core] Replace remaining dynamic_cast with static_cast
2018-08-08 14:14:34 +03:00
Molly Lloyd
1a840281b5
[core] don't prefetch tiles for geojson sources ( #12529 )
2018-08-02 11:43:34 -07:00
John Firebaugh
9bdd765a02
[core] Merge DataDrivenPropertyValue into PropertyValue ( #12513 )
2018-07-31 14:21:47 -07:00
John Firebaugh
f6659c729f
[core] Use hand-rolled RTTI
2018-07-24 11:08:40 -07:00
John Firebaugh
2bbc792060
[core] Check all bucket dynamic_casts
...
A mismatch can occur when a layer changes from one type to another.
2018-07-24 11:08:40 -07:00
Chris Loer
f9b36f9f5b
[core] Add symbol-placement: line-center
...
- Remove unused/vestigial 'maxCameraDistance'
- Create a single collision circle for line labels that are less than half the width of a collision circle
2018-07-23 13:33:27 -07:00
John Firebaugh
c8edbb0500
[core] Replace {Source,Camera,Composite}Function with PropertyExpression
2018-07-20 11:56:30 -07:00
Chris Loer
d734f670e8
[core] Fix sort order for queryRenderedFeatures when features are filtered.
...
Fixes issue #12104 .
2018-07-03 15:28:00 -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
Thiago Marcos P. Santos
caecdc8482
[core] Use a getter for the BackendScope static variable
...
Fix a static variable initialization issue when dynamic loading
Mapbox GL Native.
2018-06-13 17:13:13 +03:00
Ansis Brammanis
58b6c42f5d
[core] always commit placement to fix #11795
...
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.
2018-06-07 13:40:17 -04:00
Konstantin Käfer
d66251234d
[core] don't use floating point versions of pow/log
...
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
2018-06-04 10:43:21 +02:00
Ansis Brammanis
ba07c873aa
[core] re-assign ids when lng jumps to avoid flicker
2018-05-22 14:58:11 -04:00
Ansis Brammanis
5e36f669ac
[core] avoid symbol flickering when longitude is wrapped
2018-05-22 14:58:11 -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
Lauren Budorick
d05fa404a8
Fix bug (always true + incorrect calculation) in fill_extrusion_bucket edgedistance check
2018-05-16 10:41:48 -07:00
Konstantin Käfer
c3346f473a
[core] Don't crash when attribute count is exceeded
2018-05-03 16:31:43 -07:00
Chris Loer
27b21363e6
[core] Only run placement for first layer per SymbolBucket
...
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.
2018-05-03 14:17:25 -07:00
Ansis Brammanis
0ca53ea5a8
[core] only index features within tile boundaries
...
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.
2018-04-26 18:03:17 -04:00
Chris Loer
f86fe44dbd
[core] fix circle querying for scale and alignment
...
This fixes circle querying for cases where either
circle-pitch-alignment=map
or
circle-pitch-scaling=viewport
2018-04-26 18:03:17 -04:00
Chris Loer
f7d20a5871
[core] fix querying circles across tile boundaries
2018-04-26 18:03:17 -04:00
Asheem Mamoowala
4344812ef5
[core] Streaming TileCover for polygonal regions ( #11267 )
...
A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
2018-04-26 07:43:38 -07:00
Chris Loer
a62745edf9
Port global symbol query from GL JS:
...
- 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.
2018-04-25 14:39:03 -07:00
Fabian Guerra
e08b6fe87f
Merge branch 'release-boba' into master
...
# 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
2018-04-23 10:44:02 -04:00
Asheem Mamoowala
dc495e1c9d
[core] Add Projection matrix to CustomLayerRenderParameters to transform web mercator world coordinates to GL coordinates.
2018-04-05 18:04:25 -07:00
Asheem Mamoowala
099fcc3b3c
Use a host interface for CustomLayer instead of function pointers ( #11553 )
...
Use a host interface for CustomLayer instead of function pointers
Co-authored-by: Julian Rex <julian.rex@mapbox.com >
2018-04-02 16:15:25 -07:00
Ivo van Dongen
d7bc36db6f
[core] prevent render thread from waking up unneeded on still rendering
...
- No longer sends a update message to the render frontend when rendering in still mode only to shortcut it in the renderer. This prevents unneeded render passes in qt.
2018-03-14 16:39:58 +02:00
Ivo van Dongen
fdd9890461
[core] check opengl error state after custom layer invocations
2018-03-01 12:21:32 +01:00
Chris Loer
91f6e09dad
[core] Don't reuse heatmap render texture on viewport resize.
...
Fixes issue #11228 .
2018-02-26 14:23:01 -08:00
Ivo van Dongen
86c824ce80
[core] check opengl error state after custom layer invocations
2018-02-23 12:03:53 +02:00
Chris Loer
b79a1cc82e
[core] Don't reuse heatmap render texture on viewport resize.
...
Fixes issue #11228 .
2018-02-22 09:10:13 -08:00
Asheem Mamoowala
054d4d5ad6
[core] Support a range of zooms in TileRange. Accounts for TilePyramid requesting parent tiles of ideal zoom tiles.
2018-02-20 14:23:42 -05:00
Asheem Mamoowala
2cef23e3ff
[core] Support a range of zooms in TileRange. Accounts for TilePyramid requesting parent tiles of ideal zoom tiles.
2018-02-19 11:07:54 -08:00
Vladimir Agafonkin
82de856c94
[core, ios, macos, android, node] Heatmap layer ( #11046 )
...
Co-Authored-By: Konstantin Käfer <mail@kkaefer.com >
Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com >
Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com >
2018-02-15 17:38:23 +02:00
Molly Lloyd
8a283b0306
[core] add support for mapzen terrarium ( #11154 )
...
* add support for mapzen terrarium
* Encoding --> DEMEncoding, avoid if statement when unpacking elevation values
* add Terrarium test
* update submodule
* remove redundant checks
2018-02-14 13:17:55 -08:00
Molly Lloyd
a386cac452
[core] add maxzoom uniform for raster-dem tilesets ( #11134 )
...
* add maxzoom uniform to support external tilesets
* update git sha for gl-js
* try and fix android crash
* name default maxzoom constant
2018-02-14 11:28:51 -08:00
Chris Loer
a11b277bc1
[core] Rename "onLowMemory" to "reduceMemoryUse".
...
Android still calls "reduceMemoryUse" only while handling a low memory event.
iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
2018-02-14 10:55:16 -08:00
Chris Loer
f721779963
[core] fix onLowMemory to release GL buffers
...
Context cleanup must be called _after_ render sources release tiles.
2018-02-14 10:55:16 -08:00
Thiago Marcos P. Santos
fb65d25831
[core] Make RendererObserver a public interface
...
Needed by backends implementing asyncronous rendering
2018-02-09 20:28:54 +02:00
Molly Lloyd
e03f7a4d1f
[core] align raster-dem tiles to pixel grid ( #11119 )
...
* align raster-dem tiles to pixel grid
* revert ignored hillshade tests
2018-02-06 10:56:42 -08:00
Chris Loer
14db958ae5
[core] Account for overscaling in debug collision circles.
...
Fixes issue #11116 .
Port of GL JS issue $6041.
2018-02-06 08:46:15 -08:00
Asheem Mamoowala
671dfefc1e
Reset tileset-based render sources when any tileset properties changed. ( #11042 )
2018-02-05 19:31:03 -05:00
Konstantin Käfer
fcc3808c83
[core] align raster imagery rendering to pixel rid to avoid blurriness
2018-01-24 17:02:18 -08:00
Molly Lloyd
f3294200c6
[core] add raster-dem source type and hillshade layer type ( #10642 )
2018-01-23 10:49:23 -08:00
Chris Loer
b2e71abfee
Prune unused layers from CrossTileSymbolIndex
...
Fixes issue #10939 -- removed layers would leak entries in the CrossTileSymbolIndex.
2018-01-19 14:50:42 -08:00
Chris Loer
656a6373b9
[core] Synchronize state of CollisionIndex and FeatureIndexes.
...
Fixes issue #10778 , in which mismatch between FeatureIndex and CollisionIndex could lead to inconsistent results or even invalid array access.
2018-01-18 14:36:22 -08:00
Ansis Brammanis
6782d7af37
[core] fix symbol flickering after data updates
2018-01-11 14:07:00 -05:00
John Firebaugh
c9da6e4959
[core] Account for circle-stroke-width in queryRenderedFeatures
2018-01-10 14:22:44 -08:00
Lauren Budorick
43a9bd3fba
[core] Use separate shaders for background and clipping
2018-01-09 15:02:49 -08:00