window.mapLoadedCallback = function() {
var latLngs = [
[54.6704618163, 25.2765063184],
[54.6702074412, 25.2764204877],
[54.6699716774, 25.2777669567],
[54.6705827991, 25.2780673641],
[54.6708495803, 25.2769515651],
[54.6704307951, 25.2767691749],
];
var map = L.map('citynow_map').setView([54.6704173516, 25.2770803111], 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();
}