[Chameleon] PrintProduction: visible coordinates, empty map
Julien-Samuel Lacroix
jlacroix at mapgears.com
Mon Jan 21 16:28:35 EST 2008
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
>>
>>
>
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Chameleon
mailing list