-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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-extendeduses a subset based on Leaflets path style propertiesapplication/geo+jsonuses Mapbox Simple Stylesviews.spec.legenduses 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
Metadata
Metadata
Assignees
Labels
No labels