[Chameleon] PrintProduction: visible coordinates, empty map
Attila Berényi
aberenyi at burken.hu
Tue Jan 22 04:09:45 EST 2008
Hi,
I've finally found where the problem is located at. In the preview.php
(around the 511th row), there is paste image function.
// paste the map onto the canvas original
$o_img_canvas->pasteImage( $o_img_map, -1, $n_pix_whitespace_left,
$n_pix_whitespace_top);
This is the function what doen't work correctly because if I change
(around the 518th row) the
return $o_img_canvas;
to
return $o_img_map;
it displays the map. Although it doesn't have frame, title, coordinates
in the corners it's better than the empty white map box.
I've found this around the 679th row:
//TODO: fix me when pasteImage is fixed (bug 463)
Do anyone know where is this bug report located at or how to solve it?
Thanks in advance,
Attila
Julien-Samuel Lacroix írta:
> Hi,
>
> 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...
>
> Julien
>
> Attila Berényi wrote:
>> Hi,
>>
>> 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...
>>
>> Any other idea?
>>
>> Thanks,
>>
>> Attila
>>
>> Julien-Samuel Lacroix írta:
>>
>>> Hi,
>>>
>>> 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.
>>>
>>> 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.
>>>
>>> Julien
>>>
>>> <?php
>>>
>>> // define variables
>>> define( "MAPFILE", "gmap75.map" );
>>>
>>> if (!extension_loaded("MapScript"))
>>> {
>>> dl("php_mapscript_40." . PHP_SHLIB_SUFFIX);
>>> }
>>>
>>> // open map
>>> $oMap = ms_newMapObj( MAPFILE, dirname( MAPFILE ) );
>>>
>>> $oMap->selectoutputformat("png");
>>> // draw map
>>> $oImage = $oMap->draw();
>>>
>>> // set header
>>> header("Content-type: image/png");
>>>
>>> // output map
>>> $url = $oImage->saveImage("");
>>>
>>> ?>
>>>
>>> Attila Berényi wrote:
>>>
>>>> Hi there,
>>>>
>>>> I've the same problem described here
>>>> (http://lists.maptools.org/pipermail/chameleon/2006-May/004018.html),
>>>> but recompiling PHP with the newest GD didn't solve the problem.
>>>> Any other idea?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Attila
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> _______________________________________________
>>>> Chameleon mailing list
>>>> Chameleon at lists.maptools.org
>>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20080122/8cb9a49a/attachment.html
More information about the Chameleon
mailing list