You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello helpful people.
I was wondering if anyone else has seen this behavior and has fixed it somehow. ...
I have created a composite catalog item out of 3 geojson catalog item types. The actual geojson does not contain any style information, so I am adding the style data programmatically, to the GeoJsonCatalogItems created, like this one (a polygon):
And then add that GeoJsonCatalogItem is added to a CompositeCatalogItem like this:
let composite = new CompositeCatalogItem(new_id, terria);
...
composite.add(CommonStrata.definition, geojson_item)
The problem occurs when the CompositeCatalogItem is added to the workbench, and therefore map display the first time. When that is done, only some of the GeoJsonCatalogItem items are displayed (those without any styles added) until the show trait value has been toggled (via a hide/show button) a couple of times.
When I remove the style code above, all works fine with the default styles. Does anyone know why styling theses geojson items would affect their appearance on the map, and why toggling the show trait a couple of times would solve that?
Thanks in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello helpful people.
I was wondering if anyone else has seen this behavior and has fixed it somehow. ...
I have created a composite catalog item out of 3 geojson catalog item types. The actual geojson does not contain any style information, so I am adding the style data programmatically, to the GeoJsonCatalogItems created, like this one (a polygon):
And then add that GeoJsonCatalogItem is added to a CompositeCatalogItem like this:
The problem occurs when the CompositeCatalogItem is added to the workbench, and therefore map display the first time. When that is done, only some of the GeoJsonCatalogItem items are displayed (those without any styles added) until the show trait value has been toggled (via a hide/show button) a couple of times.
When I remove the style code above, all works fine with the default styles. Does anyone know why styling theses geojson items would affect their appearance on the map, and why toggling the show trait a couple of times would solve that?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions