cmv / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
323 stars 278 forks source link

Feature Server support? #965

Open hoogw opened 3 years ago

hoogw commented 3 years ago

https://sampleserver6.arcgisonline.com/arcgis/rest/services/Earthquakes_Since1970/FeatureServer https://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy/Geology/FeatureServer

How to config it to support above feature server?

I know type=dynamic will works with MapServer,

For example:

https://sampleserver6.arcgisonline.com/arcgis/rest/services/Earthquakes_Since1970/MapServer

I have try type=feature

It only works when your url must specify the layer id, for example, layer id 0 must be there https://sampleserver6.arcgisonline.com/arcgis/rest/services/Earthquakes_Since1970/FeatureServer/0

How to config to make FeatureServer just like MapServer, dynamically show all sub-layers?

https://github.com/vojvod/CMV_Renderer_Widget#readme

seem only works with layer id, not show all layers dynamically