In this section, we will learn about creating a static feature layer. A static feature is an inline feature that is rendered on the map as SVG. This allows the feature to scale as you zoom in and out without distortion.
Parent element that contains the
- This allows you to set the zoom level the feature is rendered at. The zoom value should fall within the range of 0 to the maximum zoom level of the map's projection.
This element contains the contents of the popup associated to a given feature.
This element contains the different points, lines and polygons that will be drawn. Details on the geometry elements and it's syntax can be found here.
- This allows you to set the coordinate system of the points, lines and polygons.
- Defaults to gcrs, but can be set to tilematrix | pcrs | gcrs explicitly.
You can also provide a set of elements to further define the static feature 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. It also allows you to set a value, this is the default zoom of all features in the case the
<feature> is missing a zoom attribute.
Sets the projection of the layer.
Sets the default coordinate system of the layer. If a feature is missing the cs attribute, it will default to this, and if this is missing it will default to gcrs.
Sets the extent of the layer.
[ADD MAP HERE]