Hi,
We believe your requirement is to invoke a submap from within a map view.
Scenario:
Create a map for USA (country)
User creates a map for Dallas (city)
User places an icon for Dallas on map USA
Expected Result:
The user must be able to open the USA map and invoke the Dallas map from here by double clicking on the map.
Generally,
maps can be created using the map filter implementation. But if you
want to create maps during run time, you need to follow different
implementation.
Steps to be followed to create maps from the UI at runtime.
1.From the Custom Views menu select the Add New Map menu item.
2.In
the properties form enter the details like name,label etc and in the
ParentNode Drop down select the parent map under which you wish to add
your map.
3.Click on Add map and the new map will appear under the selected parent node.
----------------------------
If
you already have a sub-map and need a menu item or short-cut to open
the child map from the parent map.In other words, you have child
MapSymbol in the parent map and on clicking the child map symbol ,you
want the child map to open.
You can achieve this with a menu
action called 'openpanel'.You only need to have a menu item to invoke
this menu action.For more details on 'open panel' menu action,please
refer to the following developer guide link:
http://www.webnms.com/webnms/help/developer_guide/java_client_framework/menu_framework/menu_actions/java_openpanel_menuaction.htmlYou
can also refer to our default map ipnet.netmap which has a similar kind
of implementation.The menu file for the same is
<NmsHome>/mapdata/menus/ipnet.xml.
You may use the following steps to add a new menu item and associate an 'open panel' menu action with the same:
Add the following menu item to the menu file (the xml file corresponding to the menu where you need this menu item)
<MENU-ITEM
name="Open Submap"
action_type="openpanel"
action_value="MapApplet?OPEN_MAP=${objName}">
</MENU-ITEM>
Here "Open Submap" is the name of the menu item.
The
open panel action will be triggered on clicking the menu "Open Submap".
However, if you want to trigger this menu action on double clicking the
map symbol, you can give the entry as mentioned below:
<DOUBLECLICK action_type="openpanel" action_value="MapApplet?OPEN_MAP=${objName}"/>
For more details on double click , please refer to the following developer guide link:
http://www.webnms.com/webnms/help/developer_guide/java_client_framework/menu_framework/java_double_click.html#Map specific menu
Hope this helps.
Regards,
Deborah CD