Commit Graph

4523 Commits

Author SHA1 Message Date
Tobrun Van Nuland
7bcb3232cc [android] - update changelog for 5.1.4 release. 2017-09-26 10:40:48 +02:00
Konstantin Käfer
f281e6ae8a [core] fix loading of stale must-revalidate resources
In https://github.com/mapbox/mapbox-gl-native/pull/9670, we implemented support for the Cache-Control: must-revalidate header. While we now respect this header and don't show resources that are stale and have this header set, the optional cache request never completes. This means we're also never going to try to actually get a fresh tile and just never show this tile anymore.

This commit fixes this by responding with a Not Found error when the resource is unusable (= stale and has must-revalidate set). Since we actually still have the data (but can't use it due to caching rules), we're responding with the data as well. To avoid a second cache hit, tile_loader_impl.hpp now passes on the data from the Optional to the Required request so that it can be reused when we get a 304 Not Modified response from the server.
2017-09-25 10:47:20 +02:00
Tobrun Van Nuland
e6fea1e726 [android] - disable rotation gesture when pinch zooming 2017-09-25 09:38:14 +02:00
Ivo van Dongen
04d7aced4d [android] fix map in dialog activity 2017-09-22 23:33:56 +03:00
Ivo van Dongen
c6cafc5e10 [android] fix double map activity 2017-09-22 23:33:56 +03:00
Ivo van Dongen
779fc8aeee [android] example custom layer - add context lost callback 2017-09-22 23:33:56 +03:00
Ivo van Dongen
d1e69c8baf [android] CustomLayer - optionally accept a context lost callback function 2017-09-22 23:33:56 +03:00
Ivo van Dongen
b0c06c764b [android] re-implemented the fps listener api 2017-09-22 23:33:56 +03:00
Ivo van Dongen
bef58c38a8 [android] speed up ui tests
- Make the idling resource use a push model instead of polling for the ready state.
2017-09-22 23:33:56 +03:00
Ivo van Dongen
18bb6da109 [android] reset renderer on the GL thread when map is destroyed
- ensures cleanup of resources on the right thread
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
8182b26dfe [android] signal renderer when gl surface is re-initialized that gl context is lost 2017-09-22 23:33:56 +03:00
Ivo van Dongen
67285f3a95 [android] Re-initialise renderer, backend and context when the android system destroyed the underlying gl resources 2017-09-22 23:33:56 +03:00
Ivo van Dongen
e0312ef208 [android] fix ZoomButtonController initialisation order
- prevents "java.lang.IllegalArgumentException: Receiver not registered: android.widget.ZoomButtonsController" when quitting the map before the receiver is properly registered
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
Ivo van Dongen
c0544d8500 [android] remove texture view 2017-09-22 23:33:56 +03:00
Konstantin Käfer
796386473e [glfw] Save/Restore online status of DefaultFileSource 2017-09-22 10:57:15 +02:00
Konstantin Käfer
3a8dc12a8e [glfw] Always load settings, and allow CLI args to override them 2017-09-22 10:57:15 +02:00
Konstantin Käfer
bd553de7bc [test] add ability to take the OnlineFileSource offline
This functionality is used for testing to ensure correct offline behavior when connectivity is missing.
2017-09-22 10:57:15 +02: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
Konstantin Käfer
b91d9676a6 [glfw] allow loading mapbox:// style URLs via CLI 2017-09-21 12:22:23 +02:00
Tobrun Van Nuland
c9cb4ef624 [android] - set error handler when starting snapshotter, remove obsolete static keyword on interface 2017-09-21 10:38:23 +02:00
Asheem Mamoowala
2d84e2a1ae Fix platform dependent number type unsigned long -> uint64_t 2017-09-20 09:05:45 -07:00
Pablo Guardiola
2fcbd78062 [android] hook camera events into compass (#10019) 2017-09-20 10:15:56 +02:00
Tobrun Van Nuland
00dde25022 [android] - move strings resources to dedicated files, fixup simple map activity, fixup double map activity, snapshot activity home button click fix, add activity titles, remove obsolete navigation drawer activity 2017-09-18 15:56:35 +02:00
Bruno de Oliveira Abinader
447d24bb19 [node] Added 'removeSource' 2017-09-15 18:28:40 -03:00
Tobrun Van Nuland
c795d96bfb [android] - update zoom function example with selected state 2017-09-14 10:55:52 +02:00
Tobrun Van Nuland
d1354466f0 [android] - add style inspecatable in debug mode activity 2017-09-14 10:55:37 +02:00
Radosław Juszczyk
5e63e5704a Do not check connection if it is local request
Requests to servers which run on localhost should be independent from internet connection.
2017-09-14 07:45:31 +02:00
Tobrun Van Nuland
f0bf2c94ae [android] - harden offline region deletion 2017-09-14 07:44:56 +02:00
Tobrun Van Nuland
03d321a6c4 [android] - bump external dependencies 2017-09-14 07:44:13 +02:00
Bruno de Oliveira Abinader
f40519e78d [core] Do not cache stale tiles 2017-09-14 06:30:12 +03:00
Bruno de Oliveira Abinader
a15f0f3d53 [node] Reflect GL JS changes in render.test.js 2017-09-14 01:51:19 +03:00
Bruno de Oliveira Abinader
e9914bf034 [node] Implement GeoJSON converter 2017-09-13 23:35:27 +03:00
Bruno de Oliveira Abinader
cda418198f [core] Clear atlasImage rect for a removed pattern 2017-09-13 22:17:41 +03:00
Jason Wray
366a69785a [ios] Update podspecs for v3.7.0-alpha.1 2017-09-12 13:56:51 -04:00
Bruno de Oliveira Abinader
bed96c800c [node] Shuffle seed support 2017-09-12 20:36:17 +03:00
Minh Nguyễn
161c5ed4f5 [macos] Updated changelog
This adds entries for work done on the master branch since v0.5.1 of the macOS Maps SDK.
2017-09-12 12:37:23 -04:00
Jesse Bounds
b4a4af114b [ios] Updated changelog
This adds entries for work done on the master branch since v3.6.0 of the iOS Maps SDK that was not included in any of the 3.6.x patch releases.
2017-09-12 12:37:16 -04:00
Tobrun Van Nuland
8e01f52dd2 [android] - don't recycle bitmap for icon reuse. 2017-09-12 10:18:24 +02:00
Tobrun
738f68251a [android] - avoid adding duplicate points to bounds 2017-09-11 19:26:03 +02:00
Robin Darby
a5bfb4ac40 [android] Clear out mapCallback's OnMapReadyCallbacks on onDestroy 2017-09-11 19:25:16 +02:00
Jason Wray
dfc5d51ae1 [ios] Fix slight mismerge in iosapp 2017-09-11 11:56:20 -04:00
Ivo van Dongen
36c307f04f [android] test app - fix highlight buildings example 2017-09-11 09:40:43 +03:00
Asheem Mamoowala
50fd917510 Fast tileCount with help from @mapbox/sphericalmercator module 2017-09-08 17:38:42 -07:00
John Firebaugh
b05e5ddd34 [core] Fix z-fighting of translucent fills 2017-09-08 08:30:10 -07:00
Pablo Guardiola
9ce7099089 [android] fix is download complete (a download is complete when count and required resources match and the download state is inactive) (#9913) 2017-09-07 17:26:26 +02:00