Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
This repository was archived by the owner on May 3, 2026. It is now read-only.

Confusing style schemas #12

Description

@n0rdlicht

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions