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
Ansis Brammanis
feab36a9fb
[core] port minor collision changes from -js ( #10764 )
2018-01-08 12:57:03 -05:00
Asheem Mamoowala
10a44050f4
Support TileJSON bounds property ( #10701 )
...
* [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.
2018-01-05 06:35:31 -08:00
Ansis Brammanis
aa158bb20c
[core] fix #10833 loading overscaled tiles
...
This reverts a regression in ed5438fc21
which set `tileZoom = idealZoom` for all types of tiles.
The second change makes it so that panTiles get loaded only if they have
a lower *data zoom* (only if they cover a larger area).
2018-01-05 10:51:38 +02:00
Fabian Guerra
187b6dc31c
Merge branch 'release-agua' into master
...
# Conflicts:
# circle.yml
# cmake/core-files.cmake
# platform/android/CHANGELOG.md
# platform/android/MapboxGLAndroidSDK/build.gradle
# platform/android/MapboxGLAndroidSDK/gradle.properties
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/text/LocalGlyphRasterizer.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java
# platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml
# platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java
# platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/LocalGlyphActivity.java
# platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MyLocationTintActivity.java
# platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_local_glyph.xml
# platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml
# platform/darwin/src/MGLMapSnapshotter.mm
# platform/darwin/src/MGLRendererConfiguration.h
# platform/ios/CHANGELOG.md
# platform/ios/DEVELOPING.md
# platform/ios/INSTALL.md
# platform/ios/README.md
# platform/ios/resources/bg.lproj/Localizable.strings
# platform/ios/resources/es.lproj/Localizable.strings
# platform/ios/resources/vi.lproj/Localizable.strings
# platform/ios/src/MGLMapView.mm
# platform/macos/macos.xcodeproj/project.pbxproj
# src/mbgl/text/glyph_manager.cpp
2018-01-04 12:55:19 -06:00
Bruno de Oliveira Abinader
ed5438fc21
[core] Allow prefetching tiles for all source types
2018-01-03 16:58:54 +02:00
Asheem Mamoowala
6a9eec8ed5
Fix CustomLayer context retain count ( #10765 )
...
* [core] RenderCustomLayer should de-initialize old context
* [iOS, macOS] Use toll-free bridging to retain/release MGLOpenGLStyleLayer instead of a separate array.
2017-12-20 14:51:30 -08:00
Lauren Budorick
920057c9d6
[core] Better align fill-extrusion vertex layout
2017-12-20 15:17:11 -05:00
Chris Loer
f1f2ebb019
[core] Hook LocalGlyphRasterizer "font family" configuration up to Renderer
2017-12-18 12:17:22 -08:00
Asheem Mamoowala
f545d21df0
[core] Overzoomed image sources vanish ( #10677 )
...
Use z0 tile coordinates instead of screen coordinates to compute ideal zoom for image sources
2017-12-13 12:52:23 -08:00
Chris Loer
cb380064bb
[ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.
...
- Changing font weight does not currently appear to be working.
- Glyph metric extraction code not working; currently unused.
2017-12-11 10:43:00 -08:00
Konstantin Käfer
2eec5a1980
[core] move HeadlessBackend extension initialization code into Impl
2017-11-29 15:48:51 +01:00
Asheem Mamoowala
acae193861
[core] Custom Geometry Sources
2017-11-22 13:56:38 -08:00
Chris Loer
25cfb5863c
[core] Symbol cross-fading.
...
Hold onto tiles after they've been removed from the render tree long enough to run a fade animation on their symbols.
2017-11-17 10:05:15 -08:00
Chris Loer
c39232a89f
[core] Cleanup in response to review comments.
2017-11-17 10:05:15 -08:00
Ansis Brammanis
6b50885c79
[core] Sort child symbol tiles before parent symbol tiles
...
This is necessary so that when there are mixed zoom levels, child symbols get placed before parent symbols.
2017-11-17 10:05:15 -08:00
Ansis Brammanis
22c07596a0
[core] Split MapMode::Still into Static and Tile
...
`Tile` makes sure the symbols in the resulting tile are tileable while
symbols in `Still` match rendering in `Continuous` mode.
2017-11-17 10:05:15 -08:00
Chris Loer
ff58848cfd
[core] Remove dead code
...
- CollisionTile
- FrameHistory
- PlacementConfig
2017-11-17 10:05:15 -08:00
Chris Loer
30de793c2a
[core] Update shaders/tests from GL JS.
2017-11-17 10:05:15 -08:00
Chris Loer
77bfb47fda
[core] Update queryRenderedFeatures to use global CollisionIndex.
2017-11-17 10:05:15 -08:00