$(document).ready((function(){$(".maps-leaflet-container").css("height","450px");var a=L.map("maps-leaflet-basic").setView([42.35,-71.08],10);L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(a);var t=L.map("maps-leaflet-marker").setView([51.5,-.09],12);L.marker([51.5,-.09]).addTo(t),L.circle([51.508,-.11],{color:"red",fillColor:"#f03",fillOpacity:.5,radius:500}).addTo(t),L.polygon([[51.509,-.08],[51.503,-.06],[51.51,-.047]]).addTo(t);L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(t);var e=L.map("maps-leaflet-marker-dragable").setView([48.817152,2.455],12);L.marker([48.817152,2.455],{draggable:"true"}).addTo(e).bindPopup("Hello world!
I am a popup.").openPopup(),L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(e);var o=L.map("maps-leaflet-user-location").setView([42.35,-71.08],10);o.locate({setView:!0,maxZoom:16}),o.on("locationfound",(function(a){var t=a.accuracy;L.marker(a.latlng).addTo(o).bindPopup("You are within "+t+" meters from this point").openPopup(),L.circle(a.latlng,t).addTo(o)})),L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(o);var r=L.map("maps-leaflet-custom-icons").setView([51.5,-.09],10),p=L.icon({iconUrl:"../../../app-assets/images/map/leaflet/customIcons/map-marker-blue.png",iconSize:[52,52],iconAnchor:[22,94],popupAnchor:[-3,-76]}),i=L.icon({iconUrl:"../../../app-assets/images/map/leaflet/customIcons/map-marker-pink.png",iconSize:[52,52],iconAnchor:[22,94],popupAnchor:[-3,-76]});L.marker([51.5,-.09],{icon:i}).addTo(r),L.marker([51.4,-.51],{icon:p}).addTo(r),L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(r);var s=L.map("maps-leaflet-geojson").setView([44.2669,-72.576],3);L.geoJson(statesData).addTo(s);L.geoJson(statesData,{style:function(a){return{fillColor:(t=a.properties.density,t>1e3?"#800026":t>500?"#BD0026":t>200?"#E31A1C":t>100?"#FC4E2A":t>50?"#FD8D3C":t>20?"#FEB24C":t>10?"#FED976":"#FFEDA0"),weight:2,opacity:1,color:"white",dashArray:"3",fillOpacity:.7};var t}}).addTo(s),L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(s);var n=L.marker([39.61,-105.02]).bindPopup("This is Littleton, CO."),m=L.marker([39.74,-104.99]).bindPopup("This is Denver, CO."),l=L.marker([39.73,-104.8]).bindPopup("This is Aurora, CO."),d=L.marker([39.77,-105.23]).bindPopup("This is Golden, CO."),c=L.layerGroup([n,m,l,d]),g=L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}),h=L.tileLayer("http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg",{attribution:'Map data © OpenStreetMap',maxZoom:18}),w=L.map("maps-leaflet-groups-control",{center:[39.73,-104.99],zoom:10,layers:[g,c]}),y={Street:g,Watercolor:h},u={Cities:c};L.control.layers(y,u).addTo(w),L.tileLayer("https://c.tile.osm.org/{z}/{x}/{y}.png",{attribution:'Map data © OpenStreetMap',maxZoom:18}).addTo(w)}));