Google Maps Api v3:根据缩放级别不同的标记和折线尺寸
是否可以根据缩放级别显示不同的图像标记?
如果缩放级别较低,我想显示较小的标记。
我还想知道是否可以根据缩放级别更改折线的粗细。
我想这一切都取决于为缩放事件设置侦听器的可能性。
Is it possible to show a different image marker depending on the zoom level?
I would like to show smaller markers if the zoom level is lower.
I would also like to know if it's possible to change the thickness of the polylines depending on the zoom level.
I guess it all depends on the possibility to set a listener for the zoom event.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自文档:
zoom_changed :当地图缩放属性更改时会触发此事件。
From the docs:
zoom_changed : This event is fired when the map zoom property changes.
是的,这是可能的。通过侦听 Zoom_changed 事件,您可以仔细重置覆盖选项(图标、颜色...)。
Yes, it is possible. by listening to the zoom_changed event you can then carefully reset the overlay options (icon, color...).