<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You can change this in the file "ajaxmappane.templ".<br>
Around line 1666 you will find:<br>
<br>
<tt>function RequestMapImage(reqId)<br>
{<br>
&nbsp;&nbsp;&nbsp; url = webAgent +
"?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&amp;FORMAT=PNG&amp;VERSION=1.0.0&amp;SESSION="
+ sessionId + "&amp;MAPNAME=" + encodeComponent(mapName) + "&amp;SEQ="
+ Math.random()<br>
&nbsp;&nbsp;&nbsp; document.getElementById("overlay").innerHTML =<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&lt;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)"&gt;';<br>
}</tt><br>
<br>
Modify the "FORMAT=PNG" part to your liking. If you need multiple
formats, you could introduce a variable that the application sets.<br>
<br>
<tt></tt>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Tom Chadwin skrev:
<blockquote cite="mid:18442961.post@talk.nabble.com" type="cite">
  <pre wrap="">
JasonBirch wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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:

<a class="moz-txt-link-freetext" href="http://maps.nnpa.org.uk:443/">http://maps.nnpa.org.uk:443/</a>

I'm guessing that reducing the file size of the rasters will speed things up
a great deal.

Thanks

Tom
  </pre>
</blockquote>
</body>
</html>