|
19 | 19 |
|
20 | 20 | // Create the defaults once. DO NOT change these settings in this file - settings should be overridden in the plugin call
|
21 | 21 | var defaults = {
|
22 |
| - 'mapID' : 'bh-sl-map', |
23 |
| - 'locationList' : 'bh-sl-loc-list', |
24 |
| - 'formContainer' : 'bh-sl-form-container', |
25 |
| - 'formID' : 'bh-sl-user-location', |
26 |
| - 'addressID' : 'bh-sl-address', |
27 |
| - 'regionID' : 'bh-sl-region', |
| 22 | + 'altDistanceNoResult' : false, |
| 23 | + 'autoComplete' : false, |
| 24 | + 'autoCompleteDisableListener': false, |
| 25 | + 'autoCompleteOptions' : {}, |
| 26 | + 'autoGeocode' : false, |
| 27 | + 'bounceMarker' : true, |
| 28 | + 'catMarkers' : null, |
| 29 | + 'dataLocation' : 'data/locations.json', |
| 30 | + 'dataRaw' : null, |
| 31 | + 'dataType' : 'json', |
| 32 | + 'debug' : false, |
| 33 | + 'defaultLat' : null, |
| 34 | + 'defaultLng' : null, |
| 35 | + 'defaultLoc' : false, |
| 36 | + 'disableAlphaMarkers' : false, |
| 37 | + 'distanceAlert' : 60, |
| 38 | + 'dragSearch' : false, |
| 39 | + 'exclusiveFiltering' : false, |
| 40 | + 'exclusiveTax' : null, |
| 41 | + 'featuredLocations' : false, |
| 42 | + 'fullMapStart' : false, |
| 43 | + 'fullMapStartBlank' : false, |
| 44 | + 'fullMapStartListLimit' : false, |
| 45 | + 'geocodeID' : null, |
| 46 | + 'infoBubble' : null, |
| 47 | + 'inlineDirections' : false, |
| 48 | + 'lengthUnit' : 'm', |
| 49 | + 'listColor1' : '#ffffff', |
| 50 | + 'listColor2' : '#eeeeee', |
| 51 | + 'loading' : false, |
| 52 | + 'locationsPerPage' : 10, |
28 | 53 | 'mapSettings' : {
|
29 | 54 | mapTypeId: google.maps.MapTypeId.ROADMAP,
|
30 | 55 | zoom : 12
|
31 | 56 | },
|
| 57 | + 'markerCluster' : null, |
32 | 58 | 'markerImg' : null,
|
33 | 59 | 'markerDim' : null,
|
34 |
| - 'catMarkers' : null, |
| 60 | + 'maxDistance' : false, |
| 61 | + 'modal' : false, |
| 62 | + 'nameAttribute' : 'name', |
| 63 | + 'nameSearch' : false, |
| 64 | + 'noForm' : false, |
| 65 | + 'openNearest' : false, |
| 66 | + 'originMarker' : false, |
| 67 | + 'originMarkerDim' : null, |
| 68 | + 'originMarkerImg' : null, |
| 69 | + 'pagination' : false, |
| 70 | + 'querystringParams' : false, |
35 | 71 | 'selectedMarkerImg' : null,
|
36 | 72 | 'selectedMarkerImgDim' : null,
|
37 |
| - 'disableAlphaMarkers' : false, |
38 |
| - 'lengthUnit' : 'm', |
| 73 | + 'sessionStorage' : false, |
| 74 | + 'slideMap' : true, |
39 | 75 | 'storeLimit' : 26,
|
40 |
| - 'distanceAlert' : 60, |
41 |
| - 'dataType' : 'json', |
42 |
| - 'dataLocation' : 'data/locations.json', |
43 |
| - 'dataRaw' : null, |
| 76 | + 'taxonomyFilters' : null, |
| 77 | + 'visibleMarkersList' : false, |
44 | 78 | 'xmlElement' : 'marker',
|
45 |
| - 'listColor1' : '#ffffff', |
46 |
| - 'listColor2' : '#eeeeee', |
47 |
| - 'originMarker' : false, |
48 |
| - 'originMarkerImg' : null, |
49 |
| - 'originMarkerDim' : null, |
50 |
| - 'bounceMarker' : true, |
51 |
| - 'slideMap' : true, |
52 |
| - 'modal' : false, |
53 |
| - 'overlay' : 'bh-sl-overlay', |
54 |
| - 'modalWindow' : 'bh-sl-modal-window', |
55 |
| - 'modalContent' : 'bh-sl-modal-content', |
| 79 | + // HTML elements |
| 80 | + 'addressID' : 'bh-sl-address', |
56 | 81 | 'closeIcon' : 'bh-sl-close-icon',
|
57 |
| - 'defaultLoc' : false, |
58 |
| - 'defaultLat' : null, |
59 |
| - 'defaultLng' : null, |
60 |
| - 'autoComplete' : false, |
61 |
| - 'autoCompleteOptions' : {}, |
62 |
| - 'autoCompleteDisableListener': false, |
63 |
| - 'autoGeocode' : false, |
64 |
| - 'geocodeID' : null, |
65 |
| - 'maxDistance' : false, |
66 |
| - 'maxDistanceID' : 'bh-sl-maxdistance', |
67 |
| - 'fullMapStart' : false, |
68 |
| - 'fullMapStartBlank' : false, |
69 |
| - 'fullMapStartListLimit' : false, |
70 |
| - 'noForm' : false, |
71 |
| - 'loading' : false, |
| 82 | + 'formContainer' : 'bh-sl-form-container', |
| 83 | + 'formID' : 'bh-sl-user-location', |
72 | 84 | 'loadingContainer' : 'bh-sl-loading',
|
73 |
| - 'featuredLocations' : false, |
74 |
| - 'pagination' : false, |
75 |
| - 'locationsPerPage' : 10, |
76 |
| - 'inlineDirections' : false, |
77 |
| - 'nameSearch' : false, |
| 85 | + 'locationList' : 'bh-sl-loc-list', |
| 86 | + 'mapID' : 'bh-sl-map', |
| 87 | + 'maxDistanceID' : 'bh-sl-maxdistance', |
| 88 | + 'modalContent' : 'bh-sl-modal-content', |
| 89 | + 'modalWindow' : 'bh-sl-modal-window', |
| 90 | + 'overlay' : 'bh-sl-overlay', |
| 91 | + 'regionID' : 'bh-sl-region', |
78 | 92 | 'searchID' : 'bh-sl-search',
|
79 |
| - 'nameAttribute' : 'name', |
80 |
| - 'visibleMarkersList' : false, |
81 |
| - 'dragSearch' : false, |
82 |
| - 'openNearest' : false, |
| 93 | + 'taxonomyFiltersContainer' : 'bh-sl-filters-container', |
| 94 | + // Templates |
83 | 95 | 'infowindowTemplatePath' : 'assets/js/plugins/storeLocator/templates/infowindow-description.html',
|
84 | 96 | 'listTemplatePath' : 'assets/js/plugins/storeLocator/templates/location-list-description.html',
|
85 | 97 | 'KMLinfowindowTemplatePath' : 'assets/js/plugins/storeLocator/templates/kml-infowindow-description.html',
|
86 | 98 | 'KMLlistTemplatePath' : 'assets/js/plugins/storeLocator/templates/kml-location-list-description.html',
|
87 | 99 | 'listTemplateID' : null,
|
88 | 100 | 'infowindowTemplateID' : null,
|
89 |
| - 'taxonomyFilters' : null, |
90 |
| - 'taxonomyFiltersContainer' : 'bh-sl-filters-container', |
91 |
| - 'exclusiveFiltering' : false, |
92 |
| - 'exclusiveTax' : null, |
93 |
| - 'querystringParams' : false, |
94 |
| - 'altDistanceNoResult' : false, |
95 |
| - 'debug' : false, |
96 |
| - 'sessionStorage' : false, |
97 |
| - 'markerCluster' : null, |
98 |
| - 'infoBubble' : null, |
99 | 101 | // Callbacks
|
100 | 102 | 'callbackAutoGeoSuccess' : null,
|
101 |
| - 'callbackNotify' : null, |
102 |
| - 'callbackRegion' : null, |
| 103 | + 'callbackBeforeSend' : null, |
| 104 | + 'callbackCloseDirections' : null, |
| 105 | + 'callbackCreateMarker' : null, |
| 106 | + 'callbackDirectionsRequest' : null, |
| 107 | + 'callbackFilters' : null, |
103 | 108 | 'callbackFormVals' : null,
|
104 | 109 | 'callbackGeocodeRestrictions': null,
|
105 |
| - 'callbackBeforeSend' : null, |
106 |
| - 'callbackSuccess' : null, |
| 110 | + 'callbackJsonp' : null, |
| 111 | + 'callbackListClick' : null, |
| 112 | + 'callbackMapSet' : null, |
| 113 | + 'callbackMarkerClick' : null, |
| 114 | + 'callbackModalClose' : null, |
107 | 115 | 'callbackModalOpen' : null,
|
108 | 116 | 'callbackModalReady' : null,
|
109 |
| - 'callbackModalClose' : null, |
110 | 117 | 'callbackNearestLoc' : null,
|
111 |
| - 'callbackJsonp' : null, |
112 |
| - 'callbackCreateMarker' : null, |
113 |
| - 'callbackPageChange' : null, |
114 |
| - 'callbackDirectionsRequest' : null, |
115 |
| - 'callbackCloseDirections' : null, |
116 | 118 | 'callbackNoResults' : null,
|
117 |
| - 'callbackListClick' : null, |
118 |
| - 'callbackMarkerClick' : null, |
119 |
| - 'callbackFilters' : null, |
120 |
| - 'callbackMapSet' : null, |
| 119 | + 'callbackNotify' : null, |
| 120 | + 'callbackPageChange' : null, |
| 121 | + 'callbackRegion' : null, |
| 122 | + 'callbackSuccess' : null, |
121 | 123 | // Language options
|
122 | 124 | 'addressErrorAlert' : 'Unable to find address',
|
123 | 125 | 'autoGeocodeErrorAlert' : 'Automatic location detection failed. Please fill in your address or zip code.',
|
|
0 commit comments