You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
As part of #4444 wrapping of LatLng at the JNI level was introduced to help solve issue with the International Date Line / antimeridian. After some more internal discussion with @tobrun@zugaldia and based on feedback from @1ec5 and @jfirebaugh it makes the most sense to introduce a LatLng.wrap() method instead of having to remember to call wrap() on every JNI method. This keeps the Java API and the Core GL API in sync. It also won't negatively impact apps migrating from Google Maps to Mapbox as the Google Map LatLng object is already wrapped.
I added a LatLng.wrap() method (along with Unit test! 😄 ) for general purpose use, but was able to minimize use of wrapping to Telemetry processing of Longitude data and only when the Min / Max Longitude bounds were crossed. Based on the logging below the Production Server was happy. 🎉
This gives us consistently unwrapped LatLng data across Core GL and Java, while also the ability for developers to wrap it if they need to in their apps. It also only impacts the Telemetry code which was the original source of trouble in #4444.
Rebased and merged on to release-ios-3.2.0-android-4.0.0. Will rely on merge into master after release is completed to get functionality integrated for future releases.
Activity
[android] #4475 - Introducing LatLng.wrap() and removing usage of wra…
[android] #4475 - Wrap all Longitude Telemetry data
[android] #4475 - Only wrap Telemetry longitude when it's outside bounds
[android] #4475 - Dialing down logs
bleege commentedon Mar 25, 2016
I added a
LatLng.wrap()method (along with Unit test! 😄 ) for general purpose use, but was able to minimize use of wrapping to Telemetry processing of Longitude data and only when the Min / Max Longitude bounds were crossed. Based on the logging below the Production Server was happy. 🎉This gives us consistently unwrapped LatLng data across Core GL and Java, while also the ability for developers to wrap it if they need to in their apps. It also only impacts the Telemetry code which was the original source of trouble in #4444.
[android] #4475 - Only wrapping when needed in LatLng.wrap(). Making …
[android] #4475 - Introducing LatLng.wrap() and removing usage of wra…
[android] #4475 - Wrap all Longitude Telemetry data
[android] #4475 - Only wrap Telemetry longitude when it's outside bounds
[android] #4475 - Dialing down logs
[android] #4475 - Only wrapping when needed in LatLng.wrap(). Making …
bleege commentedon Mar 25, 2016
Rebased and merged on to
release-ios-3.2.0-android-4.0.0. Will rely on merge intomasterafter release is completed to get functionality integrated for future releases.