(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{5:function(e,t,o){e.exports=o(6)},6:function(e,t,o){"use strict";o.r(t);var n=o(3),a=(o(12),o(2)),s=(o(13),o(14),document.createElement("div"));s.style.height="600px",s.setAttribute("id","map"),document.body.appendChild(s);var r=new a.LatLng(37.09,-95.71),i=!0,l=a.map("map").setView(r,4);a.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18}).addTo(l);var p=a.AwesomeMarkers.icon({icon:"map",markerColor:"red"});l.on("click",(function(e){m.unbindPopup(),m.setLatLng(e.latlng),n.a.setComponentValue(e.latlng),i&&(m.addTo(l),i=!1)})),a.DomUtil.addClass(l.getContainer(),"crosshair-cursor-enabled");var m=a.marker(r).setIcon(p);m.on("click",(function(e){console.log("markerClick");var t=e.latlng.toBounds(25e3);l.getBoundsZoom(t)>l.getZoom()?(console.log("  fitbounds"),l.flyToBounds([t.getNorthWest(),t.getSouthEast()])):(console.log("  panpoint"),l.panTo(e.latlng));m.openPopup()})),n.a.events.addEventListener(n.a.RENDER_EVENT,(function(e){n.a.setFrameHeight()})),n.a.setComponentReady(),n.a.setFrameHeight()}},[[5,1,2]]]);
//# sourceMappingURL=main.ede1dee9.chunk.js.map