[mapguide-users] Re: Viewer API GetLayer() and base layers
Ivan.Milicevic at supranet.hr
Wed Apr 21 07:14:03 EDT 2010
For ajax request, adding Math.Random() or timestamp is world wide known method :)
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Tom Chadwin
Sent: Wednesday, April 21, 2010 12:53 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Re: Viewer API GetLayer() and base layers
That's the page Praveen pointed me towards, and which I was trying to use as
a model. However, the two events it shows you how to hook into are the
completion of the loading of the map, and OnSelectionChaged. I need to hook
into RequestMap(), which is a function, not an event of any kind, as far as
my limited understanding tells me.
Unless someone can give me a technique to achieve that, I'll go back to
hacking the original function, and am aware of the problem of losing that
customization when upgrading MapGuide.
One other issue I have is caching of my xmlhttp request. I can work around
this by adding a random parameter to the query, but realize this is a hack.
I am now experimenting with adding cache control headers on the server side.
Does anyone know of the best way to achieve this (fully cross-browser
View this message in context: http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4936267.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