Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有带箭头和标记的折线。当缩放大于或等于 10 时,如何显示该线?
注册缩放侦听器,它根据缩放级别隐藏/显示折线:
google.maps.event.addListener(map, 'zoom_changed', function() { if (map.getZoom()>=10) polyline.setMap(map); else polyline.setMap(null); });