Skip to content

Commit 15aa74f

Browse files
committed
Updated mapSettings description in options.md to highlight that zoom can be set to 0 for automatic centering and zooming, fixed close directiosn bug where close icon couldn't be clicked more than two times
1 parent f479102 commit 15aa74f

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.0.8 - 2015-05-23
1+
/*! jQuery Google Maps Store Locator - v2.0.8 - 2015-07-13
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

@@ -1882,11 +1882,11 @@
18821882
e.preventDefault();
18831883
var locID = $(this).closest('li').attr('data-markerid');
18841884
_this.directionsRequest(origin, locID, map);
1885-
});
18861885

1887-
// Close directions
1888-
$(document).on('click.'+pluginName, '.' + _this.settings.locationList + ' .bh-sl-close-icon', function () {
1889-
_this.closeDirections();
1886+
// Close directions
1887+
$(document).on('click.'+pluginName, '.' + _this.settings.locationList + ' .bh-sl-close-icon', function () {
1888+
_this.closeDirections();
1889+
});
18901890
});
18911891
}
18921892

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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| formID | 'bh-sl-user-location' | ID of the input form. |
77
| addressID | 'bh-sl-address' | ID of the address input form field. |
88
| regionID | 'bh-sl-region' | ID of the region select form field for country region biasing. |
9-
| mapSettings | { zoom : 12, mapTypeId: google.maps.MapTypeId.ROADMAP } | Google maps settings object. Add all settings including zoom and map type if overriding. |
9+
| mapSettings | { zoom : 12, mapTypeId: google.maps.MapTypeId.ROADMAP } | Google maps settings object. Add all settings including zoom and map type if overriding. Set zoom to 0 to center and zoom automatically. |
1010
| markerImg | null | Replacement marker image used for all locations |
1111
| markerDim | null | Replacement marker dimensions object - ex value: { height: 20, width: 20 } |
1212
| catMarkers | null | Multiple replacement marker images based on categories object. Value should be array with image path followed by dimensions - ex value: catMarkers : {'Restaurant' : ['img/red-marker.svg', 32, 32]}

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ requests.
3737
* Updated max distance check to less than or equal to the selected distance vs. just less than.
3838
* Updated regionID description in options.md for clarity.
3939
* Updated formEventHandler method to prevent ASP.net form submission on keydown instead of keyup.
40+
* Updated mapSettings description in options.md to highlight that zoom can be set to 0 for automatic centering and zooming.
41+
* Fixed close directiosn bug where close icon couldn't be clicked more than two times.
4042

4143
### Version 2.0.7
4244

src/js/jquery.storelocator.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1880,11 +1880,11 @@
18801880
e.preventDefault();
18811881
var locID = $(this).closest('li').attr('data-markerid');
18821882
_this.directionsRequest(origin, locID, map);
1883-
});
18841883

1885-
// Close directions
1886-
$(document).on('click.'+pluginName, '.' + _this.settings.locationList + ' .bh-sl-close-icon', function () {
1887-
_this.closeDirections();
1884+
// Close directions
1885+
$(document).on('click.'+pluginName, '.' + _this.settings.locationList + ' .bh-sl-close-icon', function () {
1886+
_this.closeDirections();
1887+
});
18881888
});
18891889
}
18901890

0 commit comments

Comments
 (0)