Skip to content

Commit 3909be9

Browse files
committed
Fixed issue with maxDistance and autoGeocode, fixed spelling error, removed the visualRefresh setting since it should no longer be needed
1 parent 8132e0f commit 3909be9

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.0.6 - 2015-03-24
1+
/*! jQuery Google Maps Store Locator - v2.0.6 - 2015-03-25
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

@@ -1177,7 +1177,7 @@
11771177
},
11781178

11791179
/**
1180-
* Checks distance of each location and setups up the locationset array
1180+
* Checks distance of each location and sets up the locationset array
11811181
*
11821182
* @param data {Object} location data object
11831183
* @param lat {number} origin latitude
@@ -1194,7 +1194,7 @@
11941194
}
11951195

11961196
// Create the array
1197-
if (this.settings.maxDistance === true && firstRun !== true && maxDistance !== null) {
1197+
if (this.settings.maxDistance === true && firstRun !== true && typeof maxDistance !== 'undefined' && maxDistance !== null) {
11981198
if (data.distance < maxDistance) {
11991199
locationset.push( data );
12001200
}
@@ -1442,9 +1442,6 @@
14421442
maxDistance = mappingObject.distance;
14431443
page = mappingObject.page;
14441444
}
1445-
1446-
// Enable the visual refresh https://developers.google.com/maps/documentation/javascript/basics#VisualRefresh
1447-
google.maps.visualRefresh = true;
14481445

14491446
// Set the initial page to zero if not set
14501447
if (typeof page === 'undefined') {

0 commit comments

Comments
 (0)