Custom command for label settings incorrect object
I'm trying to add a label settings command on my layer list in my Studio Web viewer and I've copied the JSON code from the Standard Commands list put out by VertiGIS for “Label Settings” and added a new custom command into the layers list and I'm getting an error “Incorrect Type. Expected ”object"."
I've copied the commands exactly from this list for remove layer, add labels, and hide labels and they've all worked as expected so I do not know what I am missing this time.

-
It sounds like there might be a syntax error in your code. I’ve implemented the same solution, and it's working without any issues on my end:

Remember, line breaks and indentation are not taken into account, so try copying and pasting your code again carefully. This might resolve the issue.
0 -
Thank you for your response, I've carefully copied and pasted again, and copied the same format as you have posted above and it is still giving me the same issue unfortunately so I'm not sure that's the issue.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare