I am attempting to load feature classes from a dynamic workspace (with a registered workspace ID) within a simple JS API application. Please refer to the ESRI sample here.
I've attempted to lift the sample and add my own data (added AGS service (map server) workspace ID and feature class to be loaded). This produces several generic TypeErrors e.g. Uncaught TypeError: Cannot read property 'visible' of undefined, TypeError: Cannot read property 'set' of undefined.
I've attempted to build my own from scratch following the guide closely and refering to the API documentation. this produces "Uncaught ReferenceError: getVisibleLayers" even though the logic is present in the code.
My questions are:
- Has anyone had success using dynamic workspaces? (I couldn't find much chatter about it online)
- Can anyone find/provide a working sample?
- Does anybody know of any documentation relating to dynamic workspaces? (ESRI docs are very brief on the subject)
- Anything to watch out for working with these?