Skip to content

Commit

Permalink
Add Esri imagery option and fix attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Feb 19, 2025
1 parent 6ba857e commit e6e38c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/atlases/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<script>
$(function(){
var providerTemplate = "<%= FieldPapers::ATLAS_INDEX_HEADER_TILELAYER.html_safe %>";
var providerAttribution = '<a href="https://openstreetmap.org/">© OpenStreetMap</a>';
var providerAttribution = '<a href="https://openstreetmap.org/copyright" target="_blank">© OpenStreetMap</a>';
FP.map.boundingBoxes('map',{
provider: providerTemplate,
providerSettings: [{options:{
Expand Down
13 changes: 11 additions & 2 deletions config/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"label": "OpenStreetMap",
"template": "https://{S}.tile.openstreetmap.org/{Z}/{X}/{Y}.png",
"options": {
"attribution": ""
"attribution": "<a href='https://openstreetmap.org/copyright' target='_blank'>© OpenStreetMap</a>"
},
"minzoom": 0,
"maxzoom": 19
Expand All @@ -12,9 +12,18 @@
"label": "Humanitarian",
"template": "https://{S}.tile.openstreetmap.fr/hot/{Z}/{X}/{Y}.png",
"options": {
"attribution": ""
"attribution": "<a href='https://openstreetmap.org/copyright' target='_blank'>© OpenStreetMap</a>"
},
"minzoom": 0,
"maxzoom": 20
},
"EsriImagery": {
"label": "Esri World Imagery",
"template": "https://server.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}.png",
"options": {
"attribution": "<a href='https://wiki.openstreetmap.org/wiki/Esri' target='_blank'>Terms & Feedback</a>"
},
"minzoom": 0,
"maxzoom": 22
}
}

0 comments on commit e6e38c7

Please sign in to comment.