Peng Liu
236afc0395
[android][core] Add Map::latLngBoundsForCameraUnwrapped and jni binding for getVisibleCoordinateBounds. ( #16069 )
...
* [android] Add getVisibleCoordinateBounds method.
* Fix Map::latLngBoundsForCamera, add Android binding for getVisibleRegionBounds.
* Add unit tests for CameraToLatLngBoundsWithRotation and CameraToLatLngBoundsCrossDateLine.
* Move API breaking changes to a new method name latLngBoundsForCameraUnwrapped.
2020-01-09 15:53:23 +02:00
tobrun
1ac3e9e9c2
[android] - add hooks for bulk conversion of geographic coordinates to screen coordinates
2019-12-06 08:56:38 +01:00
Bruno de Oliveira Abinader
1e2cd1e086
[core] Remove Map::cycleDebugOptions
2019-12-04 11:50:05 +02:00
Peng Liu
7139abdbf5
[android] Expose pre-fetching zoom delta. ( #15769 )
...
* [android] Expose pre-fetching zoom delta.
* [android] Fix Clang format.
* [android] Add MapboxMap unit test.
* [android] Add prefetching zoom delta into MapboxMapOptions.
* [android] Deprecate setPrefetchesTiles to migrate to setPrefetchZoomDelta.
* [android] Deprecate getPrefetchesTiles() and migrate to setPrefetchZoomDelta().
* [android] Add unit test to NativeMapViewTest.
* [android] Add IntRange annotation to getPrefetchZoomDelta.
2019-10-08 16:21:46 +03:00
Mikhail Pozdnyakov
8af78ddbb9
[core] Update MapObserver::onDidFinishRenderingFrame() API
2019-09-12 00:40:08 +03:00
Łukasz Paczos
becc705f05
[android] expose camera padding option
...
This removes the cached insets on the Android side, making the core TransformState the source of truth. This still leaves an option to lazily set the padding which is going to be applied only when the next camera animation is started.
2019-08-29 14:51:24 +02:00
Mikhail Pozdnyakov
ef3d04dee5
[core] Export symbol placement update status from MapObserver
2019-08-23 10:56:05 +03:00
Alexander Shalamov
80dd90bd66
[android] Add bindings for onRemoveUnusedStyleImages API
2019-05-21 06:49:17 -07:00
Thiago Marcos P. Santos
06f1dc48a2
[core] Make the BackgroundScheduler a singleton
...
- Do not carry it over everywhere as parameter, it is a shared
instance anyway and the lifecycle is pretty much the app lifecycle
from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
do tasks in the background, we don't make assumptions if it is a
thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03:00
tobrun
0ac95bd994
[android] - add style image missing binding integration, add synchronous
...
image overloads to style
2019-04-15 14:24:02 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Ander Conselvan de Oliveira
7d19115720
[core] Don't use exceptions in MapObserver::onDidFailLoadingMap
...
Using different exception pointers to specify the loading failure makes
an awkward API. Most users rethrow the exception only to figure out what
type of error happened so it can be reported properly. So replace the
exception pointer with a enum an string description of the failure.
2019-03-13 11:58:27 +02:00
tobrun
e6e07a6809
[android] - optimise interface definition
2019-01-15 13:33:28 +01:00
Chris Loer
662a495561
[docs] EnterIdle -> BecomeIdle
2018-12-11 11:46:16 -08:00
Chris Loer
70c2d5a4ca
[core, darwin, android] Add onDidEnterIdle to MapObserver.
...
didEnterIdle fires whenever render completes and no repaint is scheduled.
2018-12-11 11:46:16 -08:00
Tobrun
75914acb6b
[android] - add more tests, refactor map padding
2018-12-11 18:08:16 +01:00
Osana Babayan
ea775ae932
nativeRemoveSource() and nativeRemoveLayer() methods should return a boolean ( #13428 )
2018-12-07 13:10:28 -05:00
Mikhail Pozdnyakov
6f34e69b2e
[android] layers.cpp/hpp -> layer_manager.cpp/hpp
2018-11-07 16:34:20 +02:00
Tobrun
9e7694cb38
[android] - replace OnMapChange with specific callbacks
2018-10-11 14:12:35 +02:00
tobrun
5238c77696
[android] - add binding integration for cross source collision
2018-09-12 14:10:46 -07:00
John Firebaugh
79bf0e8af6
[android] jni.hpp 4.0.0
2018-09-07 09:44:12 -07:00
John Firebaugh
53c3c327f0
[android] Upgrade to latest jni.hpp
2018-09-07 09:44:12 -07:00
Tobrun
418bcc2f21
[android] - expose getMap on native_map_view
2018-07-20 10:31:22 +02:00
tobrun
ec78936e18
[android] - add bearing and pitch to get camera for geometry
2018-07-05 13:30:50 +02:00
tobrun
add9eecd99
[android] - add bearing and tilt to LatLngBounds, incorporate current tilt and bearing transformation in old api
2018-07-05 13:30:50 +02:00
tobrun
279dd93f7c
[android] - add support for sdf by exposing sdf confiigurationn when calling MapboxMap#addImage.
2018-06-25 13:44:15 +02:00
Tobrun
c2a78d0d72
[android] - add paused state to map renderer, don't render snapshot when paused ( #11358 )
2018-04-10 11:10:14 +02:00
Łukasz Paczos
dfdfbc0990
[android] calculating camera's LatLng for bounds without map padding ( #11410 )
2018-03-08 15:55:47 +01:00
Benjamin Jaeger
0b27909b8b
NativeMapView.addImage without copying into Java
2018-02-12 15:56:58 +01:00
Asheem Mamoowala
f06ebcc967
[android] Reuse Java Source objects by holding on to a strong reference in the C++ peer.
2017-11-22 13:56:38 -08:00
Tobrun
f578b26282
[android] - add bulk addImages api on MapboxMap
2017-10-31 13:47:12 -07:00
Tobrun
5893af7f24
[android] - move shape annotation click handling to core
2017-10-30 09:34:23 -07:00
Asheem Mamoowala
24bd336b88
[android][ios][macOS] Implement bindings for Map::cameraForGeometry. On macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS
2017-10-09 13:58:11 -07:00
Ivo van Dongen
b0c06c764b
[android] re-implemented the fps listener api
2017-09-22 23:33:56 +03:00
Ivo van Dongen
c17be060fd
[android] map snapshots
2017-09-22 23:33:56 +03:00
Ivo van Dongen
5d12503302
[android] self-contained map renderer
...
- Isolates the GL thread in a MapRenderer class with a native peer
2017-09-22 23:33:56 +03:00
Ivo van Dongen
15a47d116a
[android] schedule work on the gl thread using GLSurfaceView#queueEvent
2017-09-22 23:33:56 +03:00
Ivo van Dongen
347d7c19c0
[android] async rendering
...
- introduces GLSurfaceView
- introduces Orchestration thread
- renders on the gl thread
2017-09-22 23:33:56 +03:00
Ivo van Dongen
e780cdc29e
[android] extract RendererBackend from NativeMapView
2017-09-22 23:33:56 +03:00
Lauren Budorick
a9ddf5b7fd
Preserve depth buffer between 3D layers + optimize render order ( #9931 )
...
Port of https://github.com/mapbox/mapbox-gl-js/pull/5101 : adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
2017-09-21 14:26:48 -07:00
Tobrun Van Nuland
385e4e6ade
[android] - style image accessor
2017-08-18 13:38:38 +02:00
Tobrun Van Nuland
6fce6bb6d2
[android] - optimise icon management
2017-08-10 15:31:30 +02:00
John Firebaugh
d4cb498d7a
[all] Merge View into RendererBackend
2017-07-26 09:50:38 -07:00
Ivo van Dongen
c5300ebabf
[android] add api to enable/disable tile prefetching
2017-07-20 11:11:18 +03:00
Tobrun
68324913d7
[android] - rewrite map object intialisation ( #9462 )
2017-07-19 14:17:06 +02:00
Ivo van Dongen
b5c0bf1b8d
[android] remove manual ref counting on activation/deactivation
2017-07-18 10:45:12 +02:00
Ivo van Dongen
815ffb253b
[android][glfw][ios][macos][node][qt] rename backend to renderer backend
2017-07-18 10:45:12 +02:00
Ivo van Dongen
d68d8a7846
[android] rendering interface changes
2017-07-18 10:45:12 +02:00
Ivo van Dongen
39a732d7ae
[android][glfw][ios][macos][node][qt] split backend from mapobserver
2017-07-18 10:45:12 +02:00
Ivo van Dongen
a35b268606
[android] remove tile cache size customization
2017-06-27 17:02:40 -07:00