[OpenLayers-Dev] Label decluttering

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Fri Jul 15 12:30:15 EDT 2011


On Jul 15, 2011, at 12:03 PM, ext ray.diciaccio wrote:

> The other post about decluttering spurred this thought -- is there any
> support for decluttering the labels which can be displayed over features?

Nope.

> Right now they'll overlap each other. I'd like to have them move around so
> that they "find" a clear space for themselves. If one were to implement
> something like this, would the logic be working on it down at the SVG level?

Probably. You'd need to use font metrics + other related properties to figure
out how big the text is, and adjust its location appropriately; a fix like this
is likely going to require a fair amount of mucking about at the low levels
of the renderers.

-- Chris

> Thanks,
> -Ray
> 
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Label-decluttering-tp6587358p6587358.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev



More information about the Dev mailing list