Change marker size in Google Maps API v2

后端 未结 5 2126
故里飘歌
故里飘歌 2020-12-05 09:59

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).

5条回答
  •  情歌与酒
    2020-12-05 10:34

    It seems the only way to do it is by setting a custom Marker image.

    From API Reference: If you'd like to change more than just the color of the marker, you can set a custom marker image, often called an icon. Custom icons are always set as a BitmapDescriptor, and defined using one of four methods in the BitmapDescriptorFactory class.

提交回复
热议问题