Title: Shortcode for fitting markers
Last modified: January 3, 2019

---

# Shortcode for fitting markers

 *  Resolved [Djehuti](https://wordpress.org/support/users/djehuti/)
 * (@djehuti)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/shortcode-for-fitting-markers/)
 * I’m looking for the setting which determines whether or not markers will be fitted
   into the displayed map.
 * I’ve found the setting in the default values, but would like some maps to have
   it and others not.
    -  This topic was modified 7 years, 4 months ago by [Djehuti](https://wordpress.org/support/users/djehuti/).
    -  This topic was modified 7 years, 4 months ago by [Djehuti](https://wordpress.org/support/users/djehuti/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Djehuti](https://wordpress.org/support/users/djehuti/)
 * (@djehuti)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/shortcode-for-fitting-markers/#post-11049911)
 * Found it in the files:
 * `fit_markers=true`
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/shortcode-for-fitting-markers/#post-11049982)
 * Yep. I believe I’ve pushed the changes to the shortcodes which allow “assumed
   boolean” fields too. So you could just type `[leaflet-map fit_markers]` and it
   will assume that field to be `true`; “true” and “1” work just as well.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode for fitting markers’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-map/assets/icon-256x256.png?rev=1693083)
 * [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-map/reviews/)

## Tags

 * [fit](https://wordpress.org/support/topic-tag/fit/)
 * [marker](https://wordpress.org/support/topic-tag/marker/)

 * 2 replies
 * 2 participants
 * Last reply from: [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/shortcode-for-fitting-markers/#post-11049982)
 * Status: resolved