[mapguide-users] RE: [mapguide-announce] MapGuide Open Source
2.0.0released
Mike Adair
madair at dmsolutions.ca
Fri Feb 29 09:38:49 EST 2008
The OpenLayers MapGuide Layer type supports specifying different image
formats by including a 'format' parameter in the params hash passed to
the layer constructor. This will override the default value of 'PNG'.
We currently don't support that in Fusion but it should be fairly easy
to add it to the Extension element of the MapGroup in the
ApplicationDefinition xml file.
In my tests with RC4 and Tiled maps, the format parameter seems to be
ignored.
Mike
Zac Spitzer 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. Note, you will not want to do this for maps that require more than 256 colours (including antialiasing) in a single view. If you are doing this with Fusion, search for the string GETMAPIMAGE in these files (I'm not sure which is actually used) and close to this string replace PNG with PNG8:
>>
>> /fusion/lib/OpenLayers/OpenLayers.js
>> /fusion/lib/OpenLayers/OpenLayersCompressed.js
>>
>> On one of my test maps, using PNG8 looks just about as good as PNG24 and means that at full screen the image went from 500kb to 120kb. This will make a huge difference to internet users.
>>
>
> is there a way of enabling this for GETTILEDIMAGE?
>
>
More information about the mapguide-users
mailing list