Skip to content

Create a map-extent checked attribute #786

Closed
@prushforth

Description

@prushforth

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 a label attribute are exposed in the layer control, so if an unlabeled extent has its opacity="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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions