[OSM-talk] Norton, the village in the sea?

SteveC steve at asklater.com
Wed May 10 09:07:12 BST 2006


* @ 09/05/06 11:30:36 PM openstreetmap-L at gj0.net wrote:
> Nick
> See 
> http://wiki.openstreetmap.org/index.php?title=Image:Yarmouth.png&rcid=6220
> 
> The label was placed deliberately, for rendering purposes,  so that it
> didn't obscure the streets.  It would make sense for the node to
> actually be in the place it is supposed to label.  Any ideas about a
> better way of doing this?

In a past life I did label placement and electrostatic-spring network
layout algorithms.

Put a spring with some spring constant between the labels and their
actual unmoving nodes. Then make all the labels repulsive with some
constant so that they move away from each other but cant stray from
their nodes because of the spring. Iterate the simulation with friction
and it tends to end up with nice label placement, after you play with
the two constants.

XSLT is turing complete right?

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/




More information about the talk mailing list