Skip to content

Commit

Permalink
Add Esri layer (osmlab#19)
Browse files Browse the repository at this point in the history
* Add Esri layer

* Update site.js
  • Loading branch information
fansanelli authored Mar 31, 2020
1 parent 1700c03 commit cfcb265
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ i18n.init({ fallbackLng: onOSMlang, postAsync: 'false' }, function() {
var findme_map = L.map('findme-map')
.setView([41.69, 12.71], 5),
osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osm = L.tileLayer(osmUrl, {minZoom: 2, maxZoom: 18, attribution: "Data © OpenStreetMap contributors"}).addTo(findme_map);
osm = L.tileLayer(osmUrl, {minZoom: 2, maxZoom: 18, attribution: "Data © OpenStreetMap contributors"}).addTo(findme_map),
esri = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', { attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'});

var baseMaps = {
"Mapnik": osm,
"Esri WorldImagery": esri
};
L.control.layers(baseMaps).addTo(findme_map);

var category_data = [];
var payment_data = [];
Expand Down

0 comments on commit cfcb265

Please sign in to comment.