From f75e061b26e026bbd31491c6461aa147ae7a643d Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 3 Apr 2019 22:02:41 +0200 Subject: [PATCH] Add Chaospott --- assets/js/openstreetmap.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/openstreetmap.js b/assets/js/openstreetmap.js index 3a3db45..b822a9b 100644 --- a/assets/js/openstreetmap.js +++ b/assets/js/openstreetmap.js @@ -1,4 +1,4 @@ - var mymap = L.map('mapid').setView([47, 9.2], 7); + var mymap = L.map('mapid').setView([47, 9.2], 6); var greenIcon = L.icon({ iconUrl: '/images/map.png', @@ -12,12 +12,15 @@ var greenIcon = L.icon({ }); - L.tileLayer('https://tiles.ffbsee.de:9090/{z}/{x}/{y}.png', { +// L.tileLayer('https://tiles.ffbsee.de:9090/{z}/{x}/{y}.png', { + L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', { maxZoom: 19, attribution: 'Map data © OpenStreetMap contributors, ' + 'CC-BY-SA ' }).addTo(mymap); + L.marker([51.4385, 7.0250], {icon: greenIcon}).addTo(mymap) + .bindPopup("").openPopup(); L.marker([47.71234, 9.39956], {icon: greenIcon}).addTo(mymap) .bindPopup("").openPopup(); @@ -29,6 +32,7 @@ var greenIcon = L.icon({ .bindPopup("").openPopup(); + L.polygon([ [49.87814327607132, 8.653730368550693], [49.8780226890993, 8.653828203678133],