Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

What is MultiPoint #3288

Closed
tmcw opened this issue Dec 14, 2015 · 9 comments
Closed

What is MultiPoint #3288

tmcw opened this issue Dec 14, 2015 · 9 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@tmcw
Copy link
Contributor

tmcw commented Dec 14, 2015

Something seems off about this

https://github.com/mapbox/mapbox-gl-native/blob/master/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MultiPoint.java

  • The docs refer to it as being a 'polyline'
  • There's a MultiPoint.java, but not a Point.java
  • Besides geometry, it also manages alpha, but just alpha.

What's up with this?

@1ec5 1ec5 added the Android Mapbox Maps SDK for Android label Dec 14, 2015
@tmcw
Copy link
Contributor Author

tmcw commented 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
Copy link
Member

tobrun commented Dec 18, 2015

@tmcw

The docs refer to it as being a 'polyline'

Can you show me what you which docs you are referring to?

it's a coordinate-container abstract class that's extended by Polygon and Polyline.

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

@tobrun
Copy link
Member

tobrun commented Jan 19, 2016

@tmcw
Current gameplan is to refactor annotations with the 4.0.0 release.

I'm looking into the possibility to:

  • remove Multipoint & Annotation base classes (not that logical)
  • remove Icon and Iconfactory (obsolete, not needed)
  • streamline with requirements coming from geo standards

@zugaldia
Copy link
Member

@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?

@zugaldia
Copy link
Member

Related: #3630

@tobrun tobrun added this to the android-v4.1.0 milestone Mar 6, 2016
@bleege bleege modified the milestone: android-v4.1.0 Mar 18, 2016
@1ec5
Copy link
Contributor

1ec5 commented Jun 1, 2016

The iOS and OS X SDKs have a similar class naming issue, captured in #5201.

@tobrun tobrun added the SEMVER-MAJOR Requires a major release according to Semantic Versioning rules label Jun 1, 2016
@tobrun
Copy link
Member

tobrun commented Jun 1, 2016

This change didn't land with 4.0.0, we need to look into with next semver-major release

@tobrun tobrun added this to the android-v4.2.0 milestone Aug 16, 2016
@tobrun tobrun removed the SEMVER-MAJOR Requires a major release according to Semantic Versioning rules label Aug 16, 2016
@ivovandongen ivovandongen removed this from the android-v4.2.0 milestone Aug 16, 2016
@ivovandongen
Copy link
Contributor

Removed the current milestone as this requires breaking changes to the api

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

6 participants