Hi,
I want to supply some basic layer information under the LayerList Description instead to the default redirect to the REST endpoint.
Previously when using Flex I would edit the eLayerList config <usenewesridescription>false</usenewesridescription>
This would then provide the layer description included with the published layer.
Is this function possible in WAB or is there another method to providing background info for your layers?
Thanks
Solved! Go to Solution.
You provided this great bit of code for me a number of years ago (attached above, under correct answer - PopupMenuInfo.zip) and it has been vital for one of our applications since. On clicking "Description" in the layer list it loads a popup that shows the description and copyright in a message dialog instead of the rest endpoint for that layer.
We have since updated our version of WAB Developer Edition (2.12) and since this update the "Move Layers" (up/down) functionality is unresponsive in the Layer List when we are using the revised code you produced. Would you know off hand what might be causing this in the code?
Many Thanks,
Eoghan
Many thanks for the speedy response Robert,
I am tied to version 2.12 at the moment as the environment the app is sitting on has just undergone a penetration test so I can't rebuild in a different version.
I did a test of what you sent in version 2.13 though, and it didn't work as expected. Upon clicking on the layer options to access the description, I am just getting a load spinning icon and no pop up - see below. Note, I have group layers in place here and they might be affecting things as I am getting a popup if I click on the group layer name.
Thanks again,
Eoghan
Are there any errors in the browsers web console?
Nothing that I can see bar a few font errors. Strangely, it worked once for a single layer.
I've set up a test module to try and configure it.
The "Description" option is grayed out now.
Just to elaborate on that a little further. Looking at the test module that I have set up. If the "Description" feild of the REST service is blank, a (blank) pop up loads. Where there is content in the Description field, the Description option in the layer list becomes grayed out.
Thanks,
Eoghan
That did the trick!!! Yes, working nicely on the 2.13 app.
Do you think I'll be able to replicate those code changes back to 2.12 or were there wholesale changes to that widget?
Really appreciate your help on this.
Thanks,
Eoghan