Skip to content

Commit 4432019

Browse files
authored
Updating service and associated doc (#814) (#815)
* Updating service and associated doc * Space and full stop
1 parent f9030a1 commit 4432019

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

tiled_layers/web-tiled-layer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Run the sample and a map will appear. As you navigate the map, map tiles will be
2525

2626
## About the data
2727

28-
The basemap in this sample is provided by [Stamen Design](http://maps.stamen.com). Stamen publishes tiled services based on OpenStreetMap data with several unique styles applied.
28+
The basemap in this sample is provided by [ArcGIS Living Atlas of the World](https://www.arcgis.com/home/item.html?id=1e126e7520f9466c9ca28b8f28b5e500). ArcGIS Living Atlas of the World provides tiled services with several unique styles.
2929

3030
## Additional information
3131

@@ -41,4 +41,4 @@ For more information about web tiled layers, see the following resources:
4141

4242
## Tags
4343

44-
layer, OGC, Open Street Map, OpenStreetMap, stamen.com, tiled, tiles
44+
layer, OGC, tiled, tiles
324 KB
Loading

tiled_layers/web-tiled-layer/src/main/java/com/esri/samples/web_tiled_layer/WebTiledLayerSample.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void start(Stage stage) {
5858

5959
// create a list of subdomains and template URI
6060
List<String> subDomains = Arrays.asList("a", "b", "c", "d");
61-
String templateURI = "http://{subDomain}.tile.stamen.com/terrain/{level}/{col}/{row}.png";
61+
String templateURI = "https://server.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{level}/{row}/{col}.jpg";
6262

6363
// create a web tiled layer
6464
webTiledLayer = new WebTiledLayer(templateURI, subDomains);
@@ -68,10 +68,9 @@ public void start(Stage stage) {
6868
// set the web tiled layer as the map's basemap
6969
map.setBasemap(new Basemap(webTiledLayer));
7070
// set custom attribution on the layer
71-
webTiledLayer.setAttribution("Map tiles by <a href=\"http://stamen.com/\">Stamen Design</a>, " +
72-
"under <a href=\"http://creativecommons.org/licenses/by/3.0\">CC BY 3.0</a>. " +
73-
"Data by <a href=\"http://openstreetmap.org/\">OpenStreetMap</a>, " +
74-
"under <a href=\"http://creativecommons.org/licenses/by-sa/3.0\">CC BY SA</a>.");
71+
webTiledLayer.setAttribution("Map tiles by ArcGIS Living Atlas of the World" +
72+
", under the Esri Master License Agreement. " +
73+
"Data by Esri, Garmin, GEBCO, NOAA NGDC, and other contributors.");
7574
} else {
7675
new Alert(Alert.AlertType.ERROR, webTiledLayer.getLoadError().getMessage()).show();
7776
}

0 commit comments

Comments
 (0)