[mapguide-users] react-layout: Hooking to events in the AJAX viewer (OnSelectionChanged)

Jackie Ng jumpinjackie at gmail.com
Fri May 26 00:44:34 PDT 2017


With the 0.9 release, as part of refactoring to allow mapguide-react-layout
to reuse the existing Fusion backend, I had to implement polyfills for
Fusion APIs that the
query/theme/redline/featureinfo/selectwithin/buffer/search widgets use.

Which also meant I had to polyfill support for some Fusion events as well.

As of the 0.9 release, that Fusion events supported by mapguide-react-layout
are:

 - Fusion.Event.MAP_SELECTION_ON
 - Fusion.Event.MAP_SELECTION_OFF
 - Fusion.Event.MAP_ACTIVE_LAYER_CHANGED
 - Fusion.Event.MAP_BUSY_CHANGED

And the Fusion/<Widget> registerForEvent/deregisterForEvent APIs are
available to subscribe/unsubscribe from these events as well.

The current list of supported AJAX Viewer/Fusion APIs can be found here:

https://jumpinjackie.github.io/mapguide-react-layout/apicompat.html

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/react-layout-Hooking-to-events-in-the-AJAX-viewer-OnSelectionChanged-tp5309934p5321910.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list