Commit Graph

10797 Commits

Author SHA1 Message Date
Minh Nguyễn
453c13dee2 [android, ios, macos] Updated translations
Updated Catalan, Spanish, Swedish, Traditional Chinese, Ukrainian, and Vietnamese.
2017-09-22 10:05:40 -07: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
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
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
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
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
Tobrun Van Nuland
3f76907f92 [android] - bump proguard config for OkHttp 3.8.0 2017-09-14 07:44:35 +02: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
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
Jason Wray
efe9928ad5 [ios] Update changelog for MGLMapView.showsUserHeadingIndicator 2017-09-07 19:47:53 -04:00
Jason Wray
59076c8300 [ios] Disable implicit animation of heading indicators
The update steps for the heading indicator are typically small, so animations tend to pile up and cause performance issues. Disabling actions is a slight regression when it comes to large steps (they're not animated now, where they previously were) and this should eventually be addressed.

Also consistently use provided API for disabling CATransaction actions.
2017-09-07 19:23:30 -04:00
Jason Wray
cb1309a253 [ios] Implicitly enable showsUserLocation when enabling the heading indicator 2017-09-07 19:23:30 -04:00
Jason Wray
63250baa4e [ios] Make user heading indicator property IBInspectable
Rename it to `showsHeading` to fit in the tiny label column of the utilities panel.
2017-09-07 19:23:29 -04:00
Jason Wray
e1ff826d20 [ios] Change user location heading filter to 1°
The default is 1.
2017-09-07 19:23:29 -04:00
Jason Wray
218c720e9e [ios] Add setShowsUserHeadingIndicator and validateUserHeadingUpdating 2017-09-07 19:23:29 -04:00
Jason Wray
99616e6627 [ios] Introduce MGLUserLocationHeadingIndicator protocol 2017-09-07 19:23:29 -04:00
Jason Wray
c35b1cd56b [ios] Set a heading indicator update threshold 2017-09-07 19:23:29 -04:00
Jason Wray
5db97ed96e [ios] Introduce MGLUserLocationHeadingArrowLayer class 2017-09-07 19:23:20 -04:00
Jason Wray
c6708442c9 [ios] Refactor user location heading indicator into its own class 2017-09-06 18:21:38 -04:00
Jason Wray
cb7eb5cafb [ios] Improve iosapp's zoom debug label 2017-09-06 17:11:09 -04:00
Jason Wray
87348234d1 [ios] Guard against nil user location when setting tracking mode 2017-08-30 17:28:14 -04:00
Fabian Guerra Soto
c8dc77f06f [ios, macos] Make minimumZoomLevel and maximumZoomLevel IBInspectable. (#9729)
* [ios, macos] Make minimumZoomLevel and maximumZoomLevel IBInspectable.

* [ios, macos] Update changelogs.
2017-08-30 16:25:57 -04:00
Jason Wray
eedd909611 [tests] Cherry-pick OfflineDatabase::databaseTableColumns
Originally part of the much larger f0a7c45064
2017-08-29 14:08:30 -04:00
Thiago Marcos P. Santos
2640109887 [tests] Enforce the schema downgrade behavior
Which is, delete and recreate the database.
2017-08-29 14:08:30 -04:00
Thiago Marcos P. Santos
9c4071fe86 [core] Remove database on schema downgrade
Previously we were throwing an exception.
2017-08-29 14:08:30 -04:00
Ian Wagner
e78620c705 [ios] Set location to nil until the user's location is determined
The documentation for the `location` property states that "This property contains `nil` if the map view is not currently showing the user location or if the user’s location has not yet been determined." The iOS SDK presently returns a garbage value, which has some rather annoying consequences when the value should logically be nullable. This change should rectify the issue.

With _location no longer initialized to an invalid coordinate, trying to access `_location.coordinate` when `_location == nil` will return `0, 0`, which is a valid coordinate.
2017-08-28 16:41:55 -04:00
Jason Wray
a7f06366d2 [ios] Support iOS 11 location usage descriptions 2017-08-28 12:15:11 -04:00
Jason Wray
5cad92cc33 [ios] Print Xcode and SDK version during packaging 2017-08-25 16:12:00 -04:00
Konstantin Käfer
1f5a0ec48b [build] Don't fail hard for unknown warning groups 2017-08-25 15:37:13 -04:00
Konstantin Käfer
fb07beebb4 [build] Don't use maybe-uninitialized and misleading-indentation in Clang, since they're not implemented there
Cherry-pick of d03fd0dce2.
2017-08-25 15:36:30 -04:00
Jason Wray
b2fd7b680c [ios] Fix heading update loop
Updating CLLocationManager.headingOrientation triggers a new heading update, even if there was no actual change in its value.
2017-08-24 12:03:38 -04:00
Jason Wray
acb8199d32 [ios] Document annotations-as-features limitations w/feature querying
Also move visibleAnnotations next to visibleAnnotationsInRect:.
2017-08-21 12:13:47 -04:00
Tobrun Van Nuland
8d04e099c7 [android] - update config for next reelease 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
6de3e6fe70 [android] - update changelog for v5.1.3 2017-08-19 11:29:38 +02:00
Cameron Mace
78633322d7 bumped MAS version number 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
341165cef4 [android] - avoid IndexOutOfBounds when destroying map object 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
f356ff4b00 [android] - enable location change animation of MyLocationView by default 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
a83c19e954 [android] - re-add projectedMeters 2017-08-19 11:29:38 +02:00
Tobrun
2802c55bd5 [android] - create smallest possible LatLngBounds when visible region crosses the dateline 2017-08-19 11:29:38 +02:00
Tobrun
b4cb719ceb [android] - provide compability with Samsung devices forcing 3-4 array matrix length 2017-08-19 11:29:38 +02:00
Tobrun
05cbd4e31d [android] - keep state of initial overlain views margins (#9391) 2017-08-19 11:29:38 +02:00
Fabian Guerra Soto
001988fba1 [ios] Update pods spec for iOS v3.6.2 (#9806) 2017-08-18 15:38:16 -04:00
Jason Wray
b5b84ef52d [ios] Warn about using MGLFeature-conforming annotations w/querying 2017-08-18 13:24:56 -04:00
Jason Wray
cd36ec00bc [ios] Add debug descriptions to shapes and features 2017-08-18 12:26:25 -04:00
John Firebaugh
1188707dc3 [core] Use separate attribute component for line normals
Selective cherry pick of 822df3dd51
2017-08-18 11:43:24 +02:00
Fabian Guerra Soto
c7d7319c77 [ios, macos] Fix querying features returning nil when features available. (#9784)
* [ios, macos] Fix querying features returning nil when features available.

* [ios, macos] Copyedited changelogs

Also, macOS SDK v0.5.1 has yet to be released, because none of the changes that went into iOS SDK v3.6.1 were relevant to macOS.
2017-08-17 19:19:06 -04:00