Why do some point-objects on the map do not show its title? But Some of the point-objects can show its title,what kind of strategy does it based on ? I would like to show all the title of the objects , what should I do?
thanks!
you friend : liujun
ûÓл¥¶¯£¬ÄÄÀ´¹²Ê¶£¿Î¢ÈíµØͼMSN»¥¶¯ÎªÄãÌṩȫеØͼä¯ÀÀÌåÑ飡 Á¢¼´ÊÔÓã¡
刘君 ha scritto:
Why do some point-objects on the map do not show its title? But Some of
the point-objects can show its title,what kind of strategy does it based
on ? I would like to show all the title of the objects , what should I do?
There are two things that prevent a label from showing up:
- conflict with another, already drawn label (to avoid them
to draw one on top of the other and getting an unreadable
result)
- the label crossing the current request bounds (if you're using
tiling, each tile is a separate request).
For the first, add the following vendor option at
the end of your TextSymbolizer:
<VendorOption name="conflictResolution">false</VendorOption>
For the latter, if you still need to use tiling, I suggest
you look into GeoWebCache and its meta-tiling abilities.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.