I want to add an image between the layers and embed it with a link so that when an image is clicked, the link will open in a new tab. I updated the Widget.js code within the show layers function (around line132) and I am partially successful i.e, my image won't display (as in the image below), but I am can click on the small icon to go to another page. I am a not sure what code I am missing for displaying the image. I am a newbie to WAB and programming and Any help will be highly appreciated.
Thanks,
Sunita
Solved! Go to Solution.
Sunita,
What is the full path of the treeCampus.png image?
Here is the full path of my treeCampus.png
D:\WebAppBuilder\WebAppBuilderForArcGIS\server\apps\5\widgets\LayerList\images
Thanks.
And when you hover over the broken image link icon what does it say the path it is using is?
It won't display any path.
Right click it and choose "inspect" (if using Chrome).
This is how it looks like in the chrome developer tool.
Many thanks for taking the time to help solve this one.
Sunita
Sunita,
OK, now hover over the src property and see what path it displays in the tooltip.
It looks like this
Sunita,
So you see having "images/treeCampus.png" goes to the Apps images folder and not the widgets images folder.