Skip to content

Commit

Permalink
Prettify map view
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-kroko authored Dec 7, 2020
1 parent 91e7d1e commit 76413c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leaflet_map.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Initialize Leaflet map in HTML element "map" (https://leafletjs.com/)
var map = L.map('map').setView([20, -20], 2);
var map = L.map('map').setView([0, 0], 2);

// Add satellite images as map layer
var satelliteLayer = 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/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
minZoom: 1,
id: 'mapbox/satellite-streets-v11',
tileSize: 512,
zoomOffset: -1,
Expand Down

0 comments on commit 76413c9

Please sign in to comment.