Skip to content

Commit 0cc142e

Browse files
committed
Added initial disableAlphaMarkers setting. Still need to update location list indicators
1 parent 2fb4714 commit 0cc142e

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

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

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

@@ -34,6 +34,7 @@
3434
'catMarkers' : null,
3535
'selectedMarkerImg' : null,
3636
'selectedMarkerImgDim' : null,
37+
'disableAlphaMarkers' : false,
3738
'lengthUnit' : 'm',
3839
'storeLimit' : 26,
3940
'distanceAlert' : 60,
@@ -964,7 +965,7 @@
964965
}
965966

966967
// Create the default markers
967-
if (this.settings.storeLimit === -1 || this.settings.storeLimit > 26 || this.settings.catMarkers !== null || this.settings.markerImg !== null || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) {
968+
if (this.settings.disableAlphaMarkers === true || this.settings.storeLimit === -1 || this.settings.storeLimit > 26 || this.settings.catMarkers !== null || this.settings.markerImg !== null || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) {
968969
marker = new google.maps.Marker({
969970
position : point,
970971
map : map,

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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]}
1313
| selectedMarkerImg | null | Selected marker image. |
1414
| selectedMarkerImgDim | null | Selected marker image dimensions object - ex value: { height: 20, width: 20 } |
15+
| disableAlphaMarkers | false | Disable displaying markers and location list indicators with alpha characters. |
1516
| lengthUnit | 'm' | The unit of length. Default is m for miles, change to km for kilometers. |
1617
| storeLimit | 26 | The number of closest locations displayed at one time. Set to -1 for unlimited. |
1718
| distanceAlert | 60 | Displays alert if there are no locations with 60 m/km of the user's location. Set to -1 to disable. |

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ filtering.
3939

4040
* Added bounds and formatted address info from geocoding API to AJAX data parameters.
4141
* Added Marker Clusterer library support, setting and example file.
42+
* Added disableAlphaMarkers setting to completely disable displaying markers and location list indicators with alpha characters.
4243
* Fixed issue with combination of autoGeocode and originMarker settings.
4344
* Merged in pull request from [drcomix](https://github.com/drcomix) that fixed zoom issue with dragSearch setting.
4445
* Switched included remote scripts in example files to https.

src/js/jquery.storelocator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
'catMarkers' : null,
3232
'selectedMarkerImg' : null,
3333
'selectedMarkerImgDim' : null,
34+
'disableAlphaMarkers' : false,
3435
'lengthUnit' : 'm',
3536
'storeLimit' : 26,
3637
'distanceAlert' : 60,
@@ -961,7 +962,7 @@
961962
}
962963

963964
// Create the default markers
964-
if (this.settings.storeLimit === -1 || this.settings.storeLimit > 26 || this.settings.catMarkers !== null || this.settings.markerImg !== null || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) {
965+
if (this.settings.disableAlphaMarkers === true || this.settings.storeLimit === -1 || this.settings.storeLimit > 26 || this.settings.catMarkers !== null || this.settings.markerImg !== null || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) {
965966
marker = new google.maps.Marker({
966967
position : point,
967968
map : map,

0 commit comments

Comments
 (0)