Customize LayerList module - add hyperlink/button
I want to add a hyperlink or button to the LayerList module. Essentially, I want the button or hyperlink "Show more layers" to run the ShowLayerCatalog command and open the layer catalog menu from the layer list instead of the toolbar area (command:ShowLayerCatalog). See screenshot for what I'm talking about. I need it to be more intuitive that there are more layers that can be added. Layer Catalog isn't obvious enough.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000Xbzw&feoid=Body&refid=0EMf2000000YC8J" _/_img_
0
-
I really like this idea, not sure why I never thought of that. Hopefilly someway has a way to make it happen. 0 -
If I'm not mistaken then this would need to be a viewer modification. You can add an idea to the idea's section, or write it yourself... adding a button isn't too difficult but takes some knowhow. Usually I see custom js like this written as its own standalone script and included in the viewer's resources call as described in "Add a right click menu (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA4600000004EVCCA2) ". 0 -
I like the idea also... perhaps you can add this in the 'ideas' section so the user base can then vote on it? 0 -
Added to ideas. I attempted to modify the LayerList.js file by adding an a tag with href = command:ShowLayerCatalog within the UL tag for the layer list items. The link appeared perfectly, but it didn't actually fire the command to show layers. 0
Please sign in to leave a comment.
Comments
4 comments