[mapguide-users] Fusion.Event.MAP_EXTENTS_CHANGED throws error
GordonL
gordon.luckett at arrowgeomatics.com
Wed Jan 13 16:38:18 EST 2010
Thanks Mike, I figured it out. The registerForEvent does not like the
brackets such as alert("hi there) or the function with parameters...
registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
alert(Fusion.getWidgetById('Map').getScale()));
What I had to do was:
registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED, showScale);
and then create a function:
function showScale()
{
alert(Fusion.getWidgetById('Map').getScale());
}
and that works fine...
thanks
gordon
--
View this message in context: http://n2.nabble.com/Fusion-Event-MAP-EXTENTS-CHANGED-throws-error-tp4365674p4375888.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list