ulica JASTRZĘBIA
POKAŻ HYDRANTY /
UKRYJ HYDRANTY / WRÓĆ DO POPRZEDNIEJ
POKAŻ HYDRANTY /
UKRYJ HYDRANTY / WRÓĆ DO POPRZEDNIEJ
var map = L.map('map').setView([52.68986, 18.3468], 16);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6IjZjNmRjNzk3ZmE2MTcwOTEwMGY0MzU3YjUzOWFmNWZhIn0.Y8bhBaUMqFiPrDRW9hieoQ',
{ attribution: 'Map data ©
OpenStreetMap contributors, ' +
'
CC-BY-SA, ' +
'Imagery ©
Mapbox',
maxZoom: 18,
id: 'mapbox.streets'
}).addTo(map);
L.marker([52.67839, 18.31445]).addTo(map) .bindPopup("
Hello world!Tu jest nasza strażnica!");
L.marker([52.68937, 18.34176], {icon: hydrantIcon_n}).addTo(map).bindPopup("hydrant nadziemny.");
L.marker([52.69132, 18.34983], {icon: hydrantIcon_n}).addTo(map).bindPopup("hydrant nadziemny.");
L.polygon([
[52.68917, 18.34161],
[52.69131, 18.35044],
[52.68917, 18.34161]
]).addTo(map).bindPopup("ul.Jastrzębia");
var popup = L.popup();
function onMapClick(e) {
popup
.setLatLng(e.latlng)
.setContent("You clicked the map at " + e.latlng.toString())
.openOn(map);
}
map.on('click', onMapClick);