Commit Graph

11591 Commits

Author SHA1 Message Date
Fabian Guerra
a936fd6f8a [ios, macos] Cleanup duplicated snapshotter frame code. 2017-11-08 16:40:50 -05:00
Pablo Guardiola
46fcc83097 [android] release 5.2.0-beta.4 (#10384) 2017-11-08 01:58:51 -08:00
Tobrun
cc67335499 [android] - add config file for excluding generated tests, refactor generation script output 2017-11-08 09:58:31 +01:00
Fabian Guerra
3efb740b42 [ios] Bump podspec to beta.4 2017-11-07 18:41:47 -05:00
Fabian Guerra
93e363bd8c [ios, macos] Add attribution to snapshots. 2017-11-07 17:56:09 -05:00
tobrun
24de48b772 [android] - update android unit tests, update test make target to SDK 2017-11-06 18:53:50 +01:00
tobrun
4d486e10ce [android] - check for null value when calling mapboxMap.clear 2017-11-06 17:16:27 +01:00
Jordan Kiley
d29ebe3d3f [ios, macos] noted how to update shape source (#10383) 2017-11-03 18:29:03 -07:00
Pablo Guardiola
cdc5dde0ec [android] revert adding mapbox-android-core dependency (#10354) (#10380) 2017-11-03 15:39:53 -07:00
Minh Nguyễn
2955fb594c Make places and roads accessible to VoiceOver (#9950)
* [ios] Summarize places, roads after zooming with VoiceOver

After zooming, MGLMapView’s accessibility value now indicates the number of visible roads and lists out a few places visible in the current viewport, starting with the features at the highest z-index (not necessarily the largest or the closest to the center of the view). Avoid saying that no annotations are visible.

* [ios] Allow VoiceOver to navigate among place features

Split out a separate header for the various accessibility elements tied to MGLMapView. Wrap place features in accessibility elements and insert them into the narration order after the visible annotations but before the attribution button. Refactored MGLMapView’s accessibility code to rely on ranges to avoid off-by-one errors.

* [ios] Post layout change notification when fully rendered

Post a layout change notification when fully finishing a map render.

* [ios, macos] Moved MGLVectorSource+MGLAdditions to more specific group

* [ios] Localize accessibility feature names

* [ios] Find place feature accessibility elements by identifier

* [ios] Refactored accessibility traits

Also created a new MGLPlaceFeatureAccessibilityElement class.

* [ios] Sort accessibility elements by screen distance from center

Sort annotation accessibility elements by screen distance, not the hypotenuse of coordinates, which can yield incorrect results when the map is rotated or tilted or when the user is located at high latitudes. Sort place feature accessibility elements by screen distance as well.

* [ios] Create a place feature accessibility element, not an abstract feature accessibility element

* [ios] Only query for visible place features once per camera

Improved accessibility performance after changing the map camera. MGLMapView no longer queries the map for place features once per place feature.

* [ios] Made roads accessible

Wrap visible road features in accessibility elements described by the road name, route number, and general direction of travel.

* [ios] Cleaned up radian conversions

* [ios] Thickened road accessibility elements

* [ios] Made unioned roads accessible

* [ios] Consistently sort accessibility elements

Also fixed an issue causing road feature accessibility elements to get treated like place feature accessibility elements.

* [ios] Announce direction of divided roads

Announce the direction of a divided road based on the direction of its first polyline.

* [ios] Refined announced elevation units

* [ios] Romanize feature names

* [ios] Updated changelog

* [ios] Delay zoom announcement

A 100-millisecond delay is enough for the post-zooming announcement to reflect the new zoom level rather than the previous zoom level.

* [ios] Consolidated geometry functions

Adopted MGLGeometry_Private.h in the accessibility code, forcing a conversion to Objective-C++. Avoid inlining some of the more complex geometric functions.

* [ios] Fixed feature name romanization in accessibility labels

NSLocale.scriptCode is only set when the locale identifier explicitly specifies a script. Use NSOrthography to identify the dominant orthography regardless of locale.

Also added a unit test of feature accessibility element labels.

* [ios] Added tests for place, road accessibility values

* [ios] Announce one-way roads

A road feature’s accessibility value now indicates whether the road is a one-way road.
2017-11-03 12:17:45 -07:00
Ivo van Dongen
d1d0c20044 [android] TextureView - cleanup destruction code 2017-11-03 09:19:39 -07:00
Ivo van Dongen
8753edf08f [android] test app - texture view test activities 2017-11-03 09:19:39 -07:00
Ivo van Dongen
3b2bd7ce4f [android] bring back texture view 2017-11-03 09:19:39 -07:00
Ivo van Dongen
e9bb4d1582 [android] texture view map renderer 2017-11-03 09:19:39 -07:00
Ivo van Dongen
fd5f357d1d [android] move egl under renderer package 2017-11-03 09:19:39 -07:00
Ivo van Dongen
6adeee601e [android] encapsulate gl surfaceview rendering specifics in map renderer subclass
- preparation for re-introduction of texture view
2017-11-03 09:19:39 -07:00
Tobrun
d9fe241761 [android] - workaround Android O OkHttp bug. 2017-11-02 13:27:50 -07:00
Tobrun
5dbd94016b [android] - fix logo scale for MapSnapshot 2017-11-02 07:41:53 -07:00
Pablo Guardiola
29a94ae939 [android] make location provider optional (#9488) (#10354) 2017-11-01 18:25:52 -07:00
Osana Babayan
d0d401b007 [android] android.hardware.location.gps feature should not be required (#10347) 2017-11-01 17:10:49 -07:00
Tobrun
e6d50da2c5 [android] - check for possitive animation duration 2017-11-01 14:56:37 -07:00
Tobrun
a5ff277ed9 [android] - add logo resize to MapSnapshotter 2017-11-01 14:56:37 -07:00
Tobrun
cb7f6dfaec [android] - make snapshot logo optional 2017-11-01 14:56:37 -07:00
Tobrun
e5243b7691 [android] - ignore activity gen tests 2017-11-01 09:23:53 -04:00
Ivo van Dongen
74b51f90b2 [darwin] MGLMapSnapshot - add missing EXPORT 2017-11-01 09:23:53 -04:00
Fabian Guerra
026cb6f49b [ios, macos] Fix MGLMapSnapshotter documentation typo. 2017-11-01 09:23:53 -04:00
Ivo van Dongen
0c5e15e21e [android] map snapshotter - expose attributions 2017-11-01 09:23:53 -04:00
Ivo van Dongen
74662831f6 [darwin] map snapshotter - expose attributions 2017-11-01 09:23:53 -04:00
Ivo van Dongen
953ecae684 [core] map snapshotter - add attributions to snapshotter callback 2017-11-01 09:23:53 -04:00
Ivo van Dongen
de9098cf99 [darwin][ios][macos] map snapshotter - add MGLMapSnapshot wrapper 2017-11-01 09:23:53 -04:00
Ivo van Dongen
9c3e78a9b9 [android] map snapshotter - wrap snapshot in native peer for access to the pointFor functionality 2017-11-01 09:23:53 -04:00
Ivo van Dongen
b3834447ff [default] map snapshotter - add function to get screen coordinate from latlng for snapshot
- Wraps the TransformState for the snapshot so that the snapshotter itself is free to be re-used or destroyed
2017-11-01 09:23:53 -04:00
Ivo van Dongen
df7755fcd9 [default] headless frontend - allow access to the transform state 2017-11-01 09:23:53 -04:00
Ivo van Dongen
e9568ccda7 [darwin] map snapshotter - snapshotter mutability 2017-11-01 09:23:53 -04:00
Ivo van Dongen
fd3587608b [android] map snapshotter - add mutators 2017-11-01 09:23:53 -04:00
Ivo van Dongen
31873725d7 [core] map snapshotter - add mutators 2017-11-01 09:23:53 -04:00
Fabian Guerra Soto
63f7963a93 [ios, macos] Center shape annotation's callout when offscreen. (#10255)
* [ios, macos] Center annotation's anchor to tap point when coordinate center is offscreen.

* [ios, macos] Update changelogs.
2017-11-01 08:20:48 -04:00
Tobrun
03d3aee6fc [android] - rework ease interactions to take in account possitve duration requirement 2017-10-31 15:30:48 -07:00
Osana Babayan
9aa2c197ca [android] MapboxMap.animate() and Mapbox.easeCamera() should throw IllegalArgument (#10321)
if non-positive duration is passed in
2017-10-31 15:30:48 -07:00
Tobrun
0f1296c01c [android] - run all instrumenetation tests 2017-10-31 14:14:11 -07:00
Tobrun
f578b26282 [android] - add bulk addImages api on MapboxMap 2017-10-31 13:47:12 -07:00
Osana Babayan
ebe6a30821 [android] Make sure onFinish has new camera position after camera.move (#10324) 2017-10-31 09:23:02 -07:00
Ramin Mirsharifi
9b41791dec [android] - Add angular velocity effect on rotation gesture. 2017-10-30 16:25:37 -07:00
Ramin Mirsharifi
c351f65c09 [android] - Add touch velocity effects on scale gesture. Fine tune. 2017-10-30 16:25:37 -07:00
Ramin Mirsharifi
8c4e2f0886 [android] - Add touch velocity effects on scale gesture. 2017-10-30 16:25:37 -07:00
Tobrun
b8d5798bea [android] - avoid null pointer if map wasn't initalised when saving instance state 2017-10-30 13:00:19 -07:00
Tobrun
5893af7f24 [android] - move shape annotation click handling to core 2017-10-30 09:34:23 -07:00
Minh Nguyễn
72a6eb8b5c [android, ios, macos] Added Hungarian localization
Added a Hungarian localization to the Android SDK. Updated the iOS and macOS SDK Hungarian localization.
2017-10-27 22:23:02 -07:00
Minh Nguyễn
edf399f1b7 [android, ios, macos] Added Bulgarian localization 2017-10-27 22:23:02 -07:00
Minh Nguyễn
ec4e8899b7 [ios, macos] Updated Brazilian Portuguese localization 2017-10-27 22:23:02 -07:00