|
1 |
| -/*! jQuery Google Maps Store Locator - v2.7.3 - 2017-05-03 |
| 1 | +/*! jQuery Google Maps Store Locator - v2.7.3 - 2017-05-07 |
| 2 | +* http://www.bjornblog.com/web/jquery-store-locator-plugin |
| 3 | +* Copyright (c) 2017 Bjorn Holine; Licensed MIT */ |
| 4 | + |
| 5 | +/*! jQuery Google Maps Store Locator - v2.7.3 - 2017-05-07 |
2 | 6 | * http://www.bjornblog.com/web/jquery-store-locator-plugin
|
3 | 7 | * Copyright (c) 2017 Bjorn Holine; Licensed MIT */
|
4 | 8 |
|
|
2527 | 2531 | _this.modalWindow();
|
2528 | 2532 |
|
2529 | 2533 | // Avoid error if number of locations is less than the default of 26
|
2530 |
| - if (_this.settings.storeLimit === -1 || locationset.length < _this.settings.storeLimit || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) { |
| 2534 | + if (_this.settings.storeLimit === -1 || locationset.length < _this.settings.storeLimit || (this.settings.fullMapStart === true && firstRun === true && (!isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) { |
2531 | 2535 | storeNum = locationset.length;
|
2532 | 2536 | }
|
2533 | 2537 | else {
|
|
2555 | 2559 | _this.resultsTotalCount(locationset.length);
|
2556 | 2560 |
|
2557 | 2561 | // Google maps settings
|
2558 |
| - if ((_this.settings.fullMapStart === true && firstRun === true) || (_this.settings.mapSettings.zoom === 0) || (typeof origin === 'undefined') || (distError === true)) { |
| 2562 | + if ((_this.settings.fullMapStart === true && firstRun === true && _this.settings.querystringParams !== true) || (_this.settings.mapSettings.zoom === 0) || (typeof origin === 'undefined') || (distError === true)) { |
2559 | 2563 | myOptions = _this.settings.mapSettings;
|
2560 | 2564 | bounds = new google.maps.LatLngBounds();
|
2561 | 2565 | }
|
|
2642 | 2646 | marker = _this.createMarker(point, locationset[y].name, locationset[y].address, letter, _this.map, locationset[y].category);
|
2643 | 2647 | marker.set('id', y);
|
2644 | 2648 | markers[y] = marker;
|
2645 |
| - if ((_this.settings.fullMapStart === true && firstRun === true) || (_this.settings.mapSettings.zoom === 0) || (typeof origin === 'undefined') || (distError === true)) { |
| 2649 | + if ((_this.settings.fullMapStart === true && firstRun === true && _this.settings.querystringParams !== true) || (_this.settings.mapSettings.zoom === 0) || (typeof origin === 'undefined') || (distError === true)) { |
2646 | 2650 | bounds.extend(point);
|
2647 | 2651 | }
|
2648 | 2652 | // Pass variables to the pop-up infowindows
|
2649 | 2653 | _this.createInfowindow(marker, null, infowindow, storeStart, page);
|
2650 | 2654 | }
|
2651 | 2655 |
|
2652 | 2656 | // Center and zoom if no origin or zoom was provided, or distance of first marker is greater than distanceAlert
|
2653 |
| - if ((_this.settings.fullMapStart === true && firstRun === true) || (_this.settings.mapSettings.zoom === 0) || (typeof origin === 'undefined') || (distError === true)) { |
| 2657 | + if ((_this.settings.fullMapStart === true && firstRun === true && _this.settings.querystringParams !== true) || (_this.settings.mapSettings.zoom === 0) || (typeof origin === 'undefined') || (distError === true)) { |
2654 | 2658 | _this.map.fitBounds(bounds);
|
2655 | 2659 | }
|
2656 | 2660 |
|
|
0 commit comments