Point Labeling with Sliding Labels in Interactive Maps

  • Nadine Schwartges
  • Jan-Henrik Haunert
  • Alexander Wolff
  • Dennis Zwiebler
Part of the Lecture Notes in Geoinformation and Cartography book series (LNGC)


We consider the problem of labeling point objects in interactive maps where the user can pan and zoom continuously. We allow labels to slide along the point they label. We assume that each point comes with a priority; the higher the priority the more important it is to label the point. Given a dynamic scenario with user interactions, our objective is to maintain an occlusion-free labeling such that, on average over time, the sum of the priorities of the labeled points is maximized. Even the static version of the problem is known to be NP-hard. We present an efficient and effective heuristic that labels points with sliding labels in real time. Our heuristic proceeds incrementally; it tries to insert one label at a time, possibly pushing away labels that have already been placed. To quickly predict which labels have to be pushed away, we use a geometric data structure that partitions screen space. With this data structure we were able to double the frame rate when rendering maps with many labels.


Dynamic maps Interactive maps Automated map labeling Sliding labels Point labeling 


  1. Adamaszek A, Wiese A (2013) Approximation schemes for maximum weight independent set of rectangles. In: Proceedings of 54th annual IEEE symposium on foundations of computer science (FOCS’13), pp 400–409Google Scholar
  2. Agarwal PK, van Kreveld M, Suri S (1998) Label placement by maximum independent set in rectangles. Comput Geom Theory Appl 11:209–218CrossRefGoogle Scholar
  3. Alinhac G (1962) Cartographie Théorique et Technique, chapter IV. Institut Géographique National, ParisGoogle Scholar
  4. Been K, Daiches E, Yap C (2006) Dynamic map labeling. IEEE Trans Visual Comput Graphics 12(5):773–780Google Scholar
  5. Been K, Nöllenburg M, Poon SH, Wolff A (2010) Optimizing active ranges for consistent dynamic map labeling. Comput Geom Theory Appl 43(3):312–328. http://dx.doi.org/10.1016/j.comgeo.2009.03.006
  6. Chalermsook P, Chuzhoy J (2009) Maximum independent set of rectangles. In: Proceedings of 20th annual ACM-SIAM symposium on discrete algorithms (SODA’09), pp 892–901Google Scholar
  7. de Berg M, Cheong O, van Kreveld M, Overmars M (2008) Computational geometry: algorithms and applications, chapter 6, 3rd edn. Springer, BerlinGoogle Scholar
  8. Erlebach T, Jansen K, Seidel E (2005) Polynomial-time approximation schemes for geometric intersection graphs. SIAM J Comput 34(6):1302–1323CrossRefGoogle Scholar
  9. Erlebach T, Hagerup T, Jansen K, Minzlaff M, Wolff A (2009) Trimming of graphs, with application to point labeling. Theory Comput Syst 47(3):613–636. http://dx.doi.org/10.1007/s00224-009-9184-8
  10. Fowler RJ, Paterson MS, Tanimoto SL (1981) Optimal packing and covering in the plane are NP-complete. Inform Process Lett 12(3):133–137CrossRefGoogle Scholar
  11. Gemsa A, Niedermann B, Nöllenburg M (2013) Trajectory-based dynamic map labeling. In: Cai L, Cheng SW, Lam TW (eds) Proceedings of 24th annual international symposium on algorithms computation (ISAAC’13). Lecture notes in computer science, vol 8283. Springer, pp 413–423. http://dx.doi.org/10.1007/978-3-642-45030-3_39
  12. Gemsa A, Nöllenburg M, Rutter I (2011a) Consistent labeling of rotating maps. In: Dehne F, Iacono J, Sack JR (eds) Proceedings of 12th international symposium on algorithms and data structures (WADS’11). Lecture notes in computer science, vol 6844. Springer, pp 451–462. http://dx.doi.org/10.1007/978-3-642-22300-6_38
  13. Gemsa A, Nöllenburg M, Rutter I (2011b) Sliding labels for dynamic point labeling. In: Proceedings of 23th Canadian conference on computational geometry (CCCG’11), pp 205–210Google Scholar
  14. Goralski R, Gold CM, Dakowicz M (2007) Application of the kinetic Voronoi diagram to the real-time navigation of marine vessels. In: Proceedings of 6th international conference on computer information systems and industrial management applications (CISIM’07), pp 129–134Google Scholar
  15. Harrie L, Stigmar H, Koivula T, Lehto L (2005) An algorithm for icon labelling on a real-time map. In: Fisher PF (ed) Proceedings of 11th international symposium on spatial data handling (SDH’05), pp 493–507Google Scholar
  16. Imhof E (1975) Positioning names on maps. Am Cartogr 2(2):128–144CrossRefGoogle Scholar
  17. Luboschik M, Schumann H, Cords H (2008) Particle-based labeling: fast point-feature labeling without obscuring other visual features. IEEE Trans Visual Comput Graphics 14(6):1237–1244. http://dx.doi.org/10.1109/TVCG.2008.152
  18. Maass S, Döllner J (2006) Efficient view management for dynamic annotation placement in virtual landscapes. In: Butz A, Fischer B, Krüger A, Oliver P (eds) Proceedings of 6th international symposium on smart graphics (SG’06). Lecture notes in computer science, vol 4073. Springer, Berlin, pp 1–12Google Scholar
  19. Mote KD (2007) Fast point-feature label placement for dynamic visualizations. Inf Visual 6(4): 249–260. http://dx.doi.org/10.1057/palgrave.ivs.9500163
  20. Ooms K, Kellens W, Fack V (2009) Dynamic map labelling for users. In: Cartwright W, Lopez P (eds) Proceedings of the 24th international cartographic conference (ICC’09)Google Scholar
  21. Poon SH, Shin CS, Strijk T, Uno T, Wolff A (2003) Labeling points with weights. Algorithmica 38(2):341–362. http://dx.doi.org/10.1007/s00453-003-1063-0
  22. van Kreveld M, Strijk T, Wolff A (1999) Point labeling with sliding labels. Comput Geom Theory Appl 13:21–47. http://dx.doi.org/10.1016/S0925-7721(99)00005-X
  23. Zhang Q, Harrie L (2006) Real-time map labelling for mobile applications. Comput Environ Urban Syst 30(6):773–783CrossRefGoogle Scholar

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Nadine Schwartges
    • 1
  • Jan-Henrik Haunert
    • 2
  • Alexander Wolff
    • 1
  • Dennis Zwiebler
    • 1
  1. 1.Chair of Computer Science IUniversity of WürzburgWürzburgGermany
  2. 2.Institut für Geoinformatik und FernerkundungUniversity of OsnabrückOsnabrückGermany

Personalised recommendations