Skip to content

Commit eb4c2b1

Browse files
authored
Merge pull request #598 from OpenGeoscience/replace-mapquest-tiles
Replace mapquest tiles in examples
2 parents d8f9bdc + db58201 commit eb4c2b1

File tree

20 files changed

+26
-49
lines changed

20 files changed

+26
-49
lines changed

examples/choropleth/thumb.jpg

20.2 KB
Loading

examples/dynamicData/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ $(function () {
1414
.end(omega)
1515
.state('play');
1616

17-
// Add an OSM layer with MapQuest satellite image tiles
18-
map.createLayer('osm', {
19-
baseUrl: 'http://otile1.mqcdn.com/tiles/1.0.0/sat'
20-
});
17+
// Add an OSM layer
18+
map.createLayer('osm');
2119

2220
// Add a feature layer with a D3 renderer. We could, instead, ask for any
2321
// renderer that supports point features, like so:

examples/geoJSON/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ $(function () {
1616
map.createLayer(
1717
'osm',
1818
{
19-
baseUrl: 'http://otile1.mqcdn.com/tiles/1.0.0/map/'
19+
url: 'http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png',
20+
attribution: ['Map tiles by <a href="http://stamen.com">Stamen Design</a>,',
21+
'under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>.',
22+
'Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under',
23+
'<a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
24+
].join(' ')
2025
}
2126
);
2227

examples/geoJSON/thumb.jpg

-37.4 KB
Loading

examples/hurricanes/main.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,8 @@ $(function () {
361361
zoom: 3
362362
});
363363

364-
// Add the osm layer with a custom tile url
365-
map.createLayer(
366-
'osm',
367-
{
368-
baseUrl: 'http://otile1.mqcdn.com/tiles/1.0.0/map/'
369-
}
370-
);
364+
// Add the default osm layer
365+
map.createLayer('osm');
371366

372367
// Create a feature layer to draw on.
373368
layer = map.createLayer('feature', {features: [geo.lineFeature.capabilities.multicolor]});

examples/hurricanes/thumb.jpg

89 KB
Loading

examples/legend/main.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ $(function () {
88
zoom: 3
99
});
1010

11-
// Add the osm layer with a custom tile url
12-
map.createLayer(
13-
'osm',
14-
{
15-
baseUrl: 'http://otile1.mqcdn.com/tiles/1.0.0/map/'
16-
}
17-
);
11+
// Add the default osm layer
12+
map.createLayer('osm');
1813

1914
// Create a ui layer
2015
var ui = map.createLayer('ui');

examples/legend/thumb.jpg

-35.1 KB
Loading

examples/osm/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ $(function () {
1616
map.createLayer(
1717
'osm',
1818
{
19-
baseUrl: 'http://otile1.mqcdn.com/tiles/1.0.0/map/'
19+
url: 'http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png',
20+
attribution: ['Map tiles by <a href="http://stamen.com">Stamen Design</a>,',
21+
'under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>.',
22+
'Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under',
23+
'<a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
24+
].join(' ')
2025
}
2126
);
2227
});

examples/reprojection/index.jade

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ block append mainContent
44
div#controls
55
.form-group(title="The url used to fetch tiles. Use {x}, {y}, {z}, and {s} for templating.")
66
label(for="layer-url") Tile URL
7-
select#layer-url.layerparam(param-name="url", list="url-list", placeholder="http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png")
8-
option(value="http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png", credit='Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a>') MapQuest
7+
select#layer-url.layerparam(param-name="url", list="url-list", placeholder="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")
98
option(value="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", credit="© OpenStreetMap contributors") OpenStreetMap
109
option(value="../../data/tilefancy.png", credit="") Fancy Test Tile
11-
option(value="http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png", credit='Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a>') MapQuest Satellite
1210
option(value="http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png", credit='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.') Toner Lite
1311
.form-group(title="Web maps are most often rendered using a Mercator geographic coordinate system, but other projections can be used. See spatialreference.org for more information on projections.")
1412
label(for="map-gcs") Map GCS

0 commit comments

Comments
 (0)