[mapguide-users] Tiled map using GETMAPIMAGE
Traian Stanev
traian.stanev at autodesk.com
Wed Apr 19 13:58:07 EDT 2006
And one additional comment... If you are compiling the server yourself
and willing to try new things, you can locate the function:
MgByteReader* MgServerRenderingService::RenderMap(MgMap* map,
MgSelection*
selection,
MgCoordinate* center,
double scale,
INT32 width,
INT32 height,
MgColor*
backgroundColor,
CREFSTRING format)
In ServerRenderingService.cpp around line 400 and in there change the
line:
GDRenderer dr(width, height, bgcolor, true);
To
GDRenderer dr(width, height, bgcolor, false);
This should make your GETMAPIMAGE generated tiles look a lot more like
the tiled AJAX viewer (GETTILEIMAGE) tiles at the expense of some
performance.
Traian
________________________________
From: Traian Stanev
Sent: Wednesday, April 19, 2006 1:44 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Tiled map using GETMAPIMAGE
Hi Velen,
Also, have in mind the comments I posted in the "Tiled Map" thread at:
http://www.nabble.com/RE%3A-MapAgent-parameters---Tiled-Map-p3783933.htm
l
Traian
________________________________
From: Walt Welton-Lair
Sent: Wednesday, April 19, 2006 1:26 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Tiled map using GETMAPIMAGE
The AJAX viewer uses GETTILEIMAGE, so if you want your tiles to look the
same then that's the API you need to use. GETMAPIMAGE was not designed
for use in a tiled context.
Walt
________________________________
From: velen [mailto:vliang at thecarbonproject.com]
Sent: Wednesday, April 19, 2006 1:17 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Tiled map using GETMAPIMAGE
Hello,
We were able to generate tiled map using GETMAPIMAGE from a .net windows
form; below is the screen shot. As you can see, in the sample Sheboygan
map, some "District" numbers were chopped off in the same tile or showed
in the adjacent tiles. I understood this is probably because each tile
get rendered individually, but is there a solution for making tiles look
likes what ajaxviewer does?
Thanks for your help in advance,
Velen
More information about the Mapguide-users
mailing list