Commit Graph

10738 Commits

Author SHA1 Message Date
Fabian Guerra Soto
afd4df9dbc [ios] adapt Mapbox Streets–sourced layers for user preferred language (#9582)
* [ios] Update label localization

* [ios, macos] Move MGLVectorSource+MBXAdditions.h to darwin.

* [ios, macos] Adapt Mapbox Streets to the user preferred language.

* [ios, macos] Clarify style localization documentation.

* [ios, macos] Update localization examples

* [ios, macos] Add style language reset to original.

* [ios, macos] Update changelogs.

* [ios, macos] Rename Vector Source Additions to MGL standard.

* [ios, macos] Add suport for stop localization.
2017-08-01 16:14:41 -04:00
Tobrun Van Nuland
a523b710ac [android] - update changelog for release v5.1.2 2017-08-01 22:00:46 +02:00
Tobrun
f8c418e2b1 [android] - bump MAS dependency (#9671) 2017-08-01 22:00:46 +02:00
Tobrun
f5b48a5d06 [android] - remove preview image integration (#9657) 2017-08-01 22:00:46 +02:00
Tobrun
e4a61426bf [android] - try/catch initalisation of Telemetry (#9658) 2017-08-01 22:00:46 +02:00
Tobrun
21bbf5a9e0 [android] - fix OnCameraMoveStartedListener typo (#9664) 2017-08-01 22:00:46 +02:00
Fabian Guerra
9a9c433085 [ios] Bump podspec to 3.6.1 2017-07-28 11:31:37 -07:00
Fabian Guerra Soto
b0bae6d1dd [ios] tilt gesture type fix (#9642)
* [ios] Change function:angleBetweenPoints return type

* [ios] Update changelog
2017-07-28 10:22:16 -07:00
Pablo Guardiola
caba393c0e [android] fix compass direction (Transform::getCameraOptions returns counterclockwise angle after transform.invalidateCameraPosition() which needs to be transformed to a clockwise bearing) (#9632) 2017-07-28 12:06:53 +02:00
Tobrun Van Nuland
9b770f382e [android] - build snapshots from release branch for v5.1.2 2017-07-28 12:06:53 +02:00
Tobrun Van Nuland
009da507fa [android] - don't query for shape annotations if none were added 2017-07-28 12:06:53 +02:00
Pablo Guardiola
635a3f21a0 [android] fix added to map checks because LongSparseArray#indexOfKey could return a negative number when the specified key is not mapped (#9602) 2017-07-28 12:06:53 +02:00
Tobrun Van Nuland
beaee9349f [android] - validate Marker before opening InfoWindow 2017-07-28 12:06:53 +02:00
Tobrun Van Nuland
0eee31e212 [android] - harden click handling of shape annotations 2017-07-28 12:06:53 +02:00
Pablo Guardiola
5e6ca3ada2 [android] fix geojson source proguard issue (#9569) (#9577) 2017-07-28 12:06:53 +02:00
Fabian Guerra Soto
6d629597d7 [ios] Make tilt gesture recognizer recognizable only with two horizontal fingers (#9571)
* [ios] Make tilt gesture recognizer recognizable only with two horizontal fingers

* [ios] Make tilt gesture recognizer tolerance degree less restrictive
2017-07-27 15:16:39 -07:00
danielamitaysc
0cdef85798 [ios] Proper limiting behavior when trying to zoom out fully
- Bail from quick zoom if new zoom is same as old zoom
- Allow pinch gesture at minZoom to still move the map
2017-07-27 17:34:09 -04:00
Antonio Zugaldia
fa0b307680 [android] Disable program caching on Adreno 3xx, 4xx, and 5xx GPUs due to known bugs (#9625) 2017-07-27 09:20:40 -04:00
Jason Wray
82c2d4b3ca [build] Include bcsymbolmap files in iOS dynamic framework package 2017-07-26 15:49:23 -04:00
Jason Wray
612a1e8377 [build] Remove unused iOS 'self contained' static framework packaging
This was a faux framework once required by Fabric.
2017-07-25 14:31:40 -04:00
Jason Wray
dcd9a38388 [ios] Don't force the attribution button tint color to update 2017-07-24 19:24:24 -04:00
Tobrun Van Nuland
7aad3613c3 update release config 2017-07-21 15:04:36 +02:00
John Firebaugh
ea337866e9 [core] Work around Adreno 2xx GPU bugs (#9573) 2017-07-21 15:04:36 +02:00
Tobrun Van Nuland
b34a5ab276 [android] - update change log, fix typo public xml 2017-07-21 15:04:36 +02:00
Tobrun
820c04efbf [android] - increase touch target to match largest Marker icon (#9565) 2017-07-21 15:04:36 +02:00
Tobrun
a39b4cfb00 [android] - manage InfoWindow selection in AnnotationManager (#9567) 2017-07-21 15:04:36 +02:00
Tobrun Van Nuland
108cbc7ba5 [android] - update changelog for 5.1.1 2017-07-21 15:04:36 +02:00
Tobrun
d7401f9e21 [android] - add OnPolygonClickListener and OnPolylineClickListener (#9443) 2017-07-21 15:04:36 +02:00
Tobrun
9c73d3458d Hit test Marker and MarkerViews (#9424)
* [android] - hit test Marker and MarkerViews

* fixup
2017-07-21 15:04:36 +02:00
Tobrun
655e232695 [android] - fine tune fling gesture (#9532) 2017-07-21 15:04:36 +02:00
Tobrun
23210cb15c [android] - bump OkHttp dependency to avoid null pointer exceptions on Android 7.0 (#9522) 2017-07-21 15:04:36 +02:00
Pablo Guardiola
0ce62a20c4 [android] Fix my location drawable getting tinted (#9410)
* fix my location drawable tinted when setting mapbox_myLocationTintColor in xml issue (linking my location foreground drawables with my location foreground tint color and adding the possibility of setting an undefined my location foreground tint color)

* link my location background drawable with my location background tint color and add the possibility of setting an undefined my location background tint color
2017-07-21 15:04:36 +02:00
Łukasz Paczos
79f0cc3d81 [android] - map's visible region fix #9427 (#9428) 2017-07-21 15:04:36 +02:00
Tobrun
af76efac22 [android] - validate if platform implementation doesn't return a null motion event (#9434) 2017-07-21 15:04:36 +02:00
Minh Nguyễn
9f2990d167 [ios] Added Hungarian settings bundle 2017-07-19 18:11:30 -07:00
Minh Nguyễn
f94d81c305 [android, ios, macos] Updated French localization
Updated French localization on iOS and macOS and added French localization on Android.
2017-07-19 18:11:30 -07:00
John Firebaugh
4416441663 [core] Revert conditional attribute binding
Reverts eed89fcf9d, which causes issues on certain Android devices. We don't actually need this change on this branch, I brought it over only to make the subsequent commits cleanly cherry-pickable.
2017-07-19 10:44:00 -07:00
Ivo van Dongen
e7f45e0b19 [android] remove manual ref counting on activation/deactivation 2017-07-19 17:34:07 +02:00
Ivo van Dongen
733661948c [core] BackendScope prevent double (de-)activation
- Guards against duplicate activations by checking wether the backend of the prior scope is the same as the current ones
- Makes sure that only the most outer backend scope deactivates by tracking activation state
2017-07-19 17:34:07 +02:00
John Firebaugh
2d147470a5 [android] Force previously cached program binaries to be regenerated 2017-07-17 09:19:02 -07:00
John Firebaugh
550da70cf7 [core] Pass correct sources to programIdentifier 2017-07-17 09:19:02 -07:00
John Firebaugh
902d9442da [core] No need for optional in map of VertexArrays 2017-07-17 09:19:02 -07:00
John Firebaugh
cf83f117f0 [core] Reduce memory requirements of VertexArrays 2017-07-17 09:19:02 -07:00
John Firebaugh
de91e68090 [core] Per-segment-per-layer vertex arrays
Reduces rebinding, matches gl-js, and works around the buggy VAO implementation on PowerVR SGX544 GPUs.
2017-07-17 09:19:02 -07:00
John Firebaugh
d7bdc7a60d [core] Rework attribute binding (again)
These changes are necessary for programs whose set of active attributes is not fixed at compile time by a template parameter pack, but rather varies based on the generated shader text at runtime. In such cases, the attribute location of a given named attribute may vary between instances of the same Program.

Previously, attribute bindings were implicitly associated with a location based on template parameter order, and -1 was used to indicate an inactive attribute. This left us unable to disable the appropriate attribute when it went from active to inactive. Now, the state tracker for bindings explicitly associates locations and state, and an empty optional is used to indicate an inactive attribute.

In addition, a gl::VertexArray class is now exposed, allowing more flexibility in the relationship between Programs, Segments, and attribute bindings. In this commit, that relationship does not change, but the subsequent commit adjusts it to match gl-js, reduce rebinds, and work around buggy VAO implementations.

VertexArray uses a pimpl idiom in order to support implementations that lack the VAO extension. In that case, all VertexArrays share global binding state, reflecting the platform reality in the absence of VAOs, while still providing a uniform API.
2017-07-17 09:19:02 -07:00
John Firebaugh
fbd4376899 [core] Inline getActiveAttributes details 2017-07-17 09:19:02 -07:00
John Firebaugh
f9fe0de806 [core] Include what you use 2017-07-17 09:19:02 -07:00
Lauren Budorick
eed89fcf9d [core] Bind only active attributes in order to avoid exceeding attribute limits (#9373)
Introducing two new attributes to enable property functions for line-width (#9250) pushed the attribute count over GL_MAX_VERTEX_ATTRIBS on some devices. Now we selectively bind only attributes that are used, making it unlikely to surpass GL_MAX_VERTEX_ATTRIBS.
2017-07-17 09:19:02 -07:00
Konstantin Käfer
e8272ebdbb [core] rename a_gap_width => a_gapwidth, u_gap_width => u_gapwidth to reflect naming in the shader
not sure how this ever worked
2017-07-17 09:19:02 -07:00
John Firebaugh
874244a656 [core] Eliminate constant attribute bindings
Rather than binding constant attributes that will never be used, just disable the attribute.
2017-07-17 09:19:02 -07:00