window.mapLoadedCallback = function() {
var latLngs = [
[54.8745903581, 23.9108864341],
[54.8742246045, 23.9106101666],
[54.8741659601, 23.9108542476],
[54.8739946564, 23.9107147728],
[54.8739792236, 23.9107979212],
[54.874036325, 23.910846201],
[54.8740162623, 23.9109427605],
[54.8739915699, 23.9109427605],
[54.8738326117, 23.9116508637],
[54.8743743015, 23.9119968687],
];
var map = L.map('citynow_map').setView([54.8741205873, 23.9110242997], 13);
L.tileLayer('https://api.maptiler.com/maps/pastel/{z}/{x}/{y}.png?key=YwXY4ZdPMyu7tgIGUuPk',{
tileSize: 512,
zoomOffset: -1,
minZoom: 10,
zoom: 15,
attribution: '© MapTiler © OpenStreetMap contributors',
crossOrigin: true
}).addTo(map);
var polygon = L.polygon(latLngs, {color: '#6200ff'});
polygon.addTo(map);
map.setZoom(15);
}
window.loadCityNowMap = function(){
var script_tag = document.createElement('script');
script_tag.setAttribute("type","text/javascript");
script_tag.setAttribute("src","https://www.citynow.org/static/leaflet.js");
script_tag.onload = function() {
mapLoadedCallback();
};
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
}
window.onload = function(){
loadCityNowMap();
}