[mapguide-users] Re: Viewer API GetLayer() and base layers

Ivan Miličević Ivan.Milicevic at supranet.hr
Tue Apr 20 09:18:59 EDT 2010

I think that you can hook up on function RequestMap in ajaxmappane.templ. That function is called on zoom action and also on changing visibility of layers.

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Tom Chadwin
Sent: Tuesday, April 20, 2010 3:12 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Re: Viewer API GetLayer() and base layers

OK, I've got it working via AJAX now (without jQuery and JSON, actually, as
it's such a simple call), but I am left with having to make the AJAX request
repeatedly (every 2 seconds or so). Is there some event hook I can use so
that I only have to call this function when the map changes (zoom or change
layer visibility via the legend)?

Thanks for all the help

View this message in context: http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4931044.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
mapguide-users mailing list
mapguide-users at lists.osgeo.org

More information about the mapguide-users mailing list