Skip to content

Auto-center on pins

Created by: slifty

We may want to allow for configurable centering in future, but in the short term the map should automatically center on whatever pins are rendered.

This can be done easily using map.fitBounds(bounds);