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-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Tom Chadwin Sent: Tuesday, April 20, 2010 3:12 PM To: mapguide-users@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 Tom -- 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users