// Custom icons ################################################################################## // ############################################################################################### // https://github.com/pointhi/leaflet-color-markers // var myIcon = L.icon({ // iconUrl: '../../../img/icon/traffic_light.png', // iconSize: [50, 50], // iconAnchor: [22, 94], // popupAnchor: [-3, -76], // shadowSize: [68, 95], // shadowAnchor: [22, 94] // }); var greenIcon = new L.Icon({ iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png', shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png', iconSize: [25, 41], iconAnchor: [12, 41], popupAnchor: [1, -34], shadowSize: [41, 41] });