Skip to content

Commit

Permalink
Updating service and associated doc (#814) (#815)
Browse files Browse the repository at this point in the history
* Updating service and associated doc

* Space and full stop
  • Loading branch information
mbcoder authored Nov 17, 2023
1 parent f9030a1 commit 4432019
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tiled_layers/web-tiled-layer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Run the sample and a map will appear. As you navigate the map, map tiles will be

## About the data

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.
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.

## Additional information

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

## Tags

layer, OGC, Open Street Map, OpenStreetMap, stamen.com, tiled, tiles
layer, OGC, tiled, tiles
Binary file modified tiled_layers/web-tiled-layer/WebTiledLayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void start(Stage stage) {

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

// create a web tiled layer
webTiledLayer = new WebTiledLayer(templateURI, subDomains);
Expand All @@ -68,10 +68,9 @@ public void start(Stage stage) {
// set the web tiled layer as the map's basemap
map.setBasemap(new Basemap(webTiledLayer));
// set custom attribution on the layer
webTiledLayer.setAttribution("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://creativecommons.org/licenses/by-sa/3.0\">CC BY SA</a>.");
webTiledLayer.setAttribution("Map tiles by ArcGIS Living Atlas of the World" +
", under the Esri Master License Agreement. " +
"Data by Esri, Garmin, GEBCO, NOAA NGDC, and other contributors.");
} else {
new Alert(Alert.AlertType.ERROR, webTiledLayer.getLoadError().getMessage()).show();
}
Expand Down

0 comments on commit 4432019

Please sign in to comment.