I'm trying to port my app to the brand new Google Maps API v2, but can't find how to change the size of the marker (some of my markers are smaller than default).
In v1, I used a Drawable
which I scaled with setBounds()
before adding it to the map.
But now, in v2, I can't use a Drawable
. I've to use MarkerOptions().icon()
, which takes just a BitmapDescriptor
(generated with a BitmapDescriptorFactory
).
Looking at the reference, there doesn't seem to be any support for setting or changing the BitmapDescriptor
size.
So, have I missed something, or is it just plain impossible to set the size for custom markers in this API version?
Bitmap
, or if I convert aDrawable
toBitmap
and scale it before adding it as aMarker
, I get a smaller marker with all the benefits ofDrawable
s. I will post an example when system allows me to do it (I'm quite new and I've to wait a few hours before answering myself :-) ). – Comparator