Skip to content

Commit

Permalink
Load ESRI World Imagery tiles over HTTPS
Browse files Browse the repository at this point in the history
Fixes a CSP error when attempting to load these map tiles in Firefox,
since the CSP dictates HTTPS
  • Loading branch information
jnm committed Jun 21, 2024
1 parent 2ee8da8 commit 9b792d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsapp/js/components/map.es6
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const baseLayers = {
'Map data: &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)',
}),
'ESRI World Imagery': L.tileLayer(
'http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
{
attribution:
'Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community',
Expand Down

0 comments on commit 9b792d0

Please sign in to comment.