• Resolved ZeroGravity

    (@zerogravity)


    What’s the easiest way to change the zoom on the map. I spotted bpfwp_map.map_options.zoom in the files but not 100% sure on how and where to set it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi zero,

    There is no option in the plugin to adjust the default Zoom. The only way would be to alter the plugin code for the embed. For example, in that same map.js file you referenced, you will find the following line of code:

    bpMapIframe.src = '//maps.google.com/maps?output=embed&q=' + data.addressURI;

    If you added Google’s zoom parameter to the end of this, it would allow you to change it. For example:

    bpMapIframe.src = '//maps.google.com/maps?output=embed&q=' + data.addressURI + '&z=13';

    You would then just need to change the 13 to whatever you want.

    Please keep in mind that any changes you make directly to the plugin code will be overwritten if/when you udpate the plugin.

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks for your reply @jaysupport. It would be nice if this could be added as a feature in the settings or having a filter that would enable updating the iFrame source.

    I have made updates to plugin cores before and there is always that once where you forgot to reapply it. ??

    Plugin Support jaysupport

    (@jaysupport)

    That’s completely understandable. We’ll definitely note it down as a feature request and, should we get more demand, we can look into implementing something like this in a future update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Map Zoom’ is closed to new replies.