From 472e4863a989be60dbb667d6609c2c147b9865a6 Mon Sep 17 00:00:00 2001 From: Peter Rushforth Date: Wed, 28 Jun 2023 21:47:04 -0400 Subject: [PATCH] Add paragraph of spec for layer element label attribute (#251) --- spec/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/index.html b/spec/index.html index 87c9135..b6129f6 100644 --- a/spec/index.html +++ b/spec/index.html @@ -943,6 +943,19 @@

The <layer> element

The src attribute value is the URL of a web resource encoded in Map Markup Language.

The hidden boolean attribute can be set to remove the layer from the map layer control, but it will remain displayed on the map. In order to remove the layer from the map display, it can have its checked property toggled, or be removed from the DOM.

+

The label attribute sets + a fallback value for the + accessible name + [[accname-1.1]] of the layer as represented in the user agent's representation of map + viewer controls. + The fallback label + value is used as the accessible name + [[accname-1.1]] of the layer if the map document author has not supplied + a non-empty title element + value in the layer content. + The label IDL + attribute must reflect + the label content attribute.

The disabled property is a read-only boolean indicator of the visibility of the layer on the map. If the layer is not visible due to errors, including projection, zoom or extent mismatch, the property will be true and if the layer is present in the layer control (i.e. hidden is false), it will be disabled in that control i.e. not checkable.

The location and zoom level of the map can be changed via the layer.zoomTo() API method.