Description
Currently, there is no checked attribute for a <map-extent>
, yet the extent is checkable in the layer control if it has a label
attribute. Even though there is currently no custom element for <map-extent>
we should enable such a boolean attribute in preparation for creating a custom element version. The checked
attribute would in this case control the initial state of the extent when loaded and first displayed.
Some issues that we may encounter:
-
basically no single-extent layers that we've created so far have a
checked
attribute, so we would have to go back and add a checked attribute for them to be on by default. In other words, a backwards-incompatibilty with existing content -
only
<map-extent>
elements that have alabel
attribute are exposed in the layer control, so if an unlabeled extent has itsopacity="0"
then checking / unchecking the layer will have no visual effect on the map, which could be hella confusing. -
for the latter issue, we could either change the behavior of the layer control to show those unlabeled extents anyway OR we could devise a rule whereby unlabeled extents with an opacity attribute are shown / have a label generated so that they're shown.