gmapjs 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gmapjs/version.rb +1 -1
- data/vendor/assets/javascripts/google_map.js +6 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ac2822b59455f8f6d60525d27de5e1d0053f704
|
4
|
+
data.tar.gz: 9171566a378791376d3bb491ba0803f22a8ba9f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2762901b6db0c0225cad64557fa9481d5f8500fd9a92465d1593676e208d1dd1c177af2b99e9dc69062af2fe809b5077f0c09a303b7996417f33a5aebf6b909e
|
7
|
+
data.tar.gz: 2cba8486b162a6b99d7875b4e03ebcbc9786527bb4326b270f4ef00d10ebd02729df7e5bedeb5ff69f676965367c463af4967a5117424e21fce6079f0416ef1e
|
data/lib/gmapjs/version.rb
CHANGED
@@ -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
|
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) :
|