Identify Tool - Set as Active by default
Hi everyone,
I have been asked by users to make the Identify Tool automatically active when the viewer loads.
I found this post from 2012 but it doesn't seem to work.
https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=906600000000Ak7AAE
I'm currently working in Geocortex Essentials 4.7 and Viewer for HTML5 2.8 and have the Toolbar open by default.
Thanks for any assistance!
Gary
0
-
Why not use MapTips? You can configure them to show the relavent information / links / photo / etc. 0 -
Hi Odiri,
Thanks for that suggestion.
I will take a look at that function as an option.
g0 -
If it helps, I had a javascript module that I added to:
1) Within the constructor, I listened for the SiteInitializedEvent and had it call a function called onSiteInitializedEvent
2) Within the onSiteInitializedEvent function, I ran the setActiveTool function of the toolRegistry and passed in the name of the tool I wanted to activate at the statup: this.app.toolRegistry.setActiveTool("POCTool");
3) If you want to get clever, one could pass in the name of the tool appart of the URL string that launches the viewer or as a configuration parameter of the module itself.0
Please sign in to leave a comment.
Comments
3 comments