Skip to content

Instantly share code, notes, and snippets.

@pmacMaps
Created June 18, 2018 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmacMaps/06bd1e3d3197f6b5225757ef509f9475 to your computer and use it in GitHub Desktop.
Save pmacMaps/06bd1e3d3197f6b5225757ef509f9475 to your computer and use it in GitHub Desktop.
Expanded Layer Widget with Legend for Esri Web AppBuilder
/* Introduction
CSS rules for the Layer widget is Esri's Web AppBuilder.
For layer widgets that are expanded on map load, legend items will show
with their symbols instead of a loading icon.
Place these style rules within the <style> tag of the index.html file.
Or, create a new style.css file and link to it in the index.html file
*/
/* Layer list expanded by default */
.jimu-widget-layerList table.layer-sub-node {
display: table;
}
/* layer list legend hidden so it loads properly */
.jimu-widget-layerList table.layer-sub-node .legends-loading-img {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment