Jeongbebs
Jeongbebs

Reputation: 4120

How to make a marker adjust its size based on zoom level Google Maps v2

I'm trying to follow the behavior of Google Maps, wherein the markers of certain landmark appear small in a lower zoom level, but bigger on a higher level. I was already able to make a custom marker disappear by zoom level, now I want to make its size adjust relevant to the zoom level. Any help would be appreciated. Thanks. Android Newbie here.

Upvotes: 1

Views: 2209

Answers (1)

MaciejGórski
MaciejGórski

Reputation: 22232

In onCameraChange instead of calling setVisible, call setIcon with different BitmapDescriptor depending on zoom level.

Upvotes: 3

Related Questions