dburles / meteor-google-maps

🗺 Meteor package for the Google Maps Javascript API v3
https://atmospherejs.com/dburles/google-maps
MIT License
196 stars 48 forks source link

Google Map maxZoom seems to not work #151

Closed Fotso closed 7 years ago

Fotso commented 7 years ago

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 7 years ago

Alright I posted a solution on stackoverflow

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