Skip to content

Commit

Permalink
Add Esri World Imagery layer
Browse files Browse the repository at this point in the history
  • Loading branch information
nrenner committed Dec 12, 2016
1 parent 753c36b commit 1e26cb1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
BRouter-Web Changelog
=====================

## 0.6.1 (2016-12-12)

* Add Esri World Imagery layer (DigitalGlobe is now also blocked because monthly usage limit is exceeded)

## 0.6.0 (2016-10-11)

See also [milestone 0.6.0](https://github.com/nrenner/brouter-web/milestone/1?closed=1), remaining issues moved to [milestone 0.7.0](https://github.com/nrenner/brouter-web/milestone/4)
Expand Down
2 changes: 1 addition & 1 deletion dist/brouter-web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/brouter-web.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<div id="message"></div>
<div id="header" class="hidden">
<div class="title"><span class="title-name">BRouter-Web</span>&nbsp;&nbsp;<sup class="version">0.6.0</sup></div>
<div class="title"><span class="title-name">BRouter-Web</span>&nbsp;&nbsp;<sup class="version">0.6.1</sup></div>
<div class="header-text">
'esc' or 'q' to disable drawing, 'd' to enable drawing<br>
Web client for <a href="http://brouter.de/" target="_blank">BRouter</a> &middot; <i>work in progress</i> &middot;
Expand Down
12 changes: 11 additions & 1 deletion js/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ BR.Map = {
attribution: thunderforestAttribution
});

var esri = L.tileLayer('https://{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
maxNativeZoom: 19,
maxZoom: maxZoom,
subdomains: ['server', 'services'],
attribution: '<a target="_blank" href="http://goto.arcgisonline.com/maps/World_Imagery">World Imagery</a> '
+ '&copy; <a target="_blank" href="http://www.esri.com/">Esri</a>, sources: '
+ 'Esri, DigitalGlobe, Earthstar Geographics, CNES/Airbus DS, GeoEye, USDA FSA, USGS, Getmapping, Aerogrid, IGN, IGP, and the GIS User Community'
});

var cycling = L.tileLayer('http://tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {
maxNativeZoom: 18,
maxZoom: maxZoom,
Expand Down Expand Up @@ -73,7 +82,8 @@ BR.Map = {
'OpenStreetMap.de': osmde,
'OpenTopoMap': topo,
'OpenCycleMap (Thunderf.)': cycle,
'Outdoors (Thunderforest)': outdoors
'Outdoors (Thunderforest)': outdoors,
'Esri World Imagery': esri
};
var overlays = {
'Cycling (Waymarked Trails)': cycling,
Expand Down

0 comments on commit 1e26cb1

Please sign in to comment.