Commit Graph

16768 Commits

Author SHA1 Message Date
Konstantin Käfer
b91d9676a6 [glfw] allow loading mapbox:// style URLs via CLI 2017-09-21 12:22:23 +02:00
Konstantin Käfer
82bdd525a3 [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:21:18 +02:00
Konstantin Käfer
6dfb4ecc43 [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:21:18 +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
Jason Wray
9613582417 [ios] Be sure to get a BOOL value for nullable dict keys
Otherwise it errors with, "cannot initialize a variable of type 'BOOL' (aka 'signed char') with an rvalue of type 'id _Nullable'."

This doesn't seem like it should be necessary.
2017-09-15 19:00:32 -04:00
Fabian Guerra Soto
95ae35239e iosv3.6.3 podspec bump (#10008)
* [ios] Update changelog missing entry

* [ios] Bump podspec to 3.6.3
2017-09-15 17:30:19 -04: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
Fabian Guerra Soto
b2e33a452d [ios, macos] Deprecate trafficDayStyleURL and trafficNightStyleURL (#9918)
* [ios, macos] Deprecate trafficDayStyleURL and trafficNightStyleURL

* [ios, macos] Update changelogs.

* [ios, macos] Update trafficDayStyleURL and trafficNightStyleURL tests in MGLStyleTests.
2017-09-15 17:00:54 -04: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
Jesse Bounds
a6224abc33 [ios] Use constraints to manage ornament view placement (again) (#9995)
This reverts the manual layout triggered by KVO approach in favor of a constraints based approach that the KVO method had previously replaced. Although the manual layout approach worked well in most cases and was cleaner in that it did not manipulate any containing views in the app space, using KVO on UIViewControllers has proven to be dangerous.

This also updates the gitshas for KIF and OHHTTPStubs to unbreak UI tests that verify these related changes are working.

This also adds an ornament constraint system for iOS 11+
2017-09-14 13:51:05 -07: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
Minh Nguyễn
254477ad01 [ios] Canned spam coming from Transifex
A bogus source file path was causing contention between two resources. As a consequence, Transifex spammed the project’s watchers daily about changes that didn’t occur.
2017-09-14 01:55:08 -07: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
3f76907f92 [android] - bump proguard config for OkHttp 3.8.0 2017-09-14 07:44:35 +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
Jordan Kiley
73c633e22b [ios] Ignore Smart Invert (#9876) 2017-09-13 11:09:49 -07:00
Minh Nguyễn
ef12dc0822 [android, ios, macos] Russian, Ukrainian, Hungarian and other localization updates (#9945)
* [android, ios, macos] Updated Russian localization

Added a Russian localization of the Android SDK. Updated the iOS and macOS Russian localizations.

* [android, ios, macos] Updated Ukrainian localization

Added a Ukrainian localization of the Android SDK. Updated the iOS and macOS Ukrainian localizations.

* [ios, macos] Updated Traditional Chinese localization

* [macos] Added Hungarian localization

* [android] corrected typos

* [ios, macos] Updated Ukrainian localization

* [android, ios, macos] Configured Foundation.stringsdict on Transifex

* [ios, macos] Pulled in Foundation.stringsdict from Transifex

Updated the German, Lithuanian, and Vietnamese localizations with Foundation.stringsdict files matching Transifex.
2017-09-12 23:53:28 -07: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
John Firebaugh
bb8dd4705c [core] Fix fill layer z-fighting
Hand-ports b05e5ddd34
2017-09-12 08:22:08 -07:00
John Firebaugh
73e9ba1439 [core] Align line vertex to 4-byte boundary
10 byte vertices are heavily penalized by common GL implementations.

Cherry-picks aa4dff1095
2017-09-12 08:21:51 -07: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