index.js
/**
 * Generic addMarker function called for geocoded and hard-coded locations.
 */
Generic addMarker function called for geocoded and hard-coded locations.
Generic addMarker function called for geocoded and hard - coded locations .
function addMarker(latlng, metadata) {
    var marker = L.marker(latlng).addTo(map);
    marker.bindPopup("<h3>"+metadata.Name+"</h3><p>"+metadata.Address+"</p><p>"+metadata.Notes+"</p>");
    var icon = L.AwesomeMarkers.icon({
        icon: getIcon(metadata.Category),
        iconColor: "white",
        markerColor: getColor(metadata.Category),
        prefix: "fa",
    });
    marker.setIcon(icon);
}
function addMarker ( latlng , metadata ) { var marker = L . marker ( latlng ) . addTo ( map ) ; marker . bindPopup ( "<h3>" + metadata . Name + "</h3><p>" + metadata . Address + "</p><p>" + metadata . Notes + "</p>" ) ; var icon = L . AwesomeMarkers . icon ( { icon : getIcon ( metadata . Category ) , iconColor : "white" , markerColor : getColor ( metadata . Category ) , prefix : "fa" , } ) ; marker . setIcon ( icon ) ; }
Generic addMarker function called for geocoded and hard-coded locations.
Generic addMarker function called for geocoded and hard - coded locations .
// AwesomeMarkers is used to create fancier icons