[mapguide-users] FF 3 ...AJAX viewer does not load map

BruceWeston ross at ime.co.uk
Fri Jun 20 06:22:06 EDT 2008


That helps load the map but everything else is a bit flaky - especially ajax
mouse zooms.


Tom Chadwin wrote:
> 
> That works to a certain extent (FF3 on XPSP3, MGOS2 on W2K3 IIS PHP). The
> map (and legend) now loads, but my rasters do not always show up, and
> sometimes I cannot zoom. I believe the page can be seen from the outside
> world for anyone who wishes to test (but please bear in mind that it is
> still in development, so changes are ongoing):
> 
> http://maps.northumberlandnationalpark.org.uk:443/
> 
> Cheers
> 
> Tom
> 
> 
> Le Ingenieur Inconnu wrote:
>> 
>> Hi!
>> The problem seems to be in the ajaxmappane.templ. RequestMap() uses a
>> POST in the XMLHttpRequest but it seems that the MapAgent does not like
>> some of the headers and the reply is empty. A quick fix for this has been
>> to change it to a GET, appending the parameter list.
>> 
>> function RequestMap(scale, centerX, centerY, showGroups, hideGroups,
>> showLayers, hideLayers)
>> {
>>    // ...
>>     mr = CreateRequestHandler();
>>     req = new MapRequest(mr, ++mapId);
>>     // -- FF3 Fix
>>     mr.open("GET", webAgent + "?" + reqParams, true);
>>     // -- Old code 
>>     //mr.open("POST", webAgent, true);
>>     mr.setRequestHeader("Content-Type",
>> "application/x-www-form-urlencoded");
>>     // ...
>> }
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/FF-3-...AJAX-viewer-does-not-load-map-tp17972103p18026490.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list