gmapjs 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1c51f568691e4126e067ea0addcb25f889f0bd8
4
- data.tar.gz: 299bd8f1a8f45a2f7b4db047018b7bb57b50bdd5
3
+ metadata.gz: 9ac2822b59455f8f6d60525d27de5e1d0053f704
4
+ data.tar.gz: 9171566a378791376d3bb491ba0803f22a8ba9f0
5
5
  SHA512:
6
- metadata.gz: 7dc0e3a031c2b9a7622812d2682259e3075d2016941c8ca3837ff5fe0b405fe7f49fe118fc63885b663888272385f41987335cd5c10202cb804619b96f9733a4
7
- data.tar.gz: cb84d7f91c3266e996b8eca93b5df09a88d293af9a2c907d3fa700b6ec8a74095b112bdb7156d0ceaa850dd8244a67d0dc2198b302d58bb512249658c0c43590
6
+ metadata.gz: 2762901b6db0c0225cad64557fa9481d5f8500fd9a92465d1593676e208d1dd1c177af2b99e9dc69062af2fe809b5077f0c09a303b7996417f33a5aebf6b909e
7
+ data.tar.gz: 2cba8486b162a6b99d7875b4e03ebcbc9786527bb4326b270f4ef00d10ebd02729df7e5bedeb5ff69f676965367c463af4967a5117424e21fce6079f0416ef1e
@@ -1,3 +1,3 @@
1
1
  module Gmapjs
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -165,7 +165,6 @@ function gmap_with_markers(options) {
165
165
 
166
166
  if (markerData.hasOwnProperty('info') && (typeof markerData.info == 'string' ||
167
167
  (typeof markerData.info === 'object' && typeof markerData.info.appendChild === 'function'))) {
168
-
169
168
  infowindow = new google.maps.InfoWindow({
170
169
  content: markerData.info
171
170
  });
@@ -269,11 +268,13 @@ function gmap_with_markers(options) {
269
268
  options.shape.hasOwnProperty('coords') && options.shape.hasOwnProperty('type')) {
270
269
  markerOpts.marker_shape = options.shape;
271
270
  }
272
-
273
- if (options.hasOwnProperty('zoomControlOptions:') && typeof options.zoomControlOptions === "object"){
274
- self.map_options.zoomControlOptions = options.zoomControlOptions;
271
+
272
+ if (options.map_options.hasOwnProperty('zoomControlOptions') && typeof options.map_options.zoomControlOptions === "object"){
273
+ self.map_options.zoomControlOptions = options.map_options.zoomControlOptions;
274
+ }
275
+ if (options.map_options.hasOwnProperty('scrollwheel') && typeof options.map_options.scrollwheel === "boolean"){
276
+ self.map_options.scrollwheel = options.scrollwheel;
275
277
  }
276
-
277
278
  if (self.test_options(options)) {
278
279
  self.map_options.center = typeof options.center === 'string' ?
279
280
  new google.maps.LatLng(39.50, -98.35) :
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmapjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Davitt