groups

Link to this snippet:


Download to Code Collector

language: Other
licence: Other

JS/GOOGLE MAPS API : une icone personnalisé sur les placemarks

options: send to code collector • view all pierre alexandre payet's snippets
// Define a custom icon.
var icon = ge.createIcon('');
icon.setHref('http://maps.google.com/mapfiles/kml/paddle/red-circle.png');
var style = ge.createStyle(''); //create a new style
style.getIconStyle().setIcon(icon); //apply the icon to the style
placemark.setStyleSelector(style); //apply the style to the placemark