-1

I have a wordpress site with WP-bakery(visual composer) and have embedded a google map with an API key. Suddenly the map is fully zoomed in all the time. I try to change the scale in WP-bakery widget but it will not show right on homepage. Ex: www.admemo.net

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
  • 1
    You "have embedded a google map" - is this with the Google Maps [Javascript API](https://developers.google.com/maps/documentation/javascript/), or the [Embed API](https://developers.google.com/maps/documentation/embed/start)? – duncan Mar 01 '18 at 10:01
  • I assume you're following the instructions [here](https://kb.wpbakery.com/docs/wpbakery-page-builder-how-tos/how-to-insert-google-maps/) What does your embed code look like? Add it to your question please. – duncan Mar 01 '18 at 10:06

1 Answers1

0

In your script you should be able to change the zoom value like so :

var map = new google.maps.Map(document.getElementById('map'), {
   zoom: 15
});
Noémie Kerroux
  • 350
  • 3
  • 14