<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">Hi,<br>
<br>
I've finally found where the problem is located at. In the preview.php
(around the 511th row), there is paste image function.<br>
<br>
// paste the map onto the canvas original<br>
$o_img_canvas->pasteImage( $o_img_map, -1, $n_pix_whitespace_left,
$n_pix_whitespace_top);<br>
<br>
This is the function what doen't work correctly because if I change
(around the 518th row) the<br>
<br>
return $o_img_canvas;<br>
<br>
to<br>
<br>
</font></font><font size="-1"><font face="Arial">return $o_img_map;<br>
<br>
it displays the map. Although it doesn't have frame, title, coordinates
in the corners it's better than the empty white map box.<br>
</font></font><font size="-1"><font face="Arial"><br>
I've found this around the 679th row:<br>
<br>
//TODO: fix me when pasteImage is fixed (bug 463)<br>
<br>
Do anyone know where is this bug report located at or how to solve it?<br>
<br>
Thanks in advance,<br>
<br>
Attila<br>
<br>
</font></font><br>
<br>
Julien-Samuel Lacroix írta:
<blockquote cite="mid:47950E83.9040004@mapgears.com" type="cite">Hi,
<br>
<br>
Then it's probaly something with your installation. If you don't have
any error message appearing and the map works fine outside of the
widget it means you'll need to do some debugging. In the widget file
preview.php, You can place a bunch of echo in hte function render image
to see if it crash somewhere maybe...
<br>
<br>
Julien
<br>
<br>
Attila Berényi wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
Thanks for the fast answer. I've tried this, and it works perfectly
(draws the map), so I'm totally confused, because the widget doesn't
display the map content at all...
<br>
<br>
Any other idea?
<br>
<br>
Thanks,
<br>
<br>
Attila
<br>
<br>
Julien-Samuel Lacroix írta:
<br>
<br>
<blockquote type="cite">Hi,
<br>
<br>
If you got no error in any logfile and you think your PHP/MapScript
installation is correct you should probably try your session mapfile
with a simple php script.
<br>
<br>
To get your session mapfile, search in the directory where the session
are stored for your SID. In there you will have mapfiles. Take the last
one and try it with the following code.
<br>
<br>
Julien
<br>
<br>
<?php
<br>
<br>
// define variables
<br>
define( "MAPFILE", "gmap75.map" );
<br>
<br>
if (!extension_loaded("MapScript"))
<br>
{
<br>
dl("php_mapscript_40." . PHP_SHLIB_SUFFIX);
<br>
}
<br>
<br>
// open map
<br>
$oMap = ms_newMapObj( MAPFILE, dirname( MAPFILE ) );
<br>
<br>
$oMap->selectoutputformat("png");
<br>
// draw map
<br>
$oImage = $oMap->draw();
<br>
<br>
// set header
<br>
header("Content-type: image/png");
<br>
<br>
// output map
<br>
$url = $oImage->saveImage("");
<br>
<br>
?>
<br>
<br>
Attila Berényi wrote:
<br>
<br>
<blockquote type="cite">Hi there,
<br>
<br>
I've the same problem described here
(<a class="moz-txt-link-freetext" href="http://lists.maptools.org/pipermail/chameleon/2006-May/004018.html">http://lists.maptools.org/pipermail/chameleon/2006-May/004018.html</a>),
but recompiling PHP with the newest GD didn't solve the problem.
<br>
Any other idea?
<br>
<br>
Thanks in advance,
<br>
<br>
Attila
<br>
<br>
<br>
------------------------------------------------------------------------
<br>
<br>
_______________________________________________
<br>
Chameleon mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</a>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
</body>
</html>