Title: Autofit map
Last modified: May 1, 2020

---

# Autofit map

 *  [torkeller](https://wordpress.org/support/users/torkeller/)
 * (@torkeller)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/autofit-map/)
 * Hi,
 * I saw that the markerclusterer.js script uses the map.fitBounds() function to
   fit markers into a marker cluster.
 * I would like it if auto-zoom and auto-center were possible for all markers on
   the map (with selection in the admin area).
 * map.fitBounds(boundaries); // auto zoom
    map.panToBounds(boundaries); // auto
   center
 * Thank you,

The topic ‘Autofit map’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/novo-map_617d85.svg)
 * [Novo-Map : your WP posts on custom google maps](https://wordpress.org/plugins/novo-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/novo-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/novo-map/)
 * [Active Topics](https://wordpress.org/support/plugin/novo-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/novo-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/novo-map/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [torkeller](https://wordpress.org/support/users/torkeller/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/autofit-map/)
 * Status: not resolved