I am looking for an algorithm that could determine the optimal location for placing labels next to objects on the map at different zoom levels.
Labels must be explicit:
- be as close as possible to their respective objects
- do not overlap
- have a reasonable font size at every zoom level.
In particular. Google Earth does it in a great way.
Any pointers would be highly appreciated, especially for pseudo-codes of various approaches or, even better, for real code in Python, Javascript or ActionScript.
source share