Skip to content

Commit ec6ab49

Browse files
mstefarovwilliambohrmann3
authored andcommitted
uwp: Update WebTiledLayer service (#1585)
1 parent c8cfd25 commit ec6ab49

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed
-5.8 KB
Loading

src/UWP/ArcGIS.UWP.Viewer/Samples/Layers/LoadWebTiledLayer/LoadWebTiledLayer.xaml.cs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
88
// language governing permissions and limitations under the License.
99

10+
using Esri.ArcGISRuntime;
1011
using Esri.ArcGISRuntime.Mapping;
11-
using System.Collections.Generic;
1212

1313
namespace ArcGIS.UWP.Samples.LoadWebTiledLayer
1414
{
@@ -17,30 +17,29 @@ namespace ArcGIS.UWP.Samples.LoadWebTiledLayer
1717
category: "Layers",
1818
description: "Display a tiled web layer.",
1919
instructions: "Run the sample and a map will appear. As you navigate the map, map tiles will be fetched automatically and displayed on the map.",
20-
tags: new[] { "OGC", "Open Street Map", "OpenStreetMap", "layer", "stamen.com", "tiled", "tiles" })]
20+
tags: new[] { "OGC", "layer", "tiled", "tiles" })]
2121
public partial class LoadWebTiledLayer
2222
{
23-
// Templated URL to the tile service
24-
private readonly string _templateUri = "https://stamen-tiles-{subdomain}.a.ssl.fastly.net/watercolor/{level}/{col}/{row}.jpg";
23+
// Templated URL to the tile service.
24+
private readonly string _templateUri = "https://server.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{level}/{row}/{col}.jpg";
2525

26-
// List of subdomains for use when constructing the web tiled layer
27-
private readonly List<string> _tiledLayerSubdomains = new List<string> { "a", "b", "c", "d" };
28-
29-
// Attribution string for the Stamen service
30-
private readonly string _attribution = "Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.";
26+
// Attribution string.
27+
private readonly string _attribution = "Map tiles by <a href=\"https://livingatlas.arcgis.com\">ArcGIS Living Atlas of the World</a>, " +
28+
"under <a href=\"https://www.esri.com/en-us/legal/terms/full-master-agreement\">Esri Master License Agreement</a>. " +
29+
"Data by Esri, Garmin, GEBCO, NOAA NGDC, and other contributors.";
3130

3231
public LoadWebTiledLayer()
3332
{
3433
InitializeComponent();
3534

36-
// Setup the control references and execute initialization
35+
// Create the UI, setup the control references and execute initialization.
3736
Initialize();
3837
}
3938

4039
private void Initialize()
4140
{
4241
// Create the layer from the URL and the subdomain list
43-
WebTiledLayer myBaseLayer = new WebTiledLayer(_templateUri, _tiledLayerSubdomains);
42+
WebTiledLayer myBaseLayer = new WebTiledLayer(_templateUri);
4443

4544
// Create a basemap from the layer
4645
Basemap layerBasemap = new Basemap(myBaseLayer);

src/UWP/ArcGIS.UWP.Viewer/Samples/Layers/LoadWebTiledLayer/readme.metadata.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
],
99
"keywords": [
1010
"OGC",
11-
"Open Street Map",
12-
"OpenStreetMap",
1311
"layer",
14-
"stamen.com",
1512
"tiled",
1613
"tiles"
1714
],

0 commit comments

Comments
 (0)