[mapguide-users] fusion selection events
Jason Fournier
jfournier at dmsolutions.ca
Wed Mar 12 07:56:58 EDT 2008
Hi Jackie,
Both of these events are valid:
Fusion.Event.MAP_SELECTION_ON
Fusion.Event.MAP_SELECTION_OFF
The selection events are tied to the MAP so the following would work ...
In template context:
Fusion.getMapById('Map').registerForEvent(Fusion.Event.MAP_SELECTION_ON,
callback);
Fusion.getMapById('Map').registerForEvent(Fusion.Event.MAP_SELECTION_OFF,
callback);
(where 'Map' is the div id containing the map)
In widget context:
this.getMap().registerForEvent(Fusion.Event.<EVENT>,
this.<CALLBACK>.bind(this));
Regards,
Jason
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Tuesday, March 11, 2008 9:38 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] fusion selection events
Hi All,
In fusion, how can I listen for a selection on the map? I think it's
something to do with Fusion.registerForEvent(), but I don't know what event
to listen for.
- Jackie
--
View this message in context:
http://www.nabble.com/fusion-selection-events-tp15996245s16610p15996245.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list