Skip to content

WebRAVE Symbology JSON id Values #109

Discussion options

You must be logged in to vote

@lauren-herbine It's not so much how JSON works. It's more how MapBox works. Mapbox is ensuring uniqueness by adding hash characters after the layer and source names.

We do require both "id" and "source-layer" fields but it's only used in the validation of the symbology, not actually in rendering.

  • id: Basically I check that id exists and that's all. At render time we're going to assign a new one anyway so I don't reallly care about the values themselves
  • source-layer: what I'm looking for is that there aren't any Mapbox-proprietary source layers and also that every symbology file references one (and only one) source layer.

Good Example:

So let's say you had a symbology file where you wan…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lauren-herbine
Comment options

Answer selected by MattReimer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
symbology Use for new symbology work 🌐 Viewer Web Our web map viewer inside the data exchange
2 participants