<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>Hello,</div><div><br></div><div>I have the following 2 questions:</div><div><br></div><div>1) How could I get the cursor position when a layer is selected?</div><div> I have the following code for handling the selection:</div><div><br></div><div> var Fusion = parent.parent.fusionFrame.Fusion;<br> themap = Fusion.getWidgetById('Map');<br> themap.registerForEvent(Fusion.Event.MAP_SELECTION_ON, handleSelection);<br> </div><div> function handleSelection() { <br> var maps = themap.getAllMaps();<br> var map = maps[0];<br> map.getSelection(selectionCallback);<br>}<br>function selectionCallback(sel) {<br> for (var i = 0; i < sel.getNumLayers(); i++)
{<br> var selLayer = sel.getLayer(i);</div><div> var selectedObjects=selLayer.getNumElements();</div><div> }<br></div><div> }</div><div><br></div><div>2) How could I show a tooltip info in the primary toolbar ? <br></div><div><br></div><div>I'm using Mapguide 2.2, viewer: Fusion<br></div><div><br></div><div>Thank you,</div><div>Iulia<br></div></div></body></html>