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

Confusing style schemas #12

Open
n0rdlicht opened this issue Jun 2, 2021 · 0 comments
Open

Confusing style schemas #12

n0rdlicht opened this issue Jun 2, 2021 · 0 comments

Comments

@n0rdlicht
Copy link
Contributor

Currently the two mediatypes used for styled data layers are using inline GeoJSON properties but different schemas. Legends on the other hand use a third schema to describe stylings of entries. For users of the spec this is very confusing and often leads to incompatible snapshots not rendering at all or rendering with default styles.

  • application/vnd.simplestyle-extended uses a subset based on Leaflets path style properties
  • application/geo+json uses Mapbox Simple Styles
  • views.spec.legend uses SVG conventions
Property application/geo+json (Mapbox Simple Styles) application/vnd.simplestyles-extended (Leaflet) Legends (SVG)
fill yes/no - fill -
fill color fill fillColor fill
fill opacity fill-opacity fillOpacity fill-opacity
stroke yes/no - stroke -
stroke color stroke color stroke
stroke opacity stroke-opacity opacity stroke-opacity
stroke width stroke-width weight stroke-width
opacity - - opacity
radius (circle) - radius size
tooltip/label title, description title, description* label
shape - - shape: circle/ square/line
default visibility  - - primary: true/false

* currently not implemented

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