I have a bunch of leaflet polygons on a map I created. Each polygon represents something different. A specific set of information is displayed in a popup depending on the pa
Since some time Leaflet has built-in getCenter() method:
polygon.getBounds().getCenter();