[mapguide-users] Fusion Event Listeners Called Twice

Zac Spitzer zac.spitzer at gmail.com
Wed Nov 6 02:50:25 PST 2013


which version on fusion, what are you using fusion with? do you have two
maps?


On Wed, Nov 6, 2013 at 6:19 AM, ChrisGo <cgountanis at mpowerinnovations.com>wrote:

> 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.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



-- 
Zac Spitzer
+61 405 847 168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20131106/5e38bd6e/attachment.html>


More information about the mapguide-users mailing list