[mapguide-users] Re: Onclick Display information of selected feature at the taskpane

ehsan ehsan85 at yahoo.com
Wed Aug 3 02:19:33 EDT 2011


Thank for reply, 

i already managed to make click and show to the taskpane, here what that i
did:

1- in viewerfiles/ajaxmappane.templ add this code at the *function
OnClick(e)*

//if have selection show on taskpane
if(selectionToXml()){

                //Layer name
		var sLayer = document.getElementById("selLayers");
		var layerIdx = sLayer.selectedIndex;
		var layerName = sLayer.options[layerIdx].value;
		
		var selection = selectionToXml();//selectionXML
		var session = GetSessionId();//SessionID
		var mapname = GetMapName();//MapName

		ExecuteMapAction(10);	//zoom to selection..

                //URL to open on the taskpane
		window.open("clickArea.php?LAYER="+ layerName +"&MAPNAME="+ mapname
+"&SESSION=" + session +"&SELECTION=" + selection, "taskPaneFrame");
	}

that all, hope this will help for others..

ehsan.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Onclick-Display-information-of-selected-feature-at-the-taskpane-tp6647150p6647697.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list