Skip to content

Instantly share code, notes, and snippets.

@sandeshdamkondwar
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandeshdamkondwar/c1d35e697a8acf9a3b3d to your computer and use it in GitHub Desktop.
Save sandeshdamkondwar/c1d35e697a8acf9a3b3d to your computer and use it in GitHub Desktop.
Creating custom icon for markers In Google Maps.
$("#map_extended").gMap({
controls: false,
scrollwheel: true,
maptype: 'TERRAIN',
markers: [
{
latitude: 47.670553,
longitude: 9.588479,
icon: {
image: "images/gmap_pin_orange.png",
iconsize: [26, 46],
iconanchor: [12,46]
}
},
{
latitude: 47.65197522925437,
longitude: 9.47845458984375
},
{
latitude: 47.594996,
longitude: 9.600708,
icon: {
image: "images/gmap_pin_grey.png",
iconsize: [26, 46],
iconanchor: [12,46]
}
}
],
icon: {
image: "images/gmap_pin.png",
iconsize: [26, 46],
iconanchor: [12, 46]
},
latitude: 47.58969,
longitude: 9.473413,
zoom: 10
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment