I need to display around 30 markers in a somewhat small area.
Is there a way to resize Google Maps API V2 markers when the user changes the zoom?
Or should I just use a smaller image?
Thanks in advance!
I need to display around 30 markers in a somewhat small area.
Is there a way to resize Google Maps API V2 markers when the user changes the zoom?
Or should I just use a smaller image?
Thanks in advance!
There is no an
outOfTheBox
option to change the icons for the markers. you will have to listen to zoom changes:How to listen for user generated zoom in Google Maps?
and to remove the older markers and set new ones in their location with smaller icon images.
I use extends and fitBounds functions and get positions (LatLng) to set a zoom to map items
If you want to do something when zooming, you can create a custom Mapview which extends the original MapView, and just override dispatchDraw(Canvas canvas).
With adding a little listener, you can do whatever you want in the callback. Something like this;