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.
There are a number of public functions and constructors (particularly in the annotations API) that should be made package private.
For example all the set... functions in Marker etc since these objects should currently be immutable. Calling these functions after addMarker etc will not update the marker on the map. Even worse setId will completely break things.
To make these package private we need everything in one package (annotations and view). The other packages I think we can leave alone at this stage.
I am proposing merging the annotations and views packages, perhaps just putting them under the base package. Google Maps API seems to happily keep everything in one package. Hmm they don't...
@tobrun@bleege@zugaldia Are there Java patterns for exposing private implementation detail to other packages, but not to the public? Google Maps API must be doing this, along with the Android framework.
Hmm a solution might be to create a public interface in a "internal" package, which exposes the implementation methods. Create a private inner class implementation of this in MapView, then pass this in the constructor or some such.
Activity
tobrun commentedon Oct 6, 2015
Linking #2480 because I feel that this should be tackled simultaneously
ljbade commentedon Oct 11, 2015
I am proposing merging the annotations and views packages, perhaps just putting them under the base package.
Google Maps API seems to happily keep everything in one package.Hmm they don't...ljbade commentedon Oct 11, 2015
@tobrun @bleege @zugaldia Are there Java patterns for exposing private implementation detail to other packages, but not to the public? Google Maps API must be doing this, along with the Android framework.
ljbade commentedon Oct 11, 2015
Hmm a solution might be to create a public interface in a "internal" package, which exposes the implementation methods. Create a private inner class implementation of this in MapView, then pass this in the constructor or some such.
tobrun commentedon Jan 11, 2016
This is the current situation, this might change with #3485 but will close this for now.