map = {
const container = html`<div style="height:540px;">`;
yield container;
const map = L.map(container).setView([48.3794, 31.1656], 6);
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: "© <a href=https://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors"
}).addTo(map);
mapIncidents.forEach(function (d) {
var marker = L.marker([d.latitude, d.longitude], {
icon: L.icon({
iconUrl: "https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
}),
}).addTo(map);
marker.bindPopup(d.date);
})
}