[mapguide-users] Fusion Event Listeners Called Twice

ChrisGo cgountanis at mpowerinnovations.com
Tue Nov 5 11:19:08 PST 2013


I am getting a double call on every selection. How do I resolve this? Below
is an example, onInitialized prints once on load. I zoom in and make a
single select and the selectionOn prints twice.



function onInitialized() {
    console.log("onInitialized");

    theMap = MapGuideMapFrame.Fusion.getWidgetById('Map');
    theMap.registerForEvent(MapGuideMapFrame.Fusion.Event.MAP_SELECTION_ON,
selectionOn);
}

function selectionOn() {
    console.log("selectionOn");
}



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Fusion-Event-Listeners-Called-Twice-tp5087525.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list