Commit Graph

11622 Commits

Author SHA1 Message Date
Minh Nguyễn
5086c76997 [macos] Fixed logo view distortion on macOS High Sierra
Only the logo view’s baseline is aligned to the attribution view’s baseline; the X-height doesn’t need to be aligned. Previously, macOS ignored the X-height constraint inferred from the alignment rect, but now it honors it in addition to the baseline.
2017-11-30 17:11:34 -08:00
Fabian Guerra
06a0c03605 [ios, macos] Update changelogs. 2017-11-30 14:31:30 -05:00
Fabian Guerra
0c50da6913 [ios, macos] Fix an issue that triggers didSelectAnnotations for MGLAnnotationImage based annotations. 2017-11-30 14:31:30 -05:00
Fabian Guerra
787c782749 [ios] Fix minimumZoomLevel is not getting set. 2017-11-29 19:11:35 -05:00
Tobrun
8cebab09ba [android] - attribtuion anchor point calculation fix for short text with full logo on a MapSnapshot (#10558) 2017-11-29 12:21:54 +01:00
Pablo Guardiola
a1f207b090 [android] use location engine abstraction instead of location source (lost) in MyLocationView#init (#10579) 2017-11-29 08:31:46 +01:00
Bruno de Oliveira Abinader
3f962574ed [build] Added CircleCI macos-release-node{4,6} jobs 2017-11-28 12:16:05 -05:00
Antonio Zugaldia
85bc035be3 [android] Set a larger limit for the HTTP dispatcher (#10567) 2017-11-27 10:33:14 -05:00
Tobrun
7c8fbc8232 [android] - bump okhttp, remove workaround for Android Oreo (#10515) 2017-11-23 08:49:01 +01:00
Jesse Bounds
bcfe51c16c [ios] Add easy to use demo app for developers (#10524)
This updates the package script to include a pre-built iOS app in the published assets of the dynamic SDK. It symlinks the Mapbox.framework in that dynamic build to the demo app so the only real increase in size is the demo Xcode project itself.

The addtional step in the publish script checks that the Mapbox.framework that is symlinked in for building in the demo project can actually be built. If it cannot, then the step is skipped and the build will continue as it normally would. Since the demo app is currently not required for publishing it should not block publishing a build.
2017-11-22 10:28:43 -08:00
Bruno de Oliveira Abinader
8f4c07c5b8 [build] Added CircleCI macos-debug-qt5 job 2017-11-21 12:27:52 -05:00
Pablo Guardiola
9206e46154 release android v5.2.0 (#10487) 2017-11-20 20:10:04 +01:00
Jason Wray
34fe323924 [node, build] Don't fail on non-node tags 2017-11-20 12:31:59 -05:00
Jason Wray
a8ad619104 [build] Set clang-tidy timeout to 20 minutes
Default is 10 minutes, but suddenly we're exceeding that.
2017-11-20 11:41:51 -05:00
Victor Akap Oben
1d78c04484 Update comment from onDestroy to onDestroyView (#10501)
Updated comment to reflect that MapView's lifecycle callback in a fragment should be called from onDestroyView rather than on onDestroy. This is consistent with that MapFragment is doing.
2017-11-20 16:00:05 +01:00
Fabian Guerra
131167e1d3 [ios] Update changelog and bump podspec to 3.7.0 2017-11-17 17:28:14 -05:00
Fabian Guerra
5eb050dc35 [ios, macos] Update the attribution format for small snapshots. 2017-11-17 16:40:12 -05:00
Pablo Guardiola
84fbb7c576 release v5.2.0-beta.5 (#10464) 2017-11-17 16:39:36 +01:00
Jason Wray
f6c9dd6b25 [ios] Update puck arrow stroke color when tint changes
🤤
2017-11-16 17:15:59 -05:00
Pablo Guardiola
30e59ce738 Monkey crashes (#10440) (#10472)
* [android] - avoid null map from trackballevent

* [android] - fixup animated marker test activity from monkey runs

* [android] - harden NativeMapView OnMapChangeListener

* [android] - harden against destroyed wrapper activity while moving touch pointers

* [android] - harden bulk marker activity for monkey runner

* [android] - harden scale end gesture event for null velocity tracker

* [android] - invalid mapboxMap invocation

* [android] - reset test setup
2017-11-16 16:06:22 +01:00
Minh Nguyễn
1049c01225 Deploy macosapp as part of releases (#10191)
* [macos] Deploy macosapp as part of releases

Added steps to the packaging script to archive and export macosapp. Upload the exported, compressed application bundle to the GitHub release when deploying a release.

* [macos] Explicitly named function argument

* [macos] Consolidated xcodebuild invocations
2017-11-14 19:14:12 -08:00
Fabian Guerra
739f88e61f [ios] Update podspecs to v3.7.0-rc.1 2017-11-14 16:04:54 -05:00
Minh Nguyễn
43c6f6b3b0 [ios] Updated Spanish, Vietnamese translations 2017-11-14 11:53:49 -08:00
Fabian Guerra Soto
addefe539a [ios] Fix toCamera.centerCoordinate in shouldChangeFromCamera (#10433)
* [ios] Fix toCamera.centerCoordinate in shouldChangeFromCamera has same center as oldCamera.

* [ios] Update changelog.

* [ios] Remove unnecessary variables.

* [ios] Clarify changelog doc.
2017-11-14 13:37:45 -05:00
Tobrun
f0f113bafc MapSnapshot attribution (#10362)
* [android] - add attribution

* [android] - optimise attribution sources

* [android] - rework datamodel to attribution class

* [android] - refactor Attribution, add tests

* [android] - add getter for attribution string

* [android] - rework attribution to include small logo, add layout placement

* [android] - finalise integration and layout logic
2017-11-14 11:13:34 +01:00
Tobrun
a9bd09c015 Downgrade min sdk to 14 (#10355)
* [android] - downgrade minimum sdk version to 14

* [android] bump MAS version to the one which includes min sdk version 14

* bump lost version to 3.0.4
2017-11-13 13:20:41 +01:00
Jordan Kiley
a0cfac4c1a Update MGLMapSnapshotter docs (#10438) 2017-11-10 10:02:45 -08:00
Tobrun
199c0cac25 [android] - harden deselection mechanism for markers (#10403) 2017-11-10 16:34:09 +01:00
Pablo Guardiola
b5140cb342 [android] Cherry picks to agua (#10442)
* [android] fix map snapshotter marker example

The reference to the MapSnapshotter needs to be held for the duration of the snapshot, otherwise it might be GC'd

* [android] MapRendererRunnable - avoid weak reference table overflow

Apparently on some devices the weak reference table is limited (numbers around 52000). Even though we don't use that many weak references, when GC is not called for a while they can stack up and a crash will occur before the GC has had the time to clear the references. The C++ peer now holds on to a global ref (strong) which can be obtained to queue the java peer and then release automatically so that the GC can take over after the runnable has been executed.
2017-11-10 12:56:06 +01:00
Jordan Kiley
91dabd01df [ios] Silence smart invert warnings (#10425) 2017-11-09 13:09:16 -08:00
Nadia Barbosa
bfdd0c5031 [ios] Doc fixes for "Adding Points to a Map" guide 2017-11-09 13:11:09 -05:00
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