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

Is any sample code available?

1 Answer 1


@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 agree to our terms of service and acknowledge you have read our privacy policy.

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