polylabel

A JS library for finding optimal label position inside a polygon