Google Maps API 3 - Custom marker color for default (dot) marker - Stack Overflow

Google Maps API 3 - Custom marker color for default (dot) marker - Stack Overflow

瀏覽:1179
日期:2025-06-11
If you use Google Maps API v3 you can use setIcon e.g. marker.setIcon('http://maps.google.com/mapfiles/ms/icons/green-dot.png') Or as part of marker init: marker = new google.maps.Marker({ icon: 'http://...' }); Other colours: http://maps.google.com/mapfi...看更多