Last active
March 18, 2016 17:20
-
-
Save nighto/7ecada518a32febef957 to your computer and use it in GitHub Desktop.
Leaflet - third step
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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