Skip to content

Commit

Permalink
Finally, new maps from mapbox studio has been
Browse files Browse the repository at this point in the history
added
  • Loading branch information
frasanz committed Oct 16, 2024
1 parent a34c703 commit 2e08292
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,12 @@ $(document).ready(function () {
attribution: '© OpenStreetMap contributors'
});

const mapBox = L.tileLayer('https://api.mapbox.com/styles/v1/frasanz/cm2cdt26700t301pghdcsc7b0/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoiZnJhc2FueiIsImEiOiJjbTF4bHE2MHIwdzRmMmpxd3g1cGZkbjR3In0.6B49yUgKNVhYOCy7ibw5ww', {
maxZoom: 18,
tileSize: 256,
attribution: '&copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
});

const googleSat = L.tileLayer('http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', {
maxZoom: 18,
subdomains: ['mt0', 'mt1', 'mt2', 'mt3'],
Expand All @@ -610,6 +616,7 @@ $(document).ready(function () {
// Add layer control to switch between layers
baseLayers = {
"OpenStreetMap": osmLayer,
"MapBox": mapBox,
"Satellite": googleSat
};
var overlaymaps = { "VIIRS": viirs }
Expand Down

0 comments on commit 2e08292

Please sign in to comment.