I'm not sure how I would do that... but I found, in the file ajaxmappane.templ that the tooltip gets displayed within the function DisplayHyperlinkTip(). <div><br></div><div>The actual tooltip info is stored in the hlData object: hlData.ttip, </div>
<div><br></div><div>which gets its value from xmlIn.getElementsByTagName("Tooltip")[0] , (the value of the first element in the XML having the tag Tooltip ) in the function ProcessFeatureInfo(),</div><div><br></div>
<div>which in turn gets called by the function QueryFeatureInfo(), where it all comes down to. </div><div><br></div><div>In this function, QueryFeatureInfo(), there is a request sent which returns an XML containing the tooltip info. Here's the code:</div>
<div><br></div><div><div>function QueryFeatureInfo(geom, append, maxfeatures, which)</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if(GetVisSelLayers() == "") return;</div><div>
var reqParams ;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>reqParams = "OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=" + encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" + Math.random() + "&LAYERNAMES=" + encodeURIComponent(GetVisSelLayers()) + "&GEOMETRY=" + geom + "&SELECTIONVARIANT=INTERSECTS" + "&CLIENTAGENT=" + encodeURIComponent(clientAgent);</div>
<div> if(maxfeatures != 0)</div><div> {</div><div> reqParams += "&MAXFEATURES=" + maxfeatures;</div><div> }</div><div> var selRequest = CreateRequestHandler();</div><div> selRequest.open("POST", webAgent, false);</div>
<div> selRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");</div><div> selRequest.send(reqParams);</div><div> if(selRequest.responseXML)</div><div> {</div><div> ProcessFeatureInfo(selRequest.responseXML.documentElement, append, which);</div>
<div> }</div><div> else</div><div> RequestFailed("No response");</div><div>}</div><div><br></div>I was wondering if I could change something here that would get the results I need (display the tooltip info from all visible and selectable layers, not just the current layer). Something like the parameters used to call QUERYMAPFEATURES? So that in the returned XML, I would have more Tooltip elements that I'd concatenate in ProcessFeatureInfo(). I also tried to find the code for the QUERYMAPFEATURES code thinking I could find something useful there, but had no luck... does anybody know where I could find that code?</div>
<div><br></div><div>Thanks<br><div class="gmail_quote"><br></div></div>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Tooltip-Display-info-from-all-above-map-layers-tp6891565p6899504.html">Re: Tooltip - Display info from all (above) map layers</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/MapGuide-Users-f1803227.html">MapGuide Users mailing list archive</a> at Nabble.com.<br/>