Skip to content

Commit

Permalink
cleaned up location.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Allexio committed Mar 26, 2021
1 parent b0bb22a commit 0e419ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions report_template/assets/scripts/location.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var mymap = L.map('mapid').setView([51.505, -0.09], 13);
var mymap = L.map('mapid').setView([51.505, -0.09], 2);
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
Expand All @@ -7,6 +7,4 @@ L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_toke
zoomOffset: -1,
accessToken: 'pk.eyJ1IjoiYWxsZXhpbyIsImEiOiJja21xMGcwbHYxNmV3Mm5wZWd2NnQ2eHhmIn0.kTfXbeTPkVVzpmgFVGX2qQ'
}).addTo(mymap);
L.marker([51.5, -0.09]).addTo(mymap).bindPopup("<b>Hello world!</b><br>I am a popup.");
L.marker([51.5, -0.08]).addTo(mymap);
{location_pings}

0 comments on commit 0e419ea

Please sign in to comment.