googlemaps
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -47,3 +47,4 @@ /** | ||
if (args.markers == null) { | ||
// If a marker param or path param is provided then center and zoom param is not required | ||
if (args.markers == null && args.path == null) { | ||
if (args.center == null) { | ||
@@ -55,3 +56,5 @@ return _errorHandler(callback, new Error('params.center is required')); | ||
} | ||
} else { | ||
} | ||
if (args.markers != null) { | ||
try { | ||
@@ -58,0 +61,0 @@ args.markers = _parseMarkers(args.markers); |
{ | ||
"name": "googlemaps", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lib/index", | ||
@@ -5,0 +5,0 @@ "description": "A simple way to query the Google Maps API from Node.js", |
49093
1117