How to make a marker adjust its size based on zoom

2019-08-13 00:13发布

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.

1条回答
成全新的幸福
2楼-- · 2019-08-13 00:21

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

查看更多
登录 后发表回答