Skip to content

Commit

Permalink
scrollwheel option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asaf Shakarzy committed May 23, 2015
1 parent 4b1fe77 commit 78c31ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion addon/google-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default Em.Component.extend({
markerCache: Em.A(),
infoWindow: undefined,
currentLocation: false,
scrollwheel: true,
classNames: ['map-canvas'],
attributeBindings: ['style'],
width: '600px',
Expand Down Expand Up @@ -44,7 +45,8 @@ export default Em.Component.extend({
var container = this.$();
var options = {
zoom: this.get('zoom'),
mapTypeId: google.maps.MapTypeId.ROADMAP
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: this.get('scrollwheel')
};

this.getLocation().then(function(pos) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-idx-gmaps",
"version": "0.0.1",
"version": "0.0.2",
"description": "Ambitious Google Maps Component for Ember.js",
"directories": {
"doc": "doc",
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h2 id="title">Welcome to Ember.js</h2>


{{google-maps lat=lat lng=lng markers=markers zoom=zoom}}
{{google-maps lat=lat lng=lng markers=markers zoom=zoom scrollwheel=false}}

Lat: {{input value=lat}}, Lng: {{input value=lng}}
Zoom: {{input value=zoom}}
Expand Down

0 comments on commit 78c31ac

Please sign in to comment.