Geovation / labelgun

🏷️ reducing label clutter across mapping libraries
https://geovation.github.io/labelgun/
113 stars 10 forks source link

Works with all geometries? #14

Closed tomchadwin closed 7 years ago

tomchadwin commented 7 years ago

Probably a silly question, but does this work with lines and polygons?

JamesLMilner commented 7 years ago

Anything that you can provide a bounding box for! For polygons some libraries have a getBoundingBox function or similar, lines probably a little more work as you'd have to write the function yourself and would require some maths.

tomchadwin commented 7 years ago

OK. I suspect to increase usage of this, it would be worth coding such examples.