Skip to content

Instantly share code, notes, and snippets.

@nighto
Last active March 18, 2016 17:20
Show Gist options
  • Save nighto/7ecada518a32febef957 to your computer and use it in GitHub Desktop.
Save nighto/7ecada518a32febef957 to your computer and use it in GitHub Desktop.
Leaflet - third step
var muxiCoordinates = [-22.903719, -43.1760605];
var muxiMarkerMessage = "A Muxi fica aqui.<br>Olá mundo!";
var muxiIconProperties = {
iconUrl: "http://muxi.com.br/app/webroot/img/maps-marker.png"
, iconSize: [44, 59]
, iconAnchor: [22, 59]
, popupAnchor: [0, -50]
};
var muxiIcon = L.icon(muxiIconProperties);
L.marker(muxiCoordinates, {icon: muxiIcon})
.addTo(map)
.bindPopup(muxiMarkerMessage)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment