[mapguide-users] [mapguide-announce] MapGuide Open Source 2.0.0released

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Mon Jul 14 08:39:14 EDT 2008


You can change this in the file "ajaxmappane.templ".
Around line 1666 you will find:

function RequestMapImage(reqId)
{
    url = webAgent + 
"?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG&VERSION=1.0.0&SESSION=" 
+ sessionId + "&MAPNAME=" + encodeComponent(mapName) + "&SEQ=" + 
Math.random()
    document.getElementById("overlay").innerHTML =
            '<img class="mapImage" name="' + reqId + '" id="mapImage" 
src="' + url + '" width=' + mapDevW + ' height=' + mapDevH + ' border=0 
vspace=0 hspace=0 style="visibility: hidden; width: ' + mapDevW + 'px; 
height: ' + mapDevH + 'px;" onload="return 
OnMapOverlayImageLoaded(event)">';
}

Modify the "FORMAT=PNG" part to your liking. If you need multiple 
formats, you could introduce a variable that the application sets.

Regards, Kenneth Skovhede, GEOGRAF A/S



Tom Chadwin skrev:
> JasonBirch wrote:
>   
>> Second, proper PNG8 support was added to the GETMAPIMAGE call while fixing
>> the black background of GIF/JPG images.  This is not leveraged by either
>> Fusion or the AJAX viewer by default, but you can modify these frameworks
>> to use PNG8 instead fairly easily.
>>     
>
> Hi Jason
>
> Any pointers on how to implement PNG8 or JPG for AJAX? Also, can non-tiled
> maps be rendered like this too? My problem is a very very slow application:
>
> http://maps.nnpa.org.uk:443/
>
> I'm guessing that reducing the file size of the rasters will speed things up
> a great deal.
>
> Thanks
>
> Tom
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080714/ff6804d2/attachment.html


More information about the mapguide-users mailing list