[Chameleon] PrintProduction: visible coordinates, empty map

Attila Berényi aberenyi at burken.hu
Mon Jan 21 02:42:49 EST 2008


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
>


More information about the Chameleon mailing list