[ka-Map-users] Bug in label rendering

Loïc MAZE lm at geosphere.fr
Tue Nov 14 11:01:47 EST 2006


I have increased the value of the $tileBuffer var in the tile_nocache.php 
file and it works perfectly now. This var seems to have the same purpose as 
the $metaBuffer var in the tile.php file. Sorry for the warning and hope 
this will be helpful for the others. Maybe it will be interesting the 
$tileBuffer var receive the same value as the $metaBuffer var (in config.php 
file).

Regards,
Loïc


----- Original Message ----- 
From: "Loïc MAZE" <lm at geosphere.fr>
To: "Christopher Schmidt" <crschmidt at crschmidt.net>
Cc: "Mailing de Ka-Map" <ka-map-users at lists.maptools.org>
Sent: Tuesday, November 14, 2006 3:24 PM
Subject: Re: [ka-Map-users] Bug in label rendering


> All my label layers have "PARTIALS OFF".
> Here's an example of the values I use in my mapfile :
>
> LABEL
>        FONT "times"
>        SIZE 14
>        TYPE TRUETYPE
>        BUFFER 0
>        COLOR 0 0 0
>        FORCE TRUE
>        OFFSET 0 0
>        PARTIALS OFF
>        POSITION CC
> END
>
> I have played a long time by changing those values but I have no result. I 
> can notice that if FORCE has FALSE value, the labels are not visible any 
> more (with TRUE value they are truncated), but it is probably not the 
> problem...
>
> Regards,
> Loïc
>
>
> ----- Original Message ----- 
> From: "Christopher Schmidt" <crschmidt at crschmidt.net>
> To: "Loïc MAZE" <lm at geosphere.fr>
> Cc: "Mailing de Ka-Map" <ka-map-users at lists.maptools.org>
> Sent: Tuesday, November 14, 2006 3:07 PM
> Subject: Re: [ka-Map-users] Bug in label rendering
>
>
>> On Tue, Nov 14, 2006 at 02:55:46PM +0100, Loïc MAZE wrote:
>>> Hi all,
>>>
>>> I have some troubles with the current version of Ka-map. I would like to 
>>> draw some labels thanks to the label object used by Mapserver to define 
>>> a label. They are well drawn by Ka-Map but they are often truncated at 
>>> tile boundaries. It happens when the label is too long to be contained 
>>> by one tile. It really seems like this bug : 
>>> http://bugzilla.maptools.org/show_bug.cgi?id=1379 . It is marked as 
>>> resolved for the 0.2 version of Ka-Map but changing the $metaBuffer var 
>>> (in config.php) doesn't work for me. I have played with the values of 
>>> the other vars contained in this file but I was unsuccessful.
>>
>> Does your mapfile have "PARTIALS OFF" on your label layers? This is
>> probably important: it prevents mapsever from trying to draw off the
>> edge of the map. If this isn't the case, ka-Map won't draw them
>> correctly regardless, because its edge label prevention is simply not
>> taken into account.
>>
>> I'd recommend trying that, and if it doesn't work, report back.
>>
>> Regards,
>> -- 
>> Christopher Schmidt
>> Web Developer
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users 



More information about the ka-Map-users mailing list