0

Looking at this question Google Maps v3 fitBounds() Zoom too close for single marker

seems the easy way is to pass maxZoom option

var map = new google.maps.Map(document.getElementById("map"), { maxZoom: 14 });

Looking at the source code of the plugin, seems there is a hook for that wpsight_listings_map_options

Now I'm confused on how to use the hook.

Christian Gollhardt
  • 16,510
  • 17
  • 74
  • 111
Antony Gibbs
  • 1,321
  • 14
  • 24

1 Answers1

0

Turns out I found my way... and perhaps it could help others.

Here is what I've added to functions.php

add_filter( 'wpsight_listings_map_options', 'wpsight_listings_maxZoom' );
function wpsight_listings_maxZoom( $opt ) { 

  $opt['map']['maxZoom'] = 16;

  return $opt;

}
Antony Gibbs
  • 1,321
  • 14
  • 24