window.mapLoadedCallback = function() {
var latLngs = [
[54.6873278435, 25.284482942],
[54.6875355991, 25.2842066744],
[54.6875898634, 25.2843434671],
[54.6877681601, 25.2846304635],
[54.6879557583, 25.2849630574],
[54.6883500675, 25.2855285663],
[54.6881051067, 25.2860301394],
[54.6881485176, 25.2861052413],
[54.6881082075, 25.2861991186],
[54.6878989044, 25.285845067],
[54.6878616948, 25.2859013934],
[54.6878275861, 25.2858504314],
[54.6878415397, 25.2857699652],
[54.6876601425, 25.2855312485],
[54.6877981284, 25.2853005786],
[54.687773322, 25.2852683921],
];
var map = L.map('citynow_map').setView([54.6878469026, 25.2853722966], 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();
}