Created
November 8, 2016 11:44
-
-
Save LouisaKB/0d3e13823d1e859b45a82eb209e62826 to your computer and use it in GitHub Desktop.
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
function drawMarker(color) { | |
return function (i) { | |
var icon = L.divIcon({ | |
className: "glyphicon glyphicon-map-marker map-marker " + color | |
}); | |
L.marker(i, {icon: icon}).addTo(markerLayer); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment