In this section, we will learn about creating a static tile layer. A static tile is a single image that occupies an entry on the map grid. You can specify the column, row and zoom to present an image at that location on the map.
Add an image file to your project directory. Now you can access this image in MapML.
- The col attribute allows you to set the column value of the static tile.
- The row attribute allows you to set the row value of the static tile.
- The src attribute lets you set the path to the image source of the static tile.
- This allows you to set the zoom level the tile is rendered at. The zoom value should fall within the range of 0 to the maximum zoom level of a projection.
You can also provide a set of elements to further define the static tile layer. This is the list of available additions with examples.
Sets the attribution link of the layer. Example:
Sets the native minimum and maximum native zoom.
Sets the projection of the layer.
[ADD MAP HERE]