Geojson polygon style not working correctly #6317
-
I'm having an issue where when I set the style of a geojson it applies the stroke correctly but not the fill. I've been able to get it to apply the fill correctly if I set the "disableTableStyle" to true, but than I lose the legend info in the workbench. Any thoughts on how to fix this; am I missing some inherent limitation in the code? Code and image of the map below. { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We have just changed how GeoJson styling works. So your example code should work now. The If you want to use protomaps/mvt renderer you have to use the For example {
"type": "geojson",
"name": "Test geojson using table style",
"url": "http://ci.terria.io/main/build/TerriaJS/test/GeoJSON/height.geojson"
"styles": [
{
"id": "User Style",
"color": { "nullColor": "rgba(255,0,0,1)" },
"outline": { "null": { "color": "rgba(249,0,0,1)" } },
"hidden": false
}
],
"activeStyle": "User Style"
} The For example:
Note this feature is brand new and experimental - so you may run into bugs/quirks |
Beta Was this translation helpful? Give feedback.
Hi @mappinggnome
We have just changed how GeoJson styling works. So your example code should work now.
The
style
parameter you are using now only works with Cesium primitives (equivalent toforceCesiumPrimitives = true
)If you want to use protomaps/mvt renderer you have to use the
TableStyle
properties.For example
The
TableStyle