Commit Graph

11376 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
fc2ca19bc5 [build] Shuffle render tests in 'test-node-recycle-map' target 2017-09-21 18:31:29 -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
Konstantin Käfer
b91d9676a6 [glfw] allow loading mapbox:// style URLs via CLI 2017-09-21 12:22:23 +02:00
Konstantin Käfer
f659aa4eda [core] make sure tiles are not treated as complete until all worker operations completed
Previously, when we started a worker operation that eventually throws an exception (e.g. due to the tile not being parseable), and then enqueue another worker operation while the first one is processing, we treated the worker as idle once the first operation's error callback fired, even though the second operation was still in progress. Due to our use of coalescing, I was unable to come up with a reliable test since we'd need to reproduce the behavior described above, which is timing dependent.
2017-09-21 12:20:54 +02:00
Konstantin Käfer
1a684c1f48 [core] keep tiles renderable even if a subsequent error occurs
Since 9a9408e811, we marked tiles as non-renderable if an error occured. This lead to situations where a tile was loaded + parsed successfully, then a revalidation attempt occured (e.g. because the resource was stale) which failed. In this case, we used to mark the tile as non-renderable although we could've used the perfectly parsed (stale) resource.
2017-09-21 12:20:54 +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
Ivo van Dongen
53d072cbf5 [android] ignore failed uninstalls
- ensures targets run whether the app was installed before on the device or not
2017-09-19 16:45:12 +03:00
Chris Loer
975d6b1698 [core] Don't redo placement for zoom changes at low pitch.
Fixes issue #9996
 Port of GL-JS #5284
2017-09-18 11:59:21 -07: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
c20fdd07db [core] Bypass GeoJSON tile data update if tileID zoom is above source's maxZoom 2017-09-15 18:28:40 -03:00
Bruno de Oliveira Abinader
fe1cf83a28 [core] TransformState::getIntegerZoom should be uint8_t 2017-09-15 18:28:40 -03:00
Bruno de Oliveira Abinader
447d24bb19 [node] Added 'removeSource' 2017-09-15 18:28:40 -03:00
Bruno de Oliveira Abinader
45d07163eb [core] Reset zoom history state in still mode 2017-09-15 16:41:29 -03:00
Bruno de Oliveira Abinader
0f9773e615 [core] Partially revert ZoomHistory.lastIntegerZoom update 2017-09-15 16:41:29 -03:00
Minh Nguyễn
907a96a8f7 Mapbox develops React Native Mapbox GL
Updated the readme to acknowledge Mapbox’s official support for React Native.
2017-09-14 12:03:23 -07: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
88a0187f21 [core] Precompute if has image diffs when updating sources 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
John Firebaugh
2bbde6903a [core] Rename for clarity: ActiveTexture → ActiveTextureUnit 2017-09-11 10:17:54 -07:00
John Firebaugh
437f243d65 [core] Dirty the correct state when a texture is deleted
When a texture is deleted, it is as if all texture units to which that texture object is bound are rebound to texture object zero. Therefore it's the *bindings* that need to be dirtied, not the active texture unit.
2017-09-11 10:17:54 -07: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
aa4dff1095 [core] Align line vertex to 4-byte boundary
10 byte vertices are heavily penalized by common GL implementations.
2017-09-08 09:35:47 -07:00
John Firebaugh
b05e5ddd34 [core] Fix z-fighting of translucent fills 2017-09-08 08:30:10 -07:00
Lauren Budorick
f8a53234ff [core] Remove debug::renderTree 2017-09-07 12:07:46 -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
Ivo van Dongen
d736429271 [macos] snapshotter 2017-09-05 16:29:33 +03:00
Ivo van Dongen
b3b9ef5c6c [ios] snapshotter 2017-09-05 16:29:33 +03:00
Ivo van Dongen
07343a34c5 [darwin] snapshotter 2017-09-05 16:29:33 +03:00
Ivo van Dongen
6d47471767 [ios] extend ui image additions with init from premultiplied image 2017-09-05 16:29:33 +03:00
Pablo Guardiola
89eb23e6b5 [android] make the android release all build batched (#9907) 2017-09-05 09:49:50 +02:00
Pablo Guardiola
73d980a6e7 bump MAS version number to 2.2.3 (#9901) 2017-08-31 18:27:12 +02:00
Ivo van Dongen
be859427a9 [core] remove map update enum 2017-08-31 18:45:28 +03:00