Skip to content

Commit

Permalink
Update google-map.js
Browse files Browse the repository at this point in the history
  • Loading branch information
OpakAlex committed Mar 23, 2015
1 parent 9b8eb74 commit 4dd5bd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/google-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ gmapView = Ember.Component.extend(AbstractMapMixin, {
};
map = new google.maps.Map(this.$().find(".map")[0], options);
marker = this.initMarker(map);
this.initAutocomplete(map, marker);
if (!this.get('disableAutocomplete')){
this.initAutocomplete(map, marker);
}
return google.maps.event.addListener(map, 'zoom_changed', (function(_this) {
return function() {
return _this.setZoom(map.getZoom());
Expand Down Expand Up @@ -74,4 +76,4 @@ gmapView = Ember.Component.extend(AbstractMapMixin, {
}
});

export default gmapView;
export default gmapView;

0 comments on commit 4dd5bd3

Please sign in to comment.