hide layers
I need to hide a layer called draft but some times it's spelt Draft and other times its draft.
openDocs.layers.item("(?i)DRAFT").visible = false; // This was a failed attempt
I thought that maybe changing it toUpperCase might work but it didn't, maybe my code was wrong.
Can anyone provide some guidance? ![]()