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

GordonL gordon.luckett at arrowgeomatics.com
Wed Jan 13 15:05:52 EST 2010


Hi Mike, 
so since the mapWidget changes - should I capture it again anew? 
I get this error even if I use the following code:

mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED, alert("hi
there"));





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

-- 
View this message in context: http://n2.nabble.com/Fusion-Event-MAP-EXTENTS-CHANGED-throws-error-tp4365674p4368082.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list