Map Ignores Zoom Setting in PHP
-
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?
- The topic ‘Map Ignores Zoom Setting in PHP’ is closed to new replies.