dburles/meteor-google-maps

Google Map maxZoom seems to not work

Closed this issue · 1 comments

Fotso commented

Hello,
I have problem with the mapOptions of my map.
I would like to restrain the map zoom to 15 because I am doing a Geospatial Queries.
My code looks like this

Template.mypage.helpers({
  mapOptions: function(){
    if(GoogleMaps.loaded()){
      return {
        center: new google.maps.LatLng(48.8520442,2.3346246),
        zoom: 13,
        maxZoom: 15
      }
    }
  }
})

Unfortunately the maxZoom seems to not work...
Are they any other possibility to restrain the zoom ?

Fotso commented

Alright I posted a solution on stackoverflow

The solution was pretty simple, maxZoom and minZoom have to be declared in order to work !