Skip to content

isShown, isEnabled no longer supported in v8? #6279

Answered by zoran995
lstillwe asked this question in Q&A
Discussion options

You must be logged in to vote

For loading data by default V8 uses workbench array property on the level of initialization files. It contains array of item ids that are shown on workbench by default.
Check https://docs.terria.io/guide/customizing/initialization-files/ and search for workbench.
Along with that you can use show boolean property on catalog item level, that controls whether the item is visible on the map. Each item should support this property.
i.e. something like this (writing from top of my head), should show dataset in workbench on initial load and it is visible on map (show)

{
    "catalog": [
        "type": "wms",
        "id": "dataset-1",
        "show": true
    ],
    "workbench": ["dataset-1"]
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hardreddata
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lstillwe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants