I have searched everywhere online on How to use featureCollection in the operationalLayers of CMV.

Is any sample code available?


@geebengs CMV does not currently support using a FeatureCollection when first creating a Feature Layer within the operationalLayers of viewer.js. That is a good enhancement and relatively simple to add. I will add it to the list of enhancements for CMV.

Depending on the source of the features in the FeatureCollection, you can also add them to a Feature layer or a Graphics layer using a custom widget.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.