Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to render <map-featurecaption> as the feature label via "CSS" #943

Closed
prushforth opened this issue Mar 19, 2024 · 1 comment
Labels
basic styling Elements should only have basic and native-like styling (W3C TAG Components Guideline) enhancement idea needs discussion

Comments

@prushforth
Copy link
Member

prushforth commented Mar 19, 2024

There could be two "modes" to this:

  • as a single un-cut <map-feature> that requires to be accessibly labelled on the child <map-geometry> according to an algorithm that should be selectable and responsive
  • as a tiled feature that is represented across multiple tiles, but still requires to be accessibly labelled, but maybe the renderer should be able to re-compose the part of the original geometry that is represented in tiled parts and perform the labelling algorithm on the resulting geometry similar to how it would proceed in the first case. If unique <map-feature>s were identified by some special attribute e.g. data-fid, the value of the attribute could be used to merge related geometries prior to running the label placement algorithm. Currently, the tiled feature geometry is rendered and thrown away, which might still be ok after the labelling had been performed, tbd.
@prushforth prushforth changed the title Add the ability to use <map-featurecaption> if sent in text/mapml -based vector tiles Add the ability to render <map-featurecaption> as the feature label via "CSS" Mar 20, 2024
@prushforth prushforth added enhancement idea needs discussion basic styling Elements should only have basic and native-like styling (W3C TAG Components Guideline) labels Mar 20, 2024
@prushforth
Copy link
Member Author

Closing, duplicate of #947

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
basic styling Elements should only have basic and native-like styling (W3C TAG Components Guideline) enhancement idea needs discussion
Projects
None yet
Development

No branches or pull requests

1 participant