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

label stylesheet #2

Open
mk30 opened this issue Mar 17, 2021 · 0 comments
Open

label stylesheet #2

mk30 opened this issue Mar 17, 2021 · 0 comments

Comments

@mk30
Copy link
Contributor

mk30 commented Mar 17, 2021

how to specify which feature labels should show up at which zoom levels?
how to specify at a zoom level, which labels should have priority (aka be bigger). (engine expects to receive labels sorted by number. whoever has higher priority will be rendered first)

more label style considerations:
labels can be styled as such:

  • size
  • fill and stroke color
  • font (incl. bold, italic, etc.)
  • spacing between the feature & the text
  • repeat (how far apart the label should repeat, like for a road or river)
  • follow feature (eg river)
  • whether it should be rendered at x zoom levels
  • priority list for where label should appear in relation to dot/sprite (eg: top, left, right, bottom). it will have a default priority list, but you should be able to specify a diff priority. also "only top and bottom, never left and right" for example.
  • rotations: example: always 45 degrees, upper right in relation to point" or "going up to the right from the point" (possible if you specify "always render on right of point, then rotate." rotations happen about the point.
  • padding around label (outside the box, aka margin)
  • padding around label (inside the box)
  • padding around point/sprite (maybe belongs in another doc?)
  • box fill/box stroke (rgba)
  • orientation for characters (eg: japanese characters going vertical). default is horizontal.

in some separate doc:

  • how many labels you want to display, which ones, all, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant