How to style GeoJSON layer according to embedded attributes #1084
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I assume you are talking about https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0? this is not part of the geojson spec so talking about "full geojson data" is a bit misleading. It should be quite easy to make a style using expressions to support most of this properties (not sure about the marker ones). This would also make a nice documentation example as this could be a common use case. |
Beta Was this translation helpful? Give feedback.
-
Ok finally I got it right. so in my example
it would be something like:
|
Beta Was this translation helpful? Give feedback.
Ok finally I got it right.
Actually there's a possibility to use
get
feature to grab value from data.so in my example
it would be something like: