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
[email protected]
http://www.dmsolutions.ca
http://research.dmsolutions.ca
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users