Skip to content

Use <map-featurecaption> as the feature label and accessible name by default #947

Open
@prushforth

Description

@prushforth

If a <map-feature> contains a <map-featurecaption>, the feature should be visually labelled, using map text label defaults built into the user agent stylesheet, amended by the user stylesheet and potentially customized by the server-provided style rules found in <map-link rel=stylesheet> and <map-style>.

The <map-geometry> should be used to control the label placement algorithm.

If a feature is tiled into parts, it should be possible to merge the geometry parts using a standard attribute name which has a common value across the parts. The label placement algorthim could use the resulting re-assembled geometry as required.

CSS rules could be used to substitute content to be rendered in place of <map-featurecaption>, but <map-featurecaption> would be the "batteries-included" default, which would help accessibility I think.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions