вторник, сентября 19, 2017

Non-Clustering Custom Place Labels


Planet of Sound was created by Dorothy to crowd-source the music playlist for an event they held in May of this year. That event is now over but the map still works and is well worth visiting. Not least for its magical non-clustering custom map labels.

The Planet of Sound map allows you to tag any location in the world with a song and a memory. If you don't want to add a song you can just browse the map to explore what songs other people associate with different places across the globe.

The map doesn't include any real place-name labels. In fact the only labels on this map are the song titles people have added to the map. What is particularly impressive is how the map avoids clustering and overlapping these custom labels. This is not a simple thing to achieve.

If you want to add your own non-clustering & non-overlapping labels to a map then you can should have a look at James Milner's Labelgun for reducing label clutter. The GitHub for Labelgun includes examples of the library being used with Leaflet, Esri and OpenLayers. If you check out these examples you can see how Labelgun works to avoid custom labels clustering and overlapping as you zoom in and out on the map.

Комментариев нет: