Matt-Jensen / ember-cli-g-maps

Deprecated Google Maps Addon
http://matt-jensen.github.io/ember-cli-g-maps
MIT License
59 stars 31 forks source link

Zoom resets to initial value #110

Closed maxymczech closed 6 years ago

maxymczech commented 6 years ago

I have this in my hbs template: {{g-maps map=map lat=model.lat lng=model.lng markers=markers draggable=true showMapTypeControl=true showScaleControl=false disableDefaultUI=false clickableIcons=false fullscreenControl=false scrollwheel=false }}

This works great but of course it shows me all the continents etc. But if I add zoom attribute like zoom=14, I am then unable to resize the map via user interaction, it keeps returning zoom to initial value of 14.

Matt-Jensen commented 6 years ago

Since this is now a deprecated project it is strongly encouraged that you use ember-google-maps if your able to make that transition.

maxymczech commented 6 years ago

Ok, so the problem was that I had

{{g-maps zoom=14}}

and what I needed was a binding to some property:

{{g-maps zoom=mapZoom}}