• Resolved ashamun

    (@ashamun)


    Hey there. So I have an issue with the map zoom setting.

    I’m loading the map in a Bootstrap modal and have to use PHP. I’m calling the shortcode with:

    <?php echo do_shortcode( '[wpsl]' ); ?>

    When I do this, however, the map is completely zoomed out. You can zoom in just fine using the controls but it’s zoomed out by default. I even tried using zoom parameters in the shortcode like:

    <?php echo do_shortcode( '[wpsl="3"]' ); ?>

    but it’s still not working. Should I be doing this another way?

    I should mention that other than the zoom issue, everything else works perfectly (except for the autocomplete but that’s not a big deal to me). If I don’t use PHP and just use the normal shortcode in the normal wordpress editor, everything works like a charm.

    Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    There is no support for ‘zoom’ with the wpsl shortcode itself. It will auto adjust the zoom level based on the location of the used markers.

    This by itself can be disabled with this option on the settings page ‘Auto adjust the zoom level to make sure all markers are visible?’.

    Thread Starter ashamun

    (@ashamun)

    Thanks for the fast reply Tijmen. I unchecked the auto adjust option and it started working perfectly.

    Great plugin! Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Map Ignores Zoom Setting in PHP’ is closed to new replies.