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.
Reading into this, yeah, it's a coordinate-container abstract class that's extended by Polygon and Polyline. That shouldn't be the case, it should be named something else and more obviously documented.
There's isn't necessarily a logic problem here, but the usage of MultiPoint really conflicts with its usage elsewhere, in the Simple Features Spec, GeoJSON, and other geo standards.
@tmcw After releasing the directions and geocoder libraries we've noticed that there's some work we need to do to streamline our geographic data structures. See for example the unnecessary conversion we need to do in this example from List<Waypoint> into LatLng[] (not to mention that Android has its own Location object).
I want to put some effort into fixing this and I'd love your feedback. What would be in your opinion the best approach here? Would be using the GeoJSON standard as our objects building block the way to go?
Activity
tmcw commentedon Dec 14, 2015
Reading into this, yeah, it's a coordinate-container abstract class that's extended by Polygon and Polyline. That shouldn't be the case, it should be named something else and more obviously documented.
Also maybe it should be protected?
tobrun commentedon Dec 18, 2015
@tmcw
Can you show me what you which docs you are referring to?
Where are you reading this?
this is currently not part of the javadoc (I created #3338 to improve this).
I must admit that I'm also not 💯 on current naming and inheritance.
cc @bleege @zugaldia
tmcw commentedon Dec 18, 2015
It's referred to as a polyline here: https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPoint.java#L28
It's extended at https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polyline.java and https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Polygon.java
There's isn't necessarily a logic problem here, but the usage of MultiPoint really conflicts with its usage elsewhere, in the Simple Features Spec, GeoJSON, and other geo standards.
tobrun commentedon Jan 19, 2016
@tmcw
Current gameplan is to refactor annotations with the
4.0.0release.I'm looking into the possibility to:
zugaldia commentedon Jan 25, 2016
@tmcw After releasing the directions and geocoder libraries we've noticed that there's some work we need to do to streamline our geographic data structures. See for example the unnecessary conversion we need to do in this example from
List<Waypoint>intoLatLng[](not to mention that Android has its ownLocationobject).I want to put some effort into fixing this and I'd love your feedback. What would be in your opinion the best approach here? Would be using the GeoJSON standard as our objects building block the way to go?
zugaldia commentedon Jan 25, 2016
Related: #3630
1ec5 commentedon Jun 1, 2016
The iOS and OS X SDKs have a similar class naming issue, captured in #5201.
tobrun commentedon Jun 1, 2016
This change didn't land with
4.0.0, we need to look into with next semver-major releaseivovandongen commentedon Aug 16, 2016
Removed the current milestone as this requires breaking changes to the api