[mapguide-users] Fusion.Event.MAP_EXTENTS_CHANGED throws error

Mike Adair madair at dmsolutions.ca
Wed Jan 13 14:49:53 EST 2010


Just a guess but it sounds like your mapWidget object changes in between 
calls.

Mike

GordonL wrote:
> Hi, I am just trying to grab the current scale when the user zooms in and out
> - but after the code runs once, successfully, to throws the following error:
>
> Message: 'this.events[...][...]' is null or not an object
> Line: 110
> Char: 13
> Code: 0
> URI: http://localhost/mapguide2010/fusion/lib/EventMgr.js
>
> the code:
>
> mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
> alert(mapWidget.getScale()));
>
>
> the code works great, once.
>   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca




More information about the mapguide-users mailing list