[mapserver-users] clipping symbols at tile boundary?
Christy Nieman
cnieman at dmsolutions.ca
Mon Jun 22 04:27:02 PDT 2009
Hi,
You can put "labelcache_map_edge_buffer" "-10" in the WEB block
metadata. This will ensure that no labels are drawn within 10 pixels of
a tile boundary (you can change the value to increase or decrease the
buffer zone)
E.g.:
MAP
...
WEB
METADATA
"labelcache_map_edge_buffer" "-10"
END
...
END
...
END
Christy
BrainDrain wrote:
> OL gutter helps with symbols but breaks labels. PARTIALS false doesn't help
> in this case. I didn't find solution how to avoid breaking labels while
> using gutter. I suppose the only one is to turn off gutter (prebuild OL map
> clone with no gutter) on scales when symbols are turned off (if symbols are
> visible in large scales then labels uses large font size and gutter works
> fine with labels).
>
> Aaron Racicot wrote:
>
>> Wendell,
>>
>> Look at 'gutter' in OpenLayers. It will allow you to get tiles slightly
>> larger from your Mapserver WMS to get rid of some of the artifacts:
>>
>> http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Lay
>> er.gutter
>>
>> Hope that helps...
>>
>> Aaron
>>
>> --------------------------
>> Aaron Racicot
>> Z-Pulley Inc.
>>
>>
>> -----Original Message-----
>> From: mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Wendell
>> Turner
>> Sent: Thursday, June 18, 2009 4:59 PM
>> To: mapserver-users at lists.osgeo.org
>> Subject: [mapserver-users] clipping symbols at tile boundary?
>>
>> (this must be basic, but here goes anyway...)
>>
>> I'm using Mapserver 5.2 with OpenLayers 2.7. I have a
>> vector mapserver layer with point objects (shown with circle
>> symbols) on it. The vector layer referenced via
>> OpenLayers.Layer.WMS and is tiled.
>>
>> The circles are displayed in the tile that the center is on,
>> but not the adjacent tiles. That is, if a circle is near
>> the edge, part of the circle is chopped off.
>>
>> Is that what 'BUFFER 10' fixes? What about 'PARTIALS
>> FALSE'? That seems to be just for labels, but that only
>> shows the label when it completely lies within the tile.
>> Do I need to turn off tiling completely?
>>
>> Thanks,
>>
>> Wendell
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>
>
More information about the MapServer-users
mailing list