A key abstraction in the world of mapping is that of "layer". Maps have one or more layers.
The map layer is implemented by the
<layer-> custom element.
<layer-> is not a 'void' element - it must be closed with a
Map content can either be inline, as shown above - between the beginning
<layer-> and ending
</layer-> tags -
or fetched, from the
<layer- src="..."></layer-> source attribute URL:
This documentation uses the convention of inline content mostly. Fetched map content follows similar semantics, except it is parsed with the browser's XML parser and so must follow both MapML document conventions as well as XML syntax rules.
Contains the path to a MapML document.
<layer- checked> attribute and property is boolean. When present,
the checked property value is taken to be 'true'; when not present, the property
value is 'false'. Beware that it is the presence of the attribute that makes it
true, not the value of the attribute. For example, the attribute
actually turns out to be checked,
as described by MDN Web docs.
<layer- disabled> attribute and property is boolean. When present,
sets the disabled state of the layer in the layer control.
<layer- hidden> attribute and property is boolean. When present,
the layer is hidden in the layer control.
label attribute is used by inline content as the displayed text label of the
layer in the layer control. In fetched content, the
label attribute is ignored,
and the fetched
<title> element is used.
<layer-> API is available.