MapGuide Open Source:  Home |  Download |  Internals

Ticket #409 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Rendering: black background with FORMAT!=PNG inside ajaxmappane.templ

Reported by: ulysess Assigned to: trevorwekel
Priority: medium Milestone: 2.0
Component: Rendering Service Version: 2.0.0
Severity: major Keywords: rendering, ajaxmappane, format
Cc: External ID: 1052718

Description

I'm using WindowsXP and MapguideOS 2 RC1, but the problem is the same in Beta. Not tested with 1.2.

When I change in the url the variable FORMAT={GIF | JPG | JPEG} (another different to PNG), the map show the background in black. Screenshot included.

Attachments

errorMapguide2.jpg (58.1 kB) - added by ulysess on 01/28/08 06:35:53.
rendering_problems

Change History

01/28/08 06:35:53 changed by ulysess

  • attachment errorMapguide2.jpg added.

rendering_problems

(follow-up: ↓ 2 ) 01/29/08 01:02:31 changed by tomfukushima

Can someone check to see if this happens in MGOS 1.2 as well? Thanks, Tom

(in reply to: ↑ 1 ) 01/29/08 03:11:11 changed by ulysess

Replying to tomfukushima:

Can someone check to see if this happens in MGOS 1.2 as well? Thanks, Tom

Tested. This doesn't happens with the MGOS 1.2.

Sometimes when I use the zoom in/out, show a black background while is loading, but finally show the map (1.2)

I use WinXP+IIS+PHP with default installation on both cases (1.2 and 2.0).

02/11/08 06:03:24 changed by ulysess

Tried with RC2. The same problems.

02/13/08 07:48:06 changed by ulysess

Tried with RC3. The same problems. I think maybe is a problem with the transparent background color.

02/21/08 10:20:02 changed by ulysess

Doesn't tested with RC4 yet, but I've tried to change in bin\serverconfig.ini the renderer from AGG to GD, and with GD everythings works fine (PNG, JPG and GIF).

So the problem is the AGG renderer.

02/26/08 18:09:41 changed by trevorwekel

  • owner set to trevorwekel.
  • status changed from new to assigned.
  • external_id set to 1052718.

02/26/08 21:08:14 changed by trevorwekel

  • status changed from assigned to closed.
  • resolution set to fixed.

Fix submitted for 2.0.x stream in http://trac.osgeo.org/mapguide/changeset/3028 and for trunk in http://trac.osgeo.org/mapguide/changeset/3029

Support for GIF has been fixed and PNG8 support has been implemented. The following formats will now work in ajaxmappane.templ:

PNG:  32 bit PNG with alpha
PNG8: 8 bit indexed color PNG with transparency support
GIF: 8 bit indexed color GIF with transparency support
JPG:  24 bit JPG image with no transparency

Also added experimental PNG8 tile support for 2.0.x stream http://trac.osgeo.org/mapguide/changeset/3030 and trunk http://trac.osgeo.org/mapguide/changeset/3031

Tiled images can now be rendered and served as:

PNG:  32 bit PNG with alpha
PNG8: 8 bit indexed color PNG with transparency support
JPG:  24 bit JPG image with no transparency

02/29/08 12:16:07 changed by trevorwekel

The MapGuide Server renders all tiled images in the same format. This is controlled by the serverconfig.ini file "ImageFormat" parameter.

ImageFormat = PNG8

will cause all images to be rendered and served as PNG8.