reducing label clutter across mapping libraries
Labelgun is a mapping library agnostic labelling engine. It allows you to avoid cluttering in mapping popups and labels, providing precedence to labels of your choice.
The library makes three assumptions:
– Each label has a bounding rectangle (Min X, Min Y, Max X, Max Y)
– Each label has a weight
– You can provide a function that will hide and show a label (e.g. through CSS class or JavaScript function)