Reply To: Change Google Map Zoom

forums forums Circle Flip Support Change Google Map Zoom Reply To: Change Google Map Zoom


Omar
Keymaster
#4221

Hello Kristen,

The Zoom Level is set to 10 by default, since you can zoom in and out using the mouse scroll wheel, or the zoom in and out buttons

If you want to set the initial zoom level to something closer, please edit the file
wp-content/themes/circleflip/creiden-framework/content-builder/assets/js/blocks/circleflip-googlemaps-block.js

and find line 55 where zoom is set to 10

        scrollwheel: false,
        zoom: 10
       } );
       // the expandable code depends on this reference

and change it to something higher, for zooming in and something lower if you want to zoom out
for example:
zoom 18:
https://www.google.com.eg/maps/place/Oakland,+MO,+USA/@38.5754015,-90.3843175,18z/data=!4m2!3m1!1s0x87d8cc1ae66683bb:0x7163305289722b18
zoom 8:
https://www.google.com.eg/maps/place/Oakland,+MO,+USA/@38.5754015,-90.3843175,8z/data=!4m2!3m1!1s0x87d8cc1ae66683bb:0x7163305289722b18

Please note that you’ll have to clear the browser caches to see the effect (ctrl + shift + R)
Cheers