Esri / WAB-Image-Services-Widgets

Web AppBuilder widgets for Image Services (WABIS)
Apache License 2.0
49 stars 21 forks source link

IS Layers widget not honoring webmap layer names and seems to be changing them. #6

Closed sirws closed 8 years ago

sirws commented 8 years ago

http://nwdemo1.esri.com/lidarexplorer2/

Load the app. Layer List shows the appropriate layer names. image

Open the IS Layers/IS Renderer Group: image

Switch back to Layer List: image

Notice the "WA State DTM (Terrain)" has changed.

Also, it appears the layers are repeated for some reason in the IS Layers control. image

Finally, why does the ISLayers control show layers that aren't image services? This is showing map service layers as well. I would expect to only see two layers in it.

Here is the source webmap: http://wadnr.maps.arcgis.com/home/webmap/viewer.html?webmap=aaf626bc4f9b435199eae80f0bdb7fbb

kushu493 commented 8 years ago

Scott,

1) Layers are coming twice in IS Layers dropdown - Widget reads both the layers present in the webmap loaded with the app, along with the webmap id provided in the configuration of ISLayers widget. I would suggest you read the doc for this as it explains the functionality of the IS Layers widget. To solve your problem, go to root folder of the app, then go to configs/ISLayers/config_IS Layers.json file. Open the file and make the value of webmapId as "".

2) Title getting change in the LayerList and reading of map service issue fixed. I have updated the file ISLayers folder on Github. You can take new updated code from there.

Regards,

Kushagra

sirws commented 8 years ago

Thanks Kushagra! I will definitely take a look at the doc again.

The changes look pretty good. You may want to report the layer name the same in the IS Renderer widget:

image

It should say "WA State DSM (Surface)" just like the layer name.

Thanks! Scott

kushu493 commented 8 years ago

Scott,

IS Renderer Updated. Take the updated code from repo.

Regards,

Kushagra