Skip to content

Commit fec12f9

Browse files
committed
Added links to sample source code in article: map-add-tile-layer.md
1 parent 019e345 commit fec12f9

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

articles/azure-maps/map-add-tile-layer.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ map.layers.add(new atlas.layer.TileLayer({
4747
}), 'labels');
4848
```
4949

50-
For a fully functional sample that shows how to create a tile layer that points to a set of tiles using the x, y, zoom tiling system, see the [Tile Layer using X, Y, and Z] sample in the [Azure Maps Samples]. The source of the tile layer in this sample is a nautical chart from the [OpenSeaMap project], an OpenStreetMaps project licensed under ODbL.
50+
For a fully functional sample that shows how to create a tile layer that points to a set of tiles using the x, y, zoom tiling system, see the [Tile Layer using X, Y, and Z] sample in the [Azure Maps Samples]. The source of the tile layer in this sample is a nautical chart from the [OpenSeaMap project], an OpenStreetMaps project licensed under ODbL. For the source code for this sample, see [Tile Layer using X, Y, and Z source code].
5151

5252
:::image type="content" source="./media/map-add-tile-layer/tile-layer.png"alt-text="A screenshot of map with a tile layer that points to a set of tiles using the x, y, zoom tiling system. The source of this tile layer is the OpenSeaMap project.":::
5353

@@ -60,7 +60,7 @@ For a fully functional sample that shows how to create a tile layer that points
6060

6161
A web-mapping service (WMTS) is an Open Geospatial Consortium (OGC) standard for serving images of map data. There are many open data sets available in this format that you can use with Azure Maps. This type of service can be used with a tile layer if the service supports the `EPSG:3857` coordinate reference system (CRS). When using a WMS service, set the width and height parameters to the value supported by the service, be sure to set this value in the `tileSize` option. In the formatted URL, set the `BBOX` parameter of the service with the `{bbox-epsg-3857}` placeholder.
6262

63-
For a fully functional sample that shows how to create a tile layer that points to a Web Mapping Service (WMS), see the [WMS Tile Layer] sample in the [Azure Maps Samples].
63+
For a fully functional sample that shows how to create a tile layer that points to a Web Mapping Service (WMS), see the [WMS Tile Layer] sample in the [Azure Maps Samples]. For the source code for this sample, see [WMS Tile Layer source code].
6464

6565
The following screenshot shows the [WMS Tile Layer] sample that overlays a web-mapping service of geological data from the [U.S. Geological Survey (USGS)] on top of the map and below the labels.
6666

@@ -81,7 +81,7 @@ A web-mapping tile service (WMTS) is an Open Geospatial Consortium (OGC) standar
8181
* `{TileRow}` => `{y}`
8282
* `{TileCol}` => `{x}`
8383

84-
For a fully functional sample that shows how to create a tile layer that points to a Web Mapping Tile Service (WMTS), see the [WMTS Tile Layer] sample in the [Azure Maps Samples].
84+
For a fully functional sample that shows how to create a tile layer that points to a Web Mapping Tile Service (WMTS), see the [WMTS Tile Layer] sample in the [Azure Maps Samples]. For the source code for this sample, see [WMTS Tile Layer source code].
8585

8686
The following screenshot shows the [WMTS Tile Layer] sample overlaying a web-mapping tile service of imagery from the [U.S. Geological Survey (USGS) National Map] on top of a map, below roads and labels.
8787

@@ -96,7 +96,7 @@ The following screenshot shows the [WMTS Tile Layer] sample overlaying a web-map
9696

9797
## Customize a tile layer
9898

99-
The tile layer class has many styling options. The [Tile Layer Options] sample is a tool to try them out.
99+
The tile layer class has many styling options. The [Tile Layer Options] sample is a tool to try them out. For the source code for this sample, see [Tile Layer Options source code].
100100

101101
:::image type="content" source="./media/map-add-tile-layer/tile-layer-options.png"alt-text="A screenshot of Tile Layer Options sample.":::
102102

@@ -121,10 +121,16 @@ See the following articles for more code samples to add to your maps:
121121
> [Add an image layer](./map-add-image-layer.md)
122122
123123
[Azure Maps Samples]: https://samples.azuremaps.com
124+
[Tile Layer Options]: https://samples.azuremaps.com/tile-layers/tile-layer-options
125+
[WMS Tile Layer]: https://samples.azuremaps.com/tile-layers/wms-tile-layer
126+
[WMTS Tile Layer]: https://samples.azuremaps.com/tile-layers/wmts-tile-layer
124127
[Tile Layer using X, Y, and Z]: https://samples.azuremaps.com/tile-layers/tile-layer-using-x,-y-and-z
128+
129+
[Tile Layer Options source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Tile%20Layers/Tile%20Layer%20Options/Tile%20Layer%20Options.html
130+
[WMS Tile Layer source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Tile%20Layers/WMS%20Tile%20Layer/WMS%20Tile%20Layer.html
131+
[WMTS Tile Layer source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Tile%20Layers/WMTS%20Tile%20Layer/WMTS%20Tile%20Layer.html
132+
[Tile Layer using X, Y, and Z source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Tile%20Layers/Tile%20Layer%20using%20X,%20Y%20and%20Z/Tile%20Layer%20using%20X,%20Y%20and%20Z.html
133+
125134
[OpenSeaMap project]: https://openseamap.org/index.php
126-
[WMS Tile Layer]: https://samples.azuremaps.com/tile-layers/wms-tile-layer
127135
[U.S. Geological Survey (USGS)]: https://mrdata.usgs.gov/
128-
[WMTS Tile Layer]: https://samples.azuremaps.com/tile-layers/wmts-tile-layer
129-
[U.S. Geological Survey (USGS) National Map]:https://viewer.nationalmap.gov/services
130-
[Tile Layer Options]: https://samples.azuremaps.com/tile-layers/tile-layer-options
136+
[U.S. Geological Survey (USGS) National Map]:https://viewer.nationalmap.gov/services

0 commit comments

Comments
 (0)