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 ;
1011using Esri . ArcGISRuntime . Mapping ;
11- using System . Collections . Generic ;
1212
1313namespace 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 ) ;
0 commit comments