Version Description
:- 2019-02-22 :- Medium priority = * Added Distance class * Added property storeLocatorDistanceUnits to WPGMZA\Map * Fixed Spatial function prefix not applied for version 8 due to wrong operator * Fixed MarkerFilter radius clause ignoring store locator distance units setting * Removed console.log call in GoogleMarker setVisible
Download this release
Release Info
Developer | perryrylance |
Plugin | ![]() |
Version | 7.11.07 |
Comparing to | |
See all releases |
Code changes from version 7.11.06 to 7.11.07
- includes/build.log +280 -280
- includes/class.distance.php +12 -0
- includes/class.map.php +15 -0
- includes/class.marker-filter.php +17 -1
- includes/class.plugin.php +1 -1
- includes/class.strings.php +2 -1
- js/v8/map.js +2 -2
- js/v8/tables/datatable.js +280 -279
- js/v8/wp-google-maps.combined.js +221 -220
- js/v8/wp-google-maps.min.js +1 -1
- readme.txt +7 -0
- wpGoogleMaps.php +8 -1
includes/build.log
CHANGED
@@ -1,280 +1,280 @@
|
|
1 |
-
2019-02-
|
2 |
-
2019-02-
|
3 |
-
2019-02-
|
4 |
-
2019-02-
|
5 |
-
2019-02-
|
6 |
-
2019-02-
|
7 |
-
2019-02-
|
8 |
-
2019-02-
|
9 |
-
2019-02-
|
10 |
-
2019-02-
|
11 |
-
2019-02-
|
12 |
-
2019-02-
|
13 |
-
2019-02-
|
14 |
-
2019-02-
|
15 |
-
2019-02-
|
16 |
-
2019-02-
|
17 |
-
2019-02-
|
18 |
-
2019-02-
|
19 |
-
2019-02-
|
20 |
-
2019-02-
|
21 |
-
2019-02-
|
22 |
-
2019-02-
|
23 |
-
2019-02-
|
24 |
-
2019-02-
|
25 |
-
2019-02-
|
26 |
-
2019-02-
|
27 |
-
2019-02-
|
28 |
-
2019-02-
|
29 |
-
2019-02-
|
30 |
-
2019-02-
|
31 |
-
2019-02-
|
32 |
-
2019-02-
|
33 |
-
2019-02-
|
34 |
-
2019-02-
|
35 |
-
2019-02-
|
36 |
-
2019-02-
|
37 |
-
2019-02-
|
38 |
-
2019-02-
|
39 |
-
2019-02-
|
40 |
-
2019-02-
|
41 |
-
2019-02-
|
42 |
-
2019-02-
|
43 |
-
2019-02-
|
44 |
-
2019-02-
|
45 |
-
2019-02-
|
46 |
-
2019-02-
|
47 |
-
2019-02-
|
48 |
-
2019-02-
|
49 |
-
2019-02-
|
50 |
-
2019-02-
|
51 |
-
2019-02-
|
52 |
-
2019-02-
|
53 |
-
2019-02-
|
54 |
-
2019-02-
|
55 |
-
2019-02-
|
56 |
-
2019-02-
|
57 |
-
2019-02-
|
58 |
-
2019-02-
|
59 |
-
2019-02-
|
60 |
-
2019-02-
|
61 |
-
2019-02-
|
62 |
-
2019-02-
|
63 |
-
2019-02-
|
64 |
-
2019-02-
|
65 |
-
2019-02-
|
66 |
-
2019-02-
|
67 |
-
2019-02-
|
68 |
-
2019-02-
|
69 |
-
2019-02-
|
70 |
-
2019-02-
|
71 |
-
2019-02-
|
72 |
-
2019-02-
|
73 |
-
2019-02-
|
74 |
-
2019-02-
|
75 |
-
2019-02-
|
76 |
-
2019-02-
|
77 |
-
2019-02-
|
78 |
-
2019-02-
|
79 |
-
2019-02-
|
80 |
-
2019-02-
|
81 |
-
2019-02-
|
82 |
-
2019-02-
|
83 |
-
2019-02-
|
84 |
-
2019-02-
|
85 |
-
2019-02-
|
86 |
-
2019-02-
|
87 |
-
2019-02-
|
88 |
-
2019-02-
|
89 |
-
2019-02-
|
90 |
-
2019-02-
|
91 |
-
2019-02-
|
92 |
-
2019-02-
|
93 |
-
2019-02-
|
94 |
-
2019-02-
|
95 |
-
2019-02-
|
96 |
-
2019-02-
|
97 |
-
2019-02-
|
98 |
-
2019-02-
|
99 |
-
2019-02-
|
100 |
-
2019-02-
|
101 |
-
2019-02-
|
102 |
-
2019-02-
|
103 |
-
2019-02-
|
104 |
-
2019-02-
|
105 |
-
2019-02-
|
106 |
-
2019-02-
|
107 |
-
2019-02-
|
108 |
-
2019-02-
|
109 |
-
2019-02-
|
110 |
-
2019-02-
|
111 |
-
2019-02-
|
112 |
-
2019-02-
|
113 |
-
2019-02-
|
114 |
-
2019-02-
|
115 |
-
2019-02-
|
116 |
-
2019-02-
|
117 |
-
2019-02-
|
118 |
-
2019-02-
|
119 |
-
2019-02-
|
120 |
-
2019-02-
|
121 |
-
2019-02-
|
122 |
-
2019-02-
|
123 |
-
2019-02-
|
124 |
-
2019-02-
|
125 |
-
2019-02-
|
126 |
-
2019-02-
|
127 |
-
2019-02-
|
128 |
-
2019-02-
|
129 |
-
2019-02-
|
130 |
-
2019-02-
|
131 |
-
2019-02-
|
132 |
-
2019-02-
|
133 |
-
2019-02-
|
134 |
-
2019-02-
|
135 |
-
2019-02-
|
136 |
-
2019-02-
|
137 |
-
2019-02-
|
138 |
-
2019-02-
|
139 |
-
2019-02-
|
140 |
-
2019-02-
|
141 |
-
2019-02-
|
142 |
-
2019-02-
|
143 |
-
2019-02-
|
144 |
-
2019-02-
|
145 |
-
2019-02-
|
146 |
-
2019-02-
|
147 |
-
2019-02-
|
148 |
-
2019-02-
|
149 |
-
2019-02-
|
150 |
-
2019-02-
|
151 |
-
2019-02-
|
152 |
-
2019-02-
|
153 |
-
2019-02-
|
154 |
-
2019-02-
|
155 |
-
2019-02-
|
156 |
-
2019-02-
|
157 |
-
2019-02-
|
158 |
-
2019-02-
|
159 |
-
2019-02-
|
160 |
-
2019-02-
|
161 |
-
2019-02-
|
162 |
-
2019-02-
|
163 |
-
2019-02-
|
164 |
-
2019-02-
|
165 |
-
2019-02-
|
166 |
-
2019-02-
|
167 |
-
2019-02-
|
168 |
-
2019-02-
|
169 |
-
2019-02-
|
170 |
-
2019-02-
|
171 |
-
2019-02-
|
172 |
-
2019-02-
|
173 |
-
2019-02-
|
174 |
-
2019-02-
|
175 |
-
2019-02-
|
176 |
-
2019-02-
|
177 |
-
2019-02-
|
178 |
-
2019-02-
|
179 |
-
2019-02-
|
180 |
-
2019-02-
|
181 |
-
2019-02-
|
182 |
-
2019-02-
|
183 |
-
2019-02-
|
184 |
-
2019-02-
|
185 |
-
2019-02-
|
186 |
-
2019-02-
|
187 |
-
2019-02-
|
188 |
-
2019-02-
|
189 |
-
2019-02-
|
190 |
-
2019-02-
|
191 |
-
2019-02-
|
192 |
-
2019-02-
|
193 |
-
2019-02-
|
194 |
-
2019-02-
|
195 |
-
2019-02-
|
196 |
-
2019-02-
|
197 |
-
2019-02-
|
198 |
-
2019-02-
|
199 |
-
2019-02-
|
200 |
-
2019-02-
|
201 |
-
2019-02-
|
202 |
-
2019-02-
|
203 |
-
2019-02-
|
204 |
-
2019-02-
|
205 |
-
2019-02-
|
206 |
-
2019-02-
|
207 |
-
2019-02-
|
208 |
-
2019-02-
|
209 |
-
2019-02-
|
210 |
-
2019-02-
|
211 |
-
2019-02-
|
212 |
-
2019-02-
|
213 |
-
2019-02-
|
214 |
-
2019-02-
|
215 |
-
2019-02-
|
216 |
-
2019-02-
|
217 |
-
2019-02-
|
218 |
-
2019-02-
|
219 |
-
2019-02-
|
220 |
-
2019-02-
|
221 |
-
2019-02-
|
222 |
-
2019-02-
|
223 |
-
2019-02-
|
224 |
-
2019-02-
|
225 |
-
2019-02-
|
226 |
-
2019-02-
|
227 |
-
2019-02-
|
228 |
-
2019-02-
|
229 |
-
2019-02-
|
230 |
-
2019-02-
|
231 |
-
2019-02-
|
232 |
-
2019-02-
|
233 |
-
2019-02-
|
234 |
-
2019-02-
|
235 |
-
2019-02-
|
236 |
-
2019-02-
|
237 |
-
2019-02-
|
238 |
-
2019-02-
|
239 |
-
2019-02-
|
240 |
-
2019-02-
|
241 |
-
2019-02-
|
242 |
-
2019-02-
|
243 |
-
2019-02-
|
244 |
-
2019-02-
|
245 |
-
2019-02-
|
246 |
-
2019-02-
|
247 |
-
2019-02-
|
248 |
-
2019-02-
|
249 |
-
2019-02-
|
250 |
-
2019-02-
|
251 |
-
2019-02-
|
252 |
-
2019-02-
|
253 |
-
2019-02-
|
254 |
-
2019-02-
|
255 |
-
2019-02-
|
256 |
-
2019-02-
|
257 |
-
2019-02-
|
258 |
-
2019-02-
|
259 |
-
2019-02-
|
260 |
-
2019-02-
|
261 |
-
2019-02-
|
262 |
-
2019-02-
|
263 |
-
2019-02-
|
264 |
-
2019-02-
|
265 |
-
2019-02-
|
266 |
-
2019-02-
|
267 |
-
2019-02-
|
268 |
-
2019-02-
|
269 |
-
2019-02-
|
270 |
-
2019-02-
|
271 |
-
2019-02-
|
272 |
-
2019-02-
|
273 |
-
2019-02-
|
274 |
-
2019-02-
|
275 |
-
2019-02-
|
276 |
-
2019-02-
|
277 |
-
2019-02-
|
278 |
-
2019-02-
|
279 |
-
2019-02-
|
280 |
-
2019-02-
|
1 |
+
2019-02-22 10:53:25 :- Scanning dependencies
|
2 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/circle.js
|
3 |
+
2019-02-22 10:53:25 :- Found wpgmza-circle
|
4 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map-object
|
5 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/compatibility.js
|
6 |
+
2019-02-22 10:53:25 :- Found wpgmza-compatibility
|
7 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
8 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/core.js
|
9 |
+
2019-02-22 10:53:25 :- Found wpgmza
|
10 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/css-escape.js
|
11 |
+
2019-02-22 10:53:25 :- Found wpgmza-css
|
12 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
13 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/distance.js
|
14 |
+
2019-02-22 10:53:25 :- Found wpgmza-distance
|
15 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
16 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/event-dispatcher.js
|
17 |
+
2019-02-22 10:53:25 :- Found wpgmza-event-dispatcher
|
18 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
19 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/event.js
|
20 |
+
2019-02-22 10:53:25 :- Found wpgmza-event
|
21 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
22 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/friendly-error.js
|
23 |
+
2019-02-22 10:53:25 :- Found wpgmza-friendly-error
|
24 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
25 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/geocoder.js
|
26 |
+
2019-02-22 10:53:25 :- Found wpgmza-geocoder
|
27 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
28 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-api-error-handler.js
|
29 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-api-error-handler
|
30 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
31 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/info-window.js
|
32 |
+
2019-02-22 10:53:25 :- Found wpgmza-info-window
|
33 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-event-dispatcher
|
34 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/latlng.js
|
35 |
+
2019-02-22 10:53:25 :- Found wpgmza-lat-lng
|
36 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
37 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/latlngbounds.js
|
38 |
+
2019-02-22 10:53:25 :- Found wpgmza-lat-lng-bounds
|
39 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
40 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/map-object.js
|
41 |
+
2019-02-22 10:53:25 :- Found wpgmza-map-object
|
42 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-event-dispatcher
|
43 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/map-settings-page.js
|
44 |
+
2019-02-22 10:53:25 :- Found wpgmza-map-settings-page
|
45 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
46 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/map-settings.js
|
47 |
+
2019-02-22 10:53:25 :- Found wpgmza-map-settings
|
48 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
49 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/map.js
|
50 |
+
2019-02-22 10:53:25 :- Found wpgmza-map
|
51 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-event-dispatcher
|
52 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/maps-engine-dialog.js
|
53 |
+
2019-02-22 10:53:25 :- Found wpgmza-maps-engine-dialog
|
54 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
55 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/marker-filter.js
|
56 |
+
2019-02-22 10:53:25 :- Found wpgmza-marker-filter
|
57 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-event-dispatcher
|
58 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/marker.js
|
59 |
+
2019-02-22 10:53:25 :- Found wpgmza-marker
|
60 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
61 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/modern-store-locator-circle.js
|
62 |
+
2019-02-22 10:53:25 :- Found wpgmza-modern-store-locator-circle
|
63 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
64 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/modern-store-locator.js
|
65 |
+
2019-02-22 10:53:25 :- Found wpgmza-modern-store-locator
|
66 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
67 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-use-my-location-button
|
68 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/native-maps-icon.js
|
69 |
+
2019-02-22 10:53:25 :- Found wpgmza-native-maps-app-icon
|
70 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
71 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/polygon.js
|
72 |
+
2019-02-22 10:53:25 :- Found wpgmza-polygon
|
73 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map-object
|
74 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/polyline.js
|
75 |
+
2019-02-22 10:53:25 :- Found wpgmza-polyline
|
76 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map-object
|
77 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/popout-panel.js
|
78 |
+
2019-02-22 10:53:25 :- Found wpgmza-popout-panel
|
79 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
80 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/rest-api.js
|
81 |
+
2019-02-22 10:53:25 :- Found wpgmza-wpgmza-rest-api
|
82 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
83 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/store-locator.js
|
84 |
+
2019-02-22 10:53:25 :- Found wpgmza-store-locator
|
85 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-event-dispatcher
|
86 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/text.js
|
87 |
+
2019-02-22 10:53:25 :- Found wpgmza-text
|
88 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
89 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/v7-custom-script.js
|
90 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/version.js
|
91 |
+
2019-02-22 10:53:25 :- Found wpgmza-version
|
92 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
93 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/3rd-party-integration/integration.js
|
94 |
+
2019-02-22 10:53:25 :- Found wpgmza-integration
|
95 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
96 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/3rd-party-integration/gutenberg/dist/gutenberg.js
|
97 |
+
2019-02-22 10:53:25 :- Found wpgmza-gutenberg
|
98 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-integration
|
99 |
+
2019-02-22 10:53:25 :- Adding dependency wp-i18n
|
100 |
+
2019-02-22 10:53:25 :- Adding dependency wp-blocks
|
101 |
+
2019-02-22 10:53:25 :- Adding dependency wp-editor
|
102 |
+
2019-02-22 10:53:25 :- Adding dependency wp-components
|
103 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/compatibility/google-ui-compatibility.js
|
104 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-ui-compatibility
|
105 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
106 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-circle.js
|
107 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-circle
|
108 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-circle
|
109 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-geocoder.js
|
110 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-geocoder
|
111 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-geocoder
|
112 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-html-overlay.js
|
113 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-html-overlay
|
114 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
115 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-info-window.js
|
116 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-info-window
|
117 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-info-window
|
118 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-info-window
|
119 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-map.js
|
120 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-map
|
121 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map
|
122 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-map
|
123 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-marker.js
|
124 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-marker
|
125 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker
|
126 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-marker
|
127 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-modern-store-locator-circle.js
|
128 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-modern-store-locator-circle
|
129 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-modern-store-locator-circle
|
130 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-modern-store-locator.js
|
131 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-modern-store-locator
|
132 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-modern-store-locator
|
133 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-polygon.js
|
134 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-polygon
|
135 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-polygon
|
136 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-polygon
|
137 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-polyline.js
|
138 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-polyline
|
139 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-polyline
|
140 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-text-overlay.js
|
141 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-text-overlay
|
142 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-text
|
143 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-text.js
|
144 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-text
|
145 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-text
|
146 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-vertex-context-menu.js
|
147 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-vertex-context-menu
|
148 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza_api_call
|
149 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-circle.js
|
150 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-circle
|
151 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-circle
|
152 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-geocoder.js
|
153 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-geocoder
|
154 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-geocoder
|
155 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-info-window.js
|
156 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-info-window
|
157 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-info-window
|
158 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-info-window
|
159 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-map.js
|
160 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-map
|
161 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map
|
162 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-map
|
163 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-marker.js
|
164 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-marker
|
165 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker
|
166 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-marker
|
167 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-modern-store-locator-circle.js
|
168 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-modern-store-locator-circle
|
169 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-modern-store-locator-circle
|
170 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-modern-store-locator.js
|
171 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-modern-store-locator
|
172 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-modern-store-locator
|
173 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-polygon.js
|
174 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-polygon
|
175 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-polygon
|
176 |
+
2019-02-22 10:53:25 :- Adding Pro dependency wpgmza-pro-polygon
|
177 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-polyline.js
|
178 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-polyline
|
179 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-polyline
|
180 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-text.js
|
181 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-text
|
182 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-text
|
183 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/tables/admin-marker-datatable.js
|
184 |
+
2019-02-22 10:53:25 :- Found wpgmza-admin-marker-data-table
|
185 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-data-table
|
186 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps/js/v8/tables/datatable.js
|
187 |
+
2019-02-22 10:53:25 :- Found wpgmza-data-table
|
188 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
189 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/content-editor-map-button.js
|
190 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/custom-field-filter-controller.js
|
191 |
+
2019-02-22 10:53:25 :- Found wpgmza-custom-field-filter-controller
|
192 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
193 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/custom-field-filter-widget.js
|
194 |
+
2019-02-22 10:53:25 :- Found wpgmza-custom-field-filter-widget
|
195 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
196 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/heatmap.js
|
197 |
+
2019-02-22 10:53:25 :- Found wpgmza-heatmap
|
198 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map-object
|
199 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/modern-directions-box.js
|
200 |
+
2019-02-22 10:53:25 :- Found wpgmza-modern-directions-box
|
201 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-popout-panel
|
202 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/modern-directions-result-box.js
|
203 |
+
2019-02-22 10:53:25 :- Found wpgmza-modern-directions-result-box
|
204 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-popout-panel
|
205 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/modern-marker-listing-marker-view.js
|
206 |
+
2019-02-22 10:53:25 :- Found wpgmza-modern-marker-listing-marker-view
|
207 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-popout-panel
|
208 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/pro-info-window.js
|
209 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-info-window
|
210 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-info-window
|
211 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/pro-map.js
|
212 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-map
|
213 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-map
|
214 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/pro-marker-filter.js
|
215 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-marker-filter
|
216 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker-filter
|
217 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/pro-marker.js
|
218 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-marker
|
219 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker
|
220 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/pro-polygon.js
|
221 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-polygon
|
222 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-polygon
|
223 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/pro-store-locator.js
|
224 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-store-locator
|
225 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-store-locator
|
226 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/use-my-location-button.js
|
227 |
+
2019-02-22 10:53:25 :- Found wpgmza-use-my-location-button
|
228 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-event-dispatcher
|
229 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/xml-cache-converter.js
|
230 |
+
2019-02-22 10:53:25 :- Found wpgmza-xml-cache-converter
|
231 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
232 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/3rd-party-integration/gutenberg/dist/pro-gutenberg.js
|
233 |
+
2019-02-22 10:53:25 :- Found wpgmza-pro-gutenberg
|
234 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-gutenberg
|
235 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/google-maps/google-heatmap.js
|
236 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-heatmap
|
237 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-heatmap
|
238 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/google-maps/google-pro-info-window.js
|
239 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-pro-info-window
|
240 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-google-info-window
|
241 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/google-maps/google-pro-map.js
|
242 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-pro-map
|
243 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-google-map
|
244 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/google-maps/google-pro-marker.js
|
245 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-pro-marker
|
246 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-google-marker
|
247 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/google-maps/google-pro-polygon.js
|
248 |
+
2019-02-22 10:53:25 :- Found wpgmza-google-pro-polygon
|
249 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-google-polygon
|
250 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/marker-listings/advanced-table-datatable.js
|
251 |
+
2019-02-22 10:53:25 :- Found wpgmza-advanced-table-data-table
|
252 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
253 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/marker-listings/advanced-table-marker-listing.js
|
254 |
+
2019-02-22 10:53:25 :- Found wpgmza-advanced-table-marker-listing
|
255 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker-listing
|
256 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/marker-listings/carousel-marker-listing.js
|
257 |
+
2019-02-22 10:53:25 :- Found wpgmza-carousel-marker-listing
|
258 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker-listing
|
259 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/marker-listings/marker-listing.js
|
260 |
+
2019-02-22 10:53:25 :- Found wpgmza-marker-listing
|
261 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza
|
262 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/marker-listings/modern-marker-listing.js
|
263 |
+
2019-02-22 10:53:25 :- Found wpgmza-modern-marker-listing
|
264 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-marker-listing
|
265 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-popout-panel
|
266 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/open-layers/ol-heatmap.js
|
267 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-heatmap
|
268 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-heatmap
|
269 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/open-layers/ol-pro-info-window.js
|
270 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-pro-info-window
|
271 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-ol-info-window
|
272 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/open-layers/ol-pro-map.js
|
273 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-pro-map
|
274 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-ol-map
|
275 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/open-layers/ol-pro-marker.js
|
276 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-pro-marker
|
277 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-ol-marker
|
278 |
+
2019-02-22 10:53:25 :- Reading E:\Programming\Code Cabin\htdocs-7.11.00\wp-content\plugins\wp-google-maps-pro/js/v8/open-layers/ol-pro-polygon.js
|
279 |
+
2019-02-22 10:53:25 :- Found wpgmza-ol-pro-polygon
|
280 |
+
2019-02-22 10:53:25 :- Adding dependency wpgmza-ol-polygon
|
includes/class.distance.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPGMZA;
|
4 |
+
|
5 |
+
class Distance
|
6 |
+
{
|
7 |
+
const UNITS_KM = "km";
|
8 |
+
const UNITS_MI = "mi";
|
9 |
+
|
10 |
+
const MILES_PER_KILOMETER = 0.621371;
|
11 |
+
const KILOMETERS_PER_MILE = 1.60934;
|
12 |
+
}
|
includes/class.map.php
CHANGED
@@ -20,6 +20,21 @@ class Map extends Crud
|
|
20 |
Crud::__construct("{$wpdb->prefix}wpgmza_maps", $id_or_fields);
|
21 |
}
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
/**
|
24 |
* Deprecated. The Factory class will takeover here
|
25 |
* @deprecated
|
20 |
Crud::__construct("{$wpdb->prefix}wpgmza_maps", $id_or_fields);
|
21 |
}
|
22 |
|
23 |
+
public function __get($name)
|
24 |
+
{
|
25 |
+
switch($name)
|
26 |
+
{
|
27 |
+
case "storeLocatorDistanceUnits":
|
28 |
+
if(!empty($this->wpgmza_store_locator_distance))
|
29 |
+
return Distance::UNITS_MI;
|
30 |
+
else
|
31 |
+
return Distance::UNITS_KM;
|
32 |
+
break;
|
33 |
+
}
|
34 |
+
|
35 |
+
return Crud::__get($name);
|
36 |
+
}
|
37 |
+
|
38 |
/**
|
39 |
* Deprecated. The Factory class will takeover here
|
40 |
* @deprecated
|
includes/class.marker-filter.php
CHANGED
@@ -57,6 +57,18 @@ class MarkerFilter extends Factory
|
|
57 |
$this->{$name} = $value;
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
protected function applyRadiusClause($query)
|
61 |
{
|
62 |
if(!$this->center || !$this->radius)
|
@@ -64,6 +76,10 @@ class MarkerFilter extends Factory
|
|
64 |
|
65 |
$lat = $this->_center['lat'] / 180 * 3.1415926;
|
66 |
$lng = $this->_center['lng'] / 180 * 3.1415926;
|
|
|
|
|
|
|
|
|
67 |
|
68 |
$query->where['radius'] = '
|
69 |
(
|
@@ -99,7 +115,7 @@ class MarkerFilter extends Factory
|
|
99 |
$query->params[] = $lat;
|
100 |
$query->params[] = $lng;
|
101 |
|
102 |
-
$query->params[] = $
|
103 |
}
|
104 |
|
105 |
public function getQuery()
|
57 |
$this->{$name} = $value;
|
58 |
}
|
59 |
|
60 |
+
protected function loadMap()
|
61 |
+
{
|
62 |
+
global $wpdb;
|
63 |
+
|
64 |
+
$id = $wpdb->get_var("SELECT id FROM {$wpdb->prefix}wpgmza_maps LIMIT 1");
|
65 |
+
|
66 |
+
if(!$id)
|
67 |
+
return;
|
68 |
+
|
69 |
+
$this->map = new Map($id);
|
70 |
+
}
|
71 |
+
|
72 |
protected function applyRadiusClause($query)
|
73 |
{
|
74 |
if(!$this->center || !$this->radius)
|
76 |
|
77 |
$lat = $this->_center['lat'] / 180 * 3.1415926;
|
78 |
$lng = $this->_center['lng'] / 180 * 3.1415926;
|
79 |
+
$radius = $this->radius;
|
80 |
+
|
81 |
+
if($this->map && $this->map->storeLocatorDistanceUnits == Distance::UNITS_MI)
|
82 |
+
$radius *= Distance::KILOMETERS_PER_MILE;
|
83 |
|
84 |
$query->where['radius'] = '
|
85 |
(
|
115 |
$query->params[] = $lat;
|
116 |
$query->params[] = $lng;
|
117 |
|
118 |
+
$query->params[] = $radius;
|
119 |
}
|
120 |
|
121 |
public function getQuery()
|
includes/class.plugin.php
CHANGED
@@ -50,7 +50,7 @@ class Plugin extends Factory
|
|
50 |
$this->mysqlVersion = $wpdb->get_var('SELECT VERSION()');
|
51 |
|
52 |
// TODO: Could / should cache this above
|
53 |
-
if(!empty($this->mysqlVersion) && preg_match('/^\d+/', $this->mysqlVersion, $majorVersion) && (int)$majorVersion[0]
|
54 |
$this->_spatialFunctionPrefix = 'ST_';
|
55 |
|
56 |
$this->legacySettings = get_option('WPGMZA_OTHER_SETTINGS');
|
50 |
$this->mysqlVersion = $wpdb->get_var('SELECT VERSION()');
|
51 |
|
52 |
// TODO: Could / should cache this above
|
53 |
+
if(!empty($this->mysqlVersion) && preg_match('/^\d+/', $this->mysqlVersion, $majorVersion) && (int)$majorVersion[0] >= 8)
|
54 |
$this->_spatialFunctionPrefix = 'ST_';
|
55 |
|
56 |
$this->legacySettings = get_option('WPGMZA_OTHER_SETTINGS');
|
includes/class.strings.php
CHANGED
@@ -25,7 +25,8 @@ class Strings
|
|
25 |
'api_dashboard' => __('API Dashboard', 'wp-google-maps'),
|
26 |
'verify_project' => __('Verify Project', 'wp-google-maps'),
|
27 |
|
28 |
-
'failed_to_get_address' => __('Failed to get address', 'wp-google-maps')
|
|
|
29 |
));
|
30 |
}
|
31 |
|
25 |
'api_dashboard' => __('API Dashboard', 'wp-google-maps'),
|
26 |
'verify_project' => __('Verify Project', 'wp-google-maps'),
|
27 |
|
28 |
+
'failed_to_get_address' => __('Failed to get address', 'wp-google-maps'),
|
29 |
+
'failed_to_create_marker' => __('Failed to create marker %d - this marker will cannot be placed on the map.', 'wp-google-maps')
|
30 |
));
|
31 |
}
|
32 |
|
js/v8/map.js
CHANGED
@@ -110,9 +110,9 @@ jQuery(function($) {
|
|
110 |
|
111 |
delete settings.other_settings;
|
112 |
|
113 |
-
if(other_settings)
|
114 |
for(var key in other_settings)
|
115 |
-
settings[key] = other_settings[key]
|
116 |
|
117 |
if(options)
|
118 |
for(var key in options)
|
110 |
|
111 |
delete settings.other_settings;
|
112 |
|
113 |
+
/*if(other_settings)
|
114 |
for(var key in other_settings)
|
115 |
+
settings[key] = other_settings[key];*/
|
116 |
|
117 |
if(options)
|
118 |
for(var key in options)
|
js/v8/tables/datatable.js
CHANGED
@@ -54,286 +54,287 @@ jQuery(function($) {
|
|
54 |
}
|
55 |
|
56 |
var languageURL;
|
57 |
-
|
58 |
-
switch(WPGMZA.locale.substr(0, 2))
|
59 |
-
{
|
60 |
-
case "af":
|
61 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Afrikaans.json";
|
62 |
-
break;
|
63 |
-
|
64 |
-
case "sq":
|
65 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Albanian.json";
|
66 |
-
break;
|
67 |
-
|
68 |
-
case "am":
|
69 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Amharic.json";
|
70 |
-
break;
|
71 |
-
|
72 |
-
case "ar":
|
73 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json";
|
74 |
-
break;
|
75 |
-
|
76 |
-
case "hy":
|
77 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Armenian.json";
|
78 |
-
break;
|
79 |
-
|
80 |
-
case "az":
|
81 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Azerbaijan.json";
|
82 |
-
break;
|
83 |
-
|
84 |
-
case "bn":
|
85 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Bangla.json";
|
86 |
-
break;
|
87 |
-
|
88 |
-
case "eu":
|
89 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Basque.json";
|
90 |
-
break;
|
91 |
-
|
92 |
-
case "be":
|
93 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Belarusian.json";
|
94 |
-
break;
|
95 |
-
|
96 |
-
case "bg":
|
97 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Bulgarian.json";
|
98 |
-
break;
|
99 |
-
|
100 |
-
case "ca":
|
101 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Catalan.json";
|
102 |
-
break;
|
103 |
-
|
104 |
-
case "zh":
|
105 |
-
if(WPGMZA.locale == "zh_TW")
|
106 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese-traditional.json";
|
107 |
-
else
|
108 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese.json";
|
109 |
-
break;
|
110 |
-
|
111 |
-
case "hr":
|
112 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Croatian.json";
|
113 |
-
break;
|
114 |
-
|
115 |
-
case "cs":
|
116 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Czech.json";
|
117 |
-
break;
|
118 |
-
|
119 |
-
case "da":
|
120 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Danish.json";
|
121 |
-
break;
|
122 |
-
|
123 |
-
case "nl":
|
124 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Dutch.json";
|
125 |
-
break;
|
126 |
-
|
127 |
-
/*case "en":
|
128 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/English.json";
|
129 |
-
break;*/
|
130 |
-
|
131 |
-
case "et":
|
132 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Estonian.json";
|
133 |
-
break;
|
134 |
-
|
135 |
-
case "fi":
|
136 |
-
if(WPGMZA.locale.match(/^fil/))
|
137 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Filipino.json";
|
138 |
-
else
|
139 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Finnish.json";
|
140 |
-
break;
|
141 |
-
|
142 |
-
case "fr":
|
143 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/French.json";
|
144 |
-
break;
|
145 |
-
|
146 |
-
case "gl":
|
147 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Galician.json";
|
148 |
-
break;
|
149 |
-
|
150 |
-
case "ka":
|
151 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Georgian.json";
|
152 |
-
break;
|
153 |
-
|
154 |
-
case "de":
|
155 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/German.json";
|
156 |
-
break;
|
157 |
-
|
158 |
-
case "el":
|
159 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Greek.json";
|
160 |
-
break;
|
161 |
-
|
162 |
-
case "gu":
|
163 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Gujarati.json";
|
164 |
-
break;
|
165 |
-
|
166 |
-
case "he":
|
167 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hebrew.json";
|
168 |
-
break;
|
169 |
-
|
170 |
-
case "hi":
|
171 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hindi.json";
|
172 |
-
break;
|
173 |
-
|
174 |
-
case "hu":
|
175 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hungarian.json";
|
176 |
-
break;
|
177 |
-
|
178 |
-
case "is":
|
179 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Icelandic.json";
|
180 |
-
break;
|
181 |
-
|
182 |
-
/*case "id":
|
183 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian-Alternative.json";
|
184 |
-
break;*/
|
185 |
-
|
186 |
-
case "id":
|
187 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian.json";
|
188 |
-
break;
|
189 |
-
|
190 |
-
case "ga":
|
191 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Irish.json";
|
192 |
-
break;
|
193 |
-
|
194 |
-
case "it":
|
195 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Italian.json";
|
196 |
-
break;
|
197 |
-
|
198 |
-
case "ja":
|
199 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Japanese.json";
|
200 |
-
break;
|
201 |
-
|
202 |
-
case "kk":
|
203 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Kazakh.json";
|
204 |
-
break;
|
205 |
-
|
206 |
-
case "ko":
|
207 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Korean.json";
|
208 |
-
break;
|
209 |
-
|
210 |
-
case "ky":
|
211 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Kyrgyz.json";
|
212 |
-
break;
|
213 |
-
|
214 |
-
case "lv":
|
215 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Latvian.json";
|
216 |
-
break;
|
217 |
-
|
218 |
-
case "lt":
|
219 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Lithuanian.json";
|
220 |
-
break;
|
221 |
-
|
222 |
-
case "mk":
|
223 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Macedonian.json";
|
224 |
-
break;
|
225 |
-
|
226 |
-
case "ml":
|
227 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Malay.json";
|
228 |
-
break;
|
229 |
-
|
230 |
-
case "mn":
|
231 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Mongolian.json";
|
232 |
-
break;
|
233 |
-
|
234 |
-
case "ne":
|
235 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Nepali.json";
|
236 |
-
break;
|
237 |
-
|
238 |
-
case "nb":
|
239 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Bokmal.json";
|
240 |
-
break;
|
241 |
-
|
242 |
-
case "nn":
|
243 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Nynorsk.json";
|
244 |
-
break;
|
245 |
-
|
246 |
-
case "ps":
|
247 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Pashto.json";
|
248 |
-
break;
|
249 |
-
|
250 |
-
case "fa":
|
251 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Persian.json";
|
252 |
-
break;
|
253 |
-
|
254 |
-
case "pl":
|
255 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Polish.json";
|
256 |
-
break;
|
257 |
-
|
258 |
-
case "pt":
|
259 |
-
if(WPGMZA.locale == "pt_BR")
|
260 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese-Brasil.json";
|
261 |
-
else
|
262 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese.json";
|
263 |
-
break;
|
264 |
-
|
265 |
-
case "ro":
|
266 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Romanian.json";
|
267 |
-
break;
|
268 |
-
|
269 |
-
case "ru":
|
270 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Russian.json";
|
271 |
-
break;
|
272 |
-
|
273 |
-
case "sr":
|
274 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Serbian.json";
|
275 |
-
break;
|
276 |
-
|
277 |
-
case "si":
|
278 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Sinhala.json";
|
279 |
-
break;
|
280 |
-
|
281 |
-
case "sk":
|
282 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Slovak.json";
|
283 |
-
break;
|
284 |
-
|
285 |
-
case "sl":
|
286 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Slovenian.json";
|
287 |
-
break;
|
288 |
-
|
289 |
-
case "es":
|
290 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Spanish.json";
|
291 |
-
break;
|
292 |
-
|
293 |
-
case "sw":
|
294 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Swahili.json";
|
295 |
-
break;
|
296 |
-
|
297 |
-
case "sv":
|
298 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Swedish.json";
|
299 |
-
break;
|
300 |
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
if(languageURL)
|
339 |
options.language = {
|
54 |
}
|
55 |
|
56 |
var languageURL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
+
if(WPGMZA.locale)
|
59 |
+
switch(WPGMZA.locale.substr(0, 2))
|
60 |
+
{
|
61 |
+
case "af":
|
62 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Afrikaans.json";
|
63 |
+
break;
|
64 |
+
|
65 |
+
case "sq":
|
66 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Albanian.json";
|
67 |
+
break;
|
68 |
+
|
69 |
+
case "am":
|
70 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Amharic.json";
|
71 |
+
break;
|
72 |
+
|
73 |
+
case "ar":
|
74 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json";
|
75 |
+
break;
|
76 |
+
|
77 |
+
case "hy":
|
78 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Armenian.json";
|
79 |
+
break;
|
80 |
+
|
81 |
+
case "az":
|
82 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Azerbaijan.json";
|
83 |
+
break;
|
84 |
+
|
85 |
+
case "bn":
|
86 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Bangla.json";
|
87 |
+
break;
|
88 |
+
|
89 |
+
case "eu":
|
90 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Basque.json";
|
91 |
+
break;
|
92 |
+
|
93 |
+
case "be":
|
94 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Belarusian.json";
|
95 |
+
break;
|
96 |
+
|
97 |
+
case "bg":
|
98 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Bulgarian.json";
|
99 |
+
break;
|
100 |
+
|
101 |
+
case "ca":
|
102 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Catalan.json";
|
103 |
+
break;
|
104 |
+
|
105 |
+
case "zh":
|
106 |
+
if(WPGMZA.locale == "zh_TW")
|
107 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese-traditional.json";
|
108 |
+
else
|
109 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese.json";
|
110 |
+
break;
|
111 |
+
|
112 |
+
case "hr":
|
113 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Croatian.json";
|
114 |
+
break;
|
115 |
+
|
116 |
+
case "cs":
|
117 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Czech.json";
|
118 |
+
break;
|
119 |
+
|
120 |
+
case "da":
|
121 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Danish.json";
|
122 |
+
break;
|
123 |
+
|
124 |
+
case "nl":
|
125 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Dutch.json";
|
126 |
+
break;
|
127 |
+
|
128 |
+
/*case "en":
|
129 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/English.json";
|
130 |
+
break;*/
|
131 |
+
|
132 |
+
case "et":
|
133 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Estonian.json";
|
134 |
+
break;
|
135 |
+
|
136 |
+
case "fi":
|
137 |
+
if(WPGMZA.locale.match(/^fil/))
|
138 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Filipino.json";
|
139 |
+
else
|
140 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Finnish.json";
|
141 |
+
break;
|
142 |
+
|
143 |
+
case "fr":
|
144 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/French.json";
|
145 |
+
break;
|
146 |
+
|
147 |
+
case "gl":
|
148 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Galician.json";
|
149 |
+
break;
|
150 |
+
|
151 |
+
case "ka":
|
152 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Georgian.json";
|
153 |
+
break;
|
154 |
+
|
155 |
+
case "de":
|
156 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/German.json";
|
157 |
+
break;
|
158 |
+
|
159 |
+
case "el":
|
160 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Greek.json";
|
161 |
+
break;
|
162 |
+
|
163 |
+
case "gu":
|
164 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Gujarati.json";
|
165 |
+
break;
|
166 |
+
|
167 |
+
case "he":
|
168 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hebrew.json";
|
169 |
+
break;
|
170 |
+
|
171 |
+
case "hi":
|
172 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hindi.json";
|
173 |
+
break;
|
174 |
+
|
175 |
+
case "hu":
|
176 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hungarian.json";
|
177 |
+
break;
|
178 |
+
|
179 |
+
case "is":
|
180 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Icelandic.json";
|
181 |
+
break;
|
182 |
+
|
183 |
+
/*case "id":
|
184 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian-Alternative.json";
|
185 |
+
break;*/
|
186 |
+
|
187 |
+
case "id":
|
188 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian.json";
|
189 |
+
break;
|
190 |
+
|
191 |
+
case "ga":
|
192 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Irish.json";
|
193 |
+
break;
|
194 |
+
|
195 |
+
case "it":
|
196 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Italian.json";
|
197 |
+
break;
|
198 |
+
|
199 |
+
case "ja":
|
200 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Japanese.json";
|
201 |
+
break;
|
202 |
+
|
203 |
+
case "kk":
|
204 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Kazakh.json";
|
205 |
+
break;
|
206 |
+
|
207 |
+
case "ko":
|
208 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Korean.json";
|
209 |
+
break;
|
210 |
+
|
211 |
+
case "ky":
|
212 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Kyrgyz.json";
|
213 |
+
break;
|
214 |
+
|
215 |
+
case "lv":
|
216 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Latvian.json";
|
217 |
+
break;
|
218 |
+
|
219 |
+
case "lt":
|
220 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Lithuanian.json";
|
221 |
+
break;
|
222 |
+
|
223 |
+
case "mk":
|
224 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Macedonian.json";
|
225 |
+
break;
|
226 |
+
|
227 |
+
case "ml":
|
228 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Malay.json";
|
229 |
+
break;
|
230 |
+
|
231 |
+
case "mn":
|
232 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Mongolian.json";
|
233 |
+
break;
|
234 |
+
|
235 |
+
case "ne":
|
236 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Nepali.json";
|
237 |
+
break;
|
238 |
+
|
239 |
+
case "nb":
|
240 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Bokmal.json";
|
241 |
+
break;
|
242 |
+
|
243 |
+
case "nn":
|
244 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Nynorsk.json";
|
245 |
+
break;
|
246 |
+
|
247 |
+
case "ps":
|
248 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Pashto.json";
|
249 |
+
break;
|
250 |
+
|
251 |
+
case "fa":
|
252 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Persian.json";
|
253 |
+
break;
|
254 |
+
|
255 |
+
case "pl":
|
256 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Polish.json";
|
257 |
+
break;
|
258 |
+
|
259 |
+
case "pt":
|
260 |
+
if(WPGMZA.locale == "pt_BR")
|
261 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese-Brasil.json";
|
262 |
+
else
|
263 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese.json";
|
264 |
+
break;
|
265 |
+
|
266 |
+
case "ro":
|
267 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Romanian.json";
|
268 |
+
break;
|
269 |
+
|
270 |
+
case "ru":
|
271 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Russian.json";
|
272 |
+
break;
|
273 |
+
|
274 |
+
case "sr":
|
275 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Serbian.json";
|
276 |
+
break;
|
277 |
+
|
278 |
+
case "si":
|
279 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Sinhala.json";
|
280 |
+
break;
|
281 |
+
|
282 |
+
case "sk":
|
283 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Slovak.json";
|
284 |
+
break;
|
285 |
+
|
286 |
+
case "sl":
|
287 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Slovenian.json";
|
288 |
+
break;
|
289 |
+
|
290 |
+
case "es":
|
291 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Spanish.json";
|
292 |
+
break;
|
293 |
+
|
294 |
+
case "sw":
|
295 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Swahili.json";
|
296 |
+
break;
|
297 |
+
|
298 |
+
case "sv":
|
299 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Swedish.json";
|
300 |
+
break;
|
301 |
+
|
302 |
+
case "ta":
|
303 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Tamil.json";
|
304 |
+
break;
|
305 |
+
|
306 |
+
case "te":
|
307 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/telugu.json";
|
308 |
+
break;
|
309 |
+
|
310 |
+
case "th":
|
311 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Thai.json";
|
312 |
+
break;
|
313 |
+
|
314 |
+
case "tr":
|
315 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Turkish.json";
|
316 |
+
break;
|
317 |
+
|
318 |
+
case "uk":
|
319 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Ukrainian.json";
|
320 |
+
break;
|
321 |
+
|
322 |
+
case "ur":
|
323 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Urdu.json";
|
324 |
+
break;
|
325 |
+
|
326 |
+
case "uz":
|
327 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Uzbek.json";
|
328 |
+
break;
|
329 |
+
|
330 |
+
case "vi":
|
331 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Vietnamese.json";
|
332 |
+
break;
|
333 |
+
|
334 |
+
case "cy":
|
335 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Welsh.json";
|
336 |
+
break;
|
337 |
+
}
|
338 |
|
339 |
if(languageURL)
|
340 |
options.language = {
|
js/v8/wp-google-maps.combined.js
CHANGED
@@ -2696,9 +2696,9 @@ jQuery(function($) {
|
|
2696 |
|
2697 |
delete settings.other_settings;
|
2698 |
|
2699 |
-
if(other_settings)
|
2700 |
for(var key in other_settings)
|
2701 |
-
settings[key] = other_settings[key]
|
2702 |
|
2703 |
if(options)
|
2704 |
for(var key in options)
|
@@ -8326,286 +8326,287 @@ jQuery(function($) {
|
|
8326 |
}
|
8327 |
|
8328 |
var languageURL;
|
8329 |
-
|
8330 |
-
switch(WPGMZA.locale.substr(0, 2))
|
8331 |
-
{
|
8332 |
-
case "af":
|
8333 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Afrikaans.json";
|
8334 |
-
break;
|
8335 |
|
8336 |
-
|
8337 |
-
|
8338 |
-
|
|
|
|
|
|
|
8339 |
|
8340 |
-
|
8341 |
-
|
8342 |
-
|
8343 |
|
8344 |
-
|
8345 |
-
|
8346 |
-
|
8347 |
|
8348 |
-
|
8349 |
-
|
8350 |
-
|
8351 |
|
8352 |
-
|
8353 |
-
|
8354 |
-
|
8355 |
|
8356 |
-
|
8357 |
-
|
8358 |
-
|
8359 |
|
8360 |
-
|
8361 |
-
|
8362 |
-
|
8363 |
|
8364 |
-
|
8365 |
-
|
8366 |
-
|
8367 |
|
8368 |
-
|
8369 |
-
|
8370 |
-
|
8371 |
|
8372 |
-
|
8373 |
-
|
8374 |
-
|
8375 |
|
8376 |
-
|
8377 |
-
|
8378 |
-
|
8379 |
-
else
|
8380 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese.json";
|
8381 |
-
break;
|
8382 |
|
8383 |
-
|
8384 |
-
|
8385 |
-
|
|
|
|
|
|
|
8386 |
|
8387 |
-
|
8388 |
-
|
8389 |
-
|
8390 |
|
8391 |
-
|
8392 |
-
|
8393 |
-
|
8394 |
|
8395 |
-
|
8396 |
-
|
8397 |
-
|
8398 |
|
8399 |
-
|
8400 |
-
|
8401 |
-
|
8402 |
|
8403 |
-
|
8404 |
-
|
8405 |
-
|
8406 |
|
8407 |
-
|
8408 |
-
|
8409 |
-
|
8410 |
-
else
|
8411 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Finnish.json";
|
8412 |
-
break;
|
8413 |
|
8414 |
-
|
8415 |
-
|
8416 |
-
|
|
|
|
|
|
|
8417 |
|
8418 |
-
|
8419 |
-
|
8420 |
-
|
8421 |
|
8422 |
-
|
8423 |
-
|
8424 |
-
|
8425 |
|
8426 |
-
|
8427 |
-
|
8428 |
-
|
8429 |
|
8430 |
-
|
8431 |
-
|
8432 |
-
|
8433 |
|
8434 |
-
|
8435 |
-
|
8436 |
-
|
8437 |
|
8438 |
-
|
8439 |
-
|
8440 |
-
|
8441 |
|
8442 |
-
|
8443 |
-
|
8444 |
-
|
8445 |
|
8446 |
-
|
8447 |
-
|
8448 |
-
|
8449 |
|
8450 |
-
|
8451 |
-
|
8452 |
-
|
8453 |
|
8454 |
-
|
8455 |
-
|
8456 |
-
|
8457 |
-
|
8458 |
-
case "id":
|
8459 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian.json";
|
8460 |
-
break;
|
8461 |
|
8462 |
-
|
8463 |
-
|
8464 |
-
|
|
|
|
|
|
|
|
|
8465 |
|
8466 |
-
|
8467 |
-
|
8468 |
-
|
8469 |
|
8470 |
-
|
8471 |
-
|
8472 |
-
|
8473 |
|
8474 |
-
|
8475 |
-
|
8476 |
-
|
8477 |
|
8478 |
-
|
8479 |
-
|
8480 |
-
|
8481 |
|
8482 |
-
|
8483 |
-
|
8484 |
-
|
8485 |
|
8486 |
-
|
8487 |
-
|
8488 |
-
|
8489 |
|
8490 |
-
|
8491 |
-
|
8492 |
-
|
8493 |
|
8494 |
-
|
8495 |
-
|
8496 |
-
|
8497 |
|
8498 |
-
|
8499 |
-
|
8500 |
-
|
8501 |
|
8502 |
-
|
8503 |
-
|
8504 |
-
|
8505 |
|
8506 |
-
|
8507 |
-
|
8508 |
-
|
8509 |
|
8510 |
-
|
8511 |
-
|
8512 |
-
|
8513 |
-
|
8514 |
-
case "nn":
|
8515 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Nynorsk.json";
|
8516 |
-
break;
|
8517 |
-
|
8518 |
-
case "ps":
|
8519 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Pashto.json";
|
8520 |
-
break;
|
8521 |
|
8522 |
-
|
8523 |
-
|
8524 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8525 |
|
8526 |
-
|
8527 |
-
|
8528 |
-
|
8529 |
|
8530 |
-
|
8531 |
-
|
8532 |
-
|
8533 |
-
else
|
8534 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese.json";
|
8535 |
-
break;
|
8536 |
-
|
8537 |
-
case "ro":
|
8538 |
-
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Romanian.json";
|
8539 |
-
break;
|
8540 |
|
8541 |
-
|
8542 |
-
|
8543 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8544 |
|
8545 |
-
|
8546 |
-
|
8547 |
-
|
8548 |
|
8549 |
-
|
8550 |
-
|
8551 |
-
|
8552 |
|
8553 |
-
|
8554 |
-
|
8555 |
-
|
8556 |
|
8557 |
-
|
8558 |
-
|
8559 |
-
|
8560 |
|
8561 |
-
|
8562 |
-
|
8563 |
-
|
8564 |
|
8565 |
-
|
8566 |
-
|
8567 |
-
|
8568 |
|
8569 |
-
|
8570 |
-
|
8571 |
-
|
8572 |
|
8573 |
-
|
8574 |
-
|
8575 |
-
|
8576 |
|
8577 |
-
|
8578 |
-
|
8579 |
-
|
8580 |
|
8581 |
-
|
8582 |
-
|
8583 |
-
|
8584 |
|
8585 |
-
|
8586 |
-
|
8587 |
-
|
8588 |
|
8589 |
-
|
8590 |
-
|
8591 |
-
|
8592 |
|
8593 |
-
|
8594 |
-
|
8595 |
-
|
8596 |
|
8597 |
-
|
8598 |
-
|
8599 |
-
|
8600 |
|
8601 |
-
|
8602 |
-
|
8603 |
-
|
8604 |
|
8605 |
-
|
8606 |
-
|
8607 |
-
|
8608 |
-
|
|
|
|
|
|
|
|
|
8609 |
|
8610 |
if(languageURL)
|
8611 |
options.language = {
|
2696 |
|
2697 |
delete settings.other_settings;
|
2698 |
|
2699 |
+
/*if(other_settings)
|
2700 |
for(var key in other_settings)
|
2701 |
+
settings[key] = other_settings[key];*/
|
2702 |
|
2703 |
if(options)
|
2704 |
for(var key in options)
|
8326 |
}
|
8327 |
|
8328 |
var languageURL;
|
|
|
|
|
|
|
|
|
|
|
|
|
8329 |
|
8330 |
+
if(WPGMZA.locale)
|
8331 |
+
switch(WPGMZA.locale.substr(0, 2))
|
8332 |
+
{
|
8333 |
+
case "af":
|
8334 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Afrikaans.json";
|
8335 |
+
break;
|
8336 |
|
8337 |
+
case "sq":
|
8338 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Albanian.json";
|
8339 |
+
break;
|
8340 |
|
8341 |
+
case "am":
|
8342 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Amharic.json";
|
8343 |
+
break;
|
8344 |
|
8345 |
+
case "ar":
|
8346 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json";
|
8347 |
+
break;
|
8348 |
|
8349 |
+
case "hy":
|
8350 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Armenian.json";
|
8351 |
+
break;
|
8352 |
|
8353 |
+
case "az":
|
8354 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Azerbaijan.json";
|
8355 |
+
break;
|
8356 |
|
8357 |
+
case "bn":
|
8358 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Bangla.json";
|
8359 |
+
break;
|
8360 |
|
8361 |
+
case "eu":
|
8362 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Basque.json";
|
8363 |
+
break;
|
8364 |
|
8365 |
+
case "be":
|
8366 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Belarusian.json";
|
8367 |
+
break;
|
8368 |
|
8369 |
+
case "bg":
|
8370 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Bulgarian.json";
|
8371 |
+
break;
|
8372 |
|
8373 |
+
case "ca":
|
8374 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Catalan.json";
|
8375 |
+
break;
|
|
|
|
|
|
|
8376 |
|
8377 |
+
case "zh":
|
8378 |
+
if(WPGMZA.locale == "zh_TW")
|
8379 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese-traditional.json";
|
8380 |
+
else
|
8381 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Chinese.json";
|
8382 |
+
break;
|
8383 |
|
8384 |
+
case "hr":
|
8385 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Croatian.json";
|
8386 |
+
break;
|
8387 |
|
8388 |
+
case "cs":
|
8389 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Czech.json";
|
8390 |
+
break;
|
8391 |
|
8392 |
+
case "da":
|
8393 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Danish.json";
|
8394 |
+
break;
|
8395 |
|
8396 |
+
case "nl":
|
8397 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Dutch.json";
|
8398 |
+
break;
|
8399 |
|
8400 |
+
/*case "en":
|
8401 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/English.json";
|
8402 |
+
break;*/
|
8403 |
|
8404 |
+
case "et":
|
8405 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Estonian.json";
|
8406 |
+
break;
|
|
|
|
|
|
|
8407 |
|
8408 |
+
case "fi":
|
8409 |
+
if(WPGMZA.locale.match(/^fil/))
|
8410 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Filipino.json";
|
8411 |
+
else
|
8412 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Finnish.json";
|
8413 |
+
break;
|
8414 |
|
8415 |
+
case "fr":
|
8416 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/French.json";
|
8417 |
+
break;
|
8418 |
|
8419 |
+
case "gl":
|
8420 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Galician.json";
|
8421 |
+
break;
|
8422 |
|
8423 |
+
case "ka":
|
8424 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Georgian.json";
|
8425 |
+
break;
|
8426 |
|
8427 |
+
case "de":
|
8428 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/German.json";
|
8429 |
+
break;
|
8430 |
|
8431 |
+
case "el":
|
8432 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Greek.json";
|
8433 |
+
break;
|
8434 |
|
8435 |
+
case "gu":
|
8436 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Gujarati.json";
|
8437 |
+
break;
|
8438 |
|
8439 |
+
case "he":
|
8440 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hebrew.json";
|
8441 |
+
break;
|
8442 |
|
8443 |
+
case "hi":
|
8444 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hindi.json";
|
8445 |
+
break;
|
8446 |
|
8447 |
+
case "hu":
|
8448 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Hungarian.json";
|
8449 |
+
break;
|
8450 |
|
8451 |
+
case "is":
|
8452 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Icelandic.json";
|
8453 |
+
break;
|
|
|
|
|
|
|
|
|
8454 |
|
8455 |
+
/*case "id":
|
8456 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian-Alternative.json";
|
8457 |
+
break;*/
|
8458 |
+
|
8459 |
+
case "id":
|
8460 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Indonesian.json";
|
8461 |
+
break;
|
8462 |
|
8463 |
+
case "ga":
|
8464 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Irish.json";
|
8465 |
+
break;
|
8466 |
|
8467 |
+
case "it":
|
8468 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Italian.json";
|
8469 |
+
break;
|
8470 |
|
8471 |
+
case "ja":
|
8472 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Japanese.json";
|
8473 |
+
break;
|
8474 |
|
8475 |
+
case "kk":
|
8476 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Kazakh.json";
|
8477 |
+
break;
|
8478 |
|
8479 |
+
case "ko":
|
8480 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Korean.json";
|
8481 |
+
break;
|
8482 |
|
8483 |
+
case "ky":
|
8484 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Kyrgyz.json";
|
8485 |
+
break;
|
8486 |
|
8487 |
+
case "lv":
|
8488 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Latvian.json";
|
8489 |
+
break;
|
8490 |
|
8491 |
+
case "lt":
|
8492 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Lithuanian.json";
|
8493 |
+
break;
|
8494 |
|
8495 |
+
case "mk":
|
8496 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Macedonian.json";
|
8497 |
+
break;
|
8498 |
|
8499 |
+
case "ml":
|
8500 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Malay.json";
|
8501 |
+
break;
|
8502 |
|
8503 |
+
case "mn":
|
8504 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Mongolian.json";
|
8505 |
+
break;
|
8506 |
|
8507 |
+
case "ne":
|
8508 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Nepali.json";
|
8509 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8510 |
|
8511 |
+
case "nb":
|
8512 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Bokmal.json";
|
8513 |
+
break;
|
8514 |
+
|
8515 |
+
case "nn":
|
8516 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Norwegian-Nynorsk.json";
|
8517 |
+
break;
|
8518 |
+
|
8519 |
+
case "ps":
|
8520 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Pashto.json";
|
8521 |
+
break;
|
8522 |
|
8523 |
+
case "fa":
|
8524 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Persian.json";
|
8525 |
+
break;
|
8526 |
|
8527 |
+
case "pl":
|
8528 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Polish.json";
|
8529 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8530 |
|
8531 |
+
case "pt":
|
8532 |
+
if(WPGMZA.locale == "pt_BR")
|
8533 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese-Brasil.json";
|
8534 |
+
else
|
8535 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese.json";
|
8536 |
+
break;
|
8537 |
+
|
8538 |
+
case "ro":
|
8539 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Romanian.json";
|
8540 |
+
break;
|
8541 |
|
8542 |
+
case "ru":
|
8543 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Russian.json";
|
8544 |
+
break;
|
8545 |
|
8546 |
+
case "sr":
|
8547 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Serbian.json";
|
8548 |
+
break;
|
8549 |
|
8550 |
+
case "si":
|
8551 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Sinhala.json";
|
8552 |
+
break;
|
8553 |
|
8554 |
+
case "sk":
|
8555 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Slovak.json";
|
8556 |
+
break;
|
8557 |
|
8558 |
+
case "sl":
|
8559 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Slovenian.json";
|
8560 |
+
break;
|
8561 |
|
8562 |
+
case "es":
|
8563 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Spanish.json";
|
8564 |
+
break;
|
8565 |
|
8566 |
+
case "sw":
|
8567 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Swahili.json";
|
8568 |
+
break;
|
8569 |
|
8570 |
+
case "sv":
|
8571 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Swedish.json";
|
8572 |
+
break;
|
8573 |
|
8574 |
+
case "ta":
|
8575 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Tamil.json";
|
8576 |
+
break;
|
8577 |
|
8578 |
+
case "te":
|
8579 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/telugu.json";
|
8580 |
+
break;
|
8581 |
|
8582 |
+
case "th":
|
8583 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Thai.json";
|
8584 |
+
break;
|
8585 |
|
8586 |
+
case "tr":
|
8587 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Turkish.json";
|
8588 |
+
break;
|
8589 |
|
8590 |
+
case "uk":
|
8591 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Ukrainian.json";
|
8592 |
+
break;
|
8593 |
|
8594 |
+
case "ur":
|
8595 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Urdu.json";
|
8596 |
+
break;
|
8597 |
|
8598 |
+
case "uz":
|
8599 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Uzbek.json";
|
8600 |
+
break;
|
8601 |
|
8602 |
+
case "vi":
|
8603 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Vietnamese.json";
|
8604 |
+
break;
|
8605 |
+
|
8606 |
+
case "cy":
|
8607 |
+
languageURL = "//cdn.datatables.net/plug-ins/1.10.12/i18n/Welsh.json";
|
8608 |
+
break;
|
8609 |
+
}
|
8610 |
|
8611 |
if(languageURL)
|
8612 |
options.language = {
|
js/v8/wp-google-maps.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function($){var core={maps:[],events:null,settings:null,restAPI:null,localized_strings:null,loadingHTML:'<div class="wpgmza-preloader"><div class="wpgmza-loader">...</div></div>',getScrollAnimationOffset:function(){return WPGMZA.settings.scroll_animation_offset||0},animateScroll:function(element,milliseconds){var offset=WPGMZA.getScrollAnimationOffset();milliseconds||(milliseconds=WPGMZA.settings.scroll_animation_milliseconds?WPGMZA.settings.scroll_animation_milliseconds:500),$("html, body").animate({scrollTop:$(element).offset().top-offset},milliseconds)},guid:function(){var d=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(d+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=(d+16*Math.random())%16|0;return d=Math.floor(d/16),("x"===c?r:3&r|8).toString(16)})},hexOpacityToRGBA:function(colour,opacity){return hex=parseInt(colour.replace(/^#/,""),16),[(16711680&hex)>>16,(65280&hex)>>8,255&hex,parseFloat(opacity)]},hexToRgba:function(hex){var c;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)?(3==(c=hex.substring(1).split("")).length&&(c=[c[0],c[0],c[1],c[1],c[2],c[2]]),c="0x"+c.join(""),{r:c>>16&255,g:c>>8&255,b:255&c,a:1}):0},rgbaToString:function(rgba){return"rgba("+rgba.r+", "+rgba.g+", "+rgba.b+", "+rgba.a+")"},latLngRegexp:/^(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)$/,isLatLngString:function(str){if("string"!=typeof str)return null;str.match(/^\(.+\)$/)&&(str=str.replace(/^\(|\)$/,""));var m=str.match(WPGMZA.latLngRegexp);return m?new WPGMZA.LatLng({lat:parseFloat(m[1]),lng:parseFloat(m[3])}):null},stringToLatLng:function(str){var result=WPGMZA.isLatLngString(str);if(!result)throw new Error("Not a valid latLng");return result},isHexColorString:function(str){return"string"==typeof str&&!!str.match(/#[0-9A-F]{6}/i)},imageDimensionsCache:{},getImageDimensions:function(src,callback){if(WPGMZA.imageDimensionsCache[src])callback(WPGMZA.imageDimensionsCache[src]);else{var img=document.createElement("img");img.onload=function(event){var result={width:image.width,height:image.height};WPGMZA.imageDimensionsCache[src]=result,callback(result)},img.src=src}},isDeveloperMode:function(){return this.developer_mode||window.Cookies&&window.Cookies.get("wpgmza-developer-mode")},isProVersion:function(){return"1"==this._isProVersion},openMediaDialog:function(callback){var file_frame;if(file_frame)return file_frame.uploader.uploader.param("post_id",set_to_post_id),void file_frame.open();(file_frame=wp.media.frames.file_frame=wp.media({title:"Select a image to upload",button:{text:"Use this image"},multiple:!1})).on("select",function(){attachment=file_frame.state().get("selection").first().toJSON(),callback(attachment.id,attachment.url)}),file_frame.open()},getCurrentPosition:function(callback,watch){var nativeFunction="getCurrentPosition";if(watch&&("userlocationupdated",nativeFunction="watchPosition",WPGMZA.getCurrentPosition(callback,!1)),navigator.geolocation){var options={enableHighAccuracy:!0};navigator.geolocation[nativeFunction](function(position){callback&&callback(position),WPGMZA.events.trigger("userlocationfound")},function(error){options.enableHighAccuracy=!1,navigator.geolocation[nativeFunction](function(position){callback&&callback(position),WPGMZA.events.trigger("userlocationfound")},function(error){console.warn(error.code,error.message)},options)},options)}else console.warn("No geolocation available on this device")},watchPosition:function(callback){return WPGMZA.getCurrentPosition(callback,!0)},runCatchableTask:function(callback,friendlyErrorContainer){if(WPGMZA.isDeveloperMode())callback();else try{callback()}catch(e){var friendlyError=new WPGMZA.FriendlyError(e);$(friendlyErrorContainer).html(""),$(friendlyErrorContainer).append(friendlyError.element),$(friendlyErrorContainer).show()}},assertInstanceOf:function(instance,instanceName){var engine,fullInstanceName,pro=WPGMZA.isProVersion()?"Pro":"";switch(WPGMZA.settings.engine){case"open-layers":engine="OL";break;default:engine="Google"}if(fullInstanceName=WPGMZA[engine+pro+instanceName]?engine+pro+instanceName:WPGMZA[pro+instanceName]?pro+instanceName:WPGMZA[engine+instanceName]?engine+instanceName:instanceName,!(instance instanceof WPGMZA[fullInstanceName]))throw new Error("Object must be an instance of "+fullInstanceName+" (did you call a constructor directly, rather than createInstance?)")},getMapByID:function(id){return WPGMZA.isProVersion()?MYMAP[id].map:MYMAP.map},isGoogleAutocompleteSupported:function(){return"object"==typeof google&&"object"==typeof google.maps&&"object"==typeof google.maps.places&&"function"==typeof google.maps.places.Autocomplete},googleAPIStatus:window.wpgmza_google_api_status,isSafari:function(){var ua=navigator.userAgent.toLowerCase();return-1!=ua.indexOf("safari")&&-1==ua.indexOf("chrome")},isTouchDevice:function(){return"ontouchstart"in window},isDeviceiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)}};window.WPGMZA?window.WPGMZA=$.extend(window.WPGMZA,core):window.WPGMZA=core;for(var key in WPGMZA_localized_data){var value=WPGMZA_localized_data[key];WPGMZA[key]=value}jQuery(function($){$("script[src*='wp-google-maps.combined.js'], script[src*='wp-google-maps-pro.combined.js']").length&&console.warn("Minified script is out of date, using combined script instead.");var elements=$("script").filter(function(){return this.src.match(/(^|\/)jquery\.(min\.)?js(\?|$)/i)});elements.length>1&&console.warn("Multiple jQuery versions detected: ",elements),WPGMZA.restAPI=WPGMZA.RestAPI.createInstance(),$(document).on("click",".wpgmza_edit_btn",function(){WPGMZA.animateScroll("#wpgmaps_tabs_markers")})}),$(window).on("load",function(event){if("https:"!=window.location.protocol){var warning='<div class="notice notice-warning"><p>'+WPGMZA.localized_strings.unsecure_geolocation+"</p></div>";$(".wpgmza-geolocation-setting").each(function(index,el){$(el).after($(warning))})}})}),jQuery(function($){WPGMZA.Compatibility=function(){this.preventDocumentWriteGoogleMapsAPI()},WPGMZA.Compatibility.prototype.preventDocumentWriteGoogleMapsAPI=function(){var old=document.write;document.write=function(content){content.match&&content.match(/maps\.google/)||old.call(document,content)}},WPGMZA.compatiblityModule=new WPGMZA.Compatibility}),function(root,factory){"object"==typeof exports?module.exports=factory(root):"function"==typeof define&&define.amd?define([],factory.bind(root,root)):factory(root)}("undefined"!=typeof global?global:this,function(root){if(root.CSS&&root.CSS.escape)return root.CSS.escape;var cssEscape=function(value){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var codeUnit,string=String(value),length=string.length,index=-1,result="",firstCodeUnit=string.charCodeAt(0);++index<length;)0!=(codeUnit=string.charCodeAt(index))?result+=codeUnit>=1&&codeUnit<=31||127==codeUnit||0==index&&codeUnit>=48&&codeUnit<=57||1==index&&codeUnit>=48&&codeUnit<=57&&45==firstCodeUnit?"\\"+codeUnit.toString(16)+" ":(0!=index||1!=length||45!=codeUnit)&&(codeUnit>=128||45==codeUnit||95==codeUnit||codeUnit>=48&&codeUnit<=57||codeUnit>=65&&codeUnit<=90||codeUnit>=97&&codeUnit<=122)?string.charAt(index):"\\"+string.charAt(index):result+="�";return result};return root.CSS||(root.CSS={}),root.CSS.escape=cssEscape,cssEscape}),jQuery(function($){function deg2rad(deg){return deg*(Math.PI/180)}Math.PI;WPGMZA.Distance={MILES:!0,KILOMETERS:!1,MILES_PER_KILOMETER:.621371,KILOMETERS_PER_MILE:1.60934,uiToMeters:function(uiDistance){return parseFloat(uiDistance)/(WPGMZA.settings.distance_units==WPGMZA.Distance.MILES?WPGMZA.Distance.MILES_PER_KILOMETER:1)*1e3},uiToKilometers:function(uiDistance){return.001*WPGMZA.Distance.uiToMeters(uiDistance)},uiToMiles:function(uiDistance){return WPGMZA.Distance.uiToKilometers(uiDistance)*WPGMZA.Distance.MILES_PER_KILOMETER},kilometersToUI:function(km){return WPGMZA.settings.distance_units==WPGMZA.Distance.MILES?km*WPGMZA.Distance.MILES_PER_KILOMETER:km},between:function(a,b){if(!(a instanceof WPGMZA.LatLng))throw new Error("First argument must be an instance of WPGMZA.LatLng");if(!(b instanceof WPGMZA.LatLng))throw new Error("Second argument must be an instance of WPGMZA.LatLng");if(a===b)return 0;var lat1=a.lat,lon1=a.lng,lat2=b.lat,lon2=b.lng,dLat=deg2rad(lat2-lat1),dLon=deg2rad(lon2-lon1),a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(deg2rad(lat1))*Math.cos(deg2rad(lat2))*Math.sin(dLon/2)*Math.sin(dLon/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}}}),jQuery(function($){WPGMZA.EventDispatcher=function(){WPGMZA.assertInstanceOf(this,"EventDispatcher"),this._listenersByType=[]},WPGMZA.EventDispatcher.prototype.addEventListener=function(type,listener,thisObject,useCapture){var arr,types=type.split(/\s+/);if(types.length>1)for(var i=0;i<types.length;i++)this.addEventListener(types[i],listener,thisObject,useCapture);else{if(!(listener instanceof Function))throw new Error("Listener must be a function");(arr=this._listenersByType[type])||(arr=this._listenersByType[type]=[]);var obj={listener:listener,thisObject:thisObject||this,useCapture:!!useCapture};arr.push(obj)}},WPGMZA.EventDispatcher.prototype.on=WPGMZA.EventDispatcher.prototype.addEventListener,WPGMZA.EventDispatcher.prototype.removeEventListener=function(type,listener,thisObject,useCapture){var arr,obj;if(arr=this._listenersByType[type]){thisObject||(thisObject=this),useCapture=!!useCapture;for(var i=0;i<arr.length;i++)if((obj=arr[i]).listener==listener&&obj.thisObject==thisObject&&obj.useCapture==useCapture)return void arr.splice(i,1)}},WPGMZA.EventDispatcher.prototype.off=WPGMZA.EventDispatcher.prototype.removeEventListener,WPGMZA.EventDispatcher.prototype.hasEventListener=function(type){return!!_listenersByType[type]},WPGMZA.EventDispatcher.prototype.dispatchEvent=function(event){if(!(event instanceof WPGMZA.Event))if("string"==typeof event)event=new WPGMZA.Event(event);else{var src=event;event=new WPGMZA.Event;for(var name in src)event[name]=src[name]}event.target=this;for(var path=[],obj=this.parent;null!=obj;obj=obj.parent)path.unshift(obj);event.phase=WPGMZA.Event.CAPTURING_PHASE;for(var i=0;i<path.length&&!event._cancelled;i++)path[i]._triggerListeners(event);if(!event._cancelled){for(event.phase=WPGMZA.Event.AT_TARGET,this._triggerListeners(event),event.phase=WPGMZA.Event.BUBBLING_PHASE,i=path.length-1;i>=0&&!event._cancelled;i--)path[i]._triggerListeners(event);if(this.element){var customEvent={};for(var key in event){var value=event[key];"type"==key&&(value+=".wpgmza"),customEvent[key]=value}$(this.element).trigger(customEvent)}}},WPGMZA.EventDispatcher.prototype.trigger=WPGMZA.EventDispatcher.prototype.dispatchEvent,WPGMZA.EventDispatcher.prototype._triggerListeners=function(event){var arr,obj;if(arr=this._listenersByType[event.type])for(var i=0;i<arr.length;i++)obj=arr[i],(event.phase!=WPGMZA.Event.CAPTURING_PHASE||obj.useCapture)&&obj.listener.call(arr[i].thisObject,event)},WPGMZA.events=new WPGMZA.EventDispatcher}),jQuery(function($){WPGMZA.Event=function(options){if("string"==typeof options&&(this.type=options),this.bubbles=!0,this.cancelable=!0,this.phase=WPGMZA.Event.PHASE_CAPTURE,this.target=null,this._cancelled=!1,"object"==typeof options)for(var name in options)this[name]=options[name]},WPGMZA.Event.CAPTURING_PHASE=0,WPGMZA.Event.AT_TARGET=1,WPGMZA.Event.BUBBLING_PHASE=2,WPGMZA.Event.prototype.stopPropagation=function(){this._cancelled=!0}}),jQuery(function($){WPGMZA.FriendlyError=function(){}}),jQuery(function($){WPGMZA.Geocoder=function(){WPGMZA.assertInstanceOf(this,"Geocoder")},WPGMZA.Geocoder.SUCCESS="success",WPGMZA.Geocoder.ZERO_RESULTS="zero-results",WPGMZA.Geocoder.FAIL="fail",WPGMZA.Geocoder.getConstructor=function(){switch(WPGMZA.settings.engine){case"open-layers":return WPGMZA.OLGeocoder;default:return WPGMZA.GoogleGeocoder}},WPGMZA.Geocoder.createInstance=function(){return new(WPGMZA.Geocoder.getConstructor())},WPGMZA.Geocoder.prototype.getLatLngFromAddress=function(options,callback){if(WPGMZA.isLatLngString(options.address)){var parts=options.address.split(/,\s*/);callback([new WPGMZA.LatLng({lat:parseFloat(parts[0]),lng:parseFloat(parts[1])})],WPGMZA.Geocoder.SUCCESS)}},WPGMZA.Geocoder.prototype.getAddressFromLatLng=function(options,callback){callback([new WPGMZA.LatLng(options.latLng).toString()],WPGMZA.Geocoder.SUCCESS)},WPGMZA.Geocoder.prototype.geocode=function(options,callback){if("address"in options)return this.getLatLngFromAddress(options,callback);if("latLng"in options)return this.getAddressFromLatLng(options,callback);throw new Error("You must supply either a latLng or address")}}),jQuery(function($){WPGMZA.GoogleAPIErrorHandler=function(){var self=this;if("google-maps"==WPGMZA.settings.engine&&("map-edit"==WPGMZA.currentPage||0==WPGMZA.is_admin&&1==WPGMZA.userCanAdministrator)&&(this.element=$(WPGMZA.html.googleMapsAPIErrorDialog),1==WPGMZA.is_admin&&this.element.find(".wpgmza-front-end-only").remove(),this.errorMessageList=this.element.find("#wpgmza-google-api-error-list"),this.templateListItem=this.element.find("li.template").remove(),this.messagesAlreadyDisplayed={},!WPGMZA.settings.developer_mode)){var _error=console.error;console.error=function(message){self.onErrorMessage(message),_error.apply(this,arguments)},"google-maps"!=WPGMZA.settings.engine||WPGMZA.settings.wpgmza_google_maps_api_key&&WPGMZA.settings.wpgmza_google_maps_api_key.length||this.addErrorMessage(WPGMZA.localized_strings.no_google_maps_api_key,"https://www.wpgmaps.com/get-a-google-maps-api-key/")}},WPGMZA.GoogleAPIErrorHandler.prototype.onErrorMessage=function(message){var m;if(message)if((m=message.match(/You have exceeded your (daily )?request quota for this API/))||(m=message.match(/This API project is not authorized to use this API/))||(m=message.match(/^Geocoding Service: .+/))){var urls=message.match(/http(s)?:\/\/[^\s]+/gm);this.addErrorMessage(m[0],urls)}else(m=message.match(/^Google Maps.+error: (.+)\s+(http(s?):\/\/.+)/m))&&this.addErrorMessage(m[1].replace(/([A-Z])/g," $1"),[m[2]])},WPGMZA.GoogleAPIErrorHandler.prototype.addErrorMessage=function(message,urls){if(!this.messagesAlreadyDisplayed[message]){var li=this.templateListItem.clone();$(li).find(".wpgmza-message").html(message);var buttonContainer=$(li).find(".wpgmza-documentation-buttons"),buttonTemplate=$(li).find(".wpgmza-documentation-buttons>a");if(buttonTemplate.remove(),urls&&urls.length){for(var i=0;i<urls.length;i++){var url=urls[i],button=buttonTemplate.clone(),icon="fa-external-link",text=WPGMZA.localized_strings.documentation;button.attr("href",urls[i]),url.match(/google.+documentation/)?icon="fa-google":url.match(/maps-no-account/)?(icon="fa-wrench",text=WPGMZA.localized_strings.verify_project):url.match(/console\.developers\.google/)&&(icon="fa-wrench",text=WPGMZA.localized_strings.api_dashboard),$(button).find("i").addClass(icon),$(button).append(text)}buttonContainer.append(button)}switch($(this.errorMessageList).append(li),this.dialog||(this.dialog=$(this.element).remodal()),this.dialog.getState()){case"open":case"opened":case"opening":break;default:this.dialog.open()}this.messagesAlreadyDisplayed[message]=!0}},WPGMZA.googleAPIErrorHandler=new WPGMZA.GoogleAPIErrorHandler}),jQuery(function($){WPGMZA.InfoWindow=function(mapObject){var self=this;WPGMZA.EventDispatcher.call(this),WPGMZA.assertInstanceOf(this,"InfoWindow"),mapObject&&(this.mapObject=mapObject,mapObject.map?setTimeout(function(){self.onMapObjectAdded(event)},100):mapObject.addEventListener("added",function(event){self.onMapObjectAdded(event)}))},WPGMZA.InfoWindow.prototype=Object.create(WPGMZA.EventDispatcher.prototype),WPGMZA.InfoWindow.prototype.constructor=WPGMZA.InfoWindow,WPGMZA.InfoWindow.OPEN_BY_CLICK=1,WPGMZA.InfoWindow.OPEN_BY_HOVER=2,WPGMZA.InfoWindow.getConstructor=function(){switch(WPGMZA.settings.engine){case"open-layers":return WPGMZA.isProVersion()?WPGMZA.OLProInfoWindow:WPGMZA.OLInfoWindow;default:return WPGMZA.isProVersion()?WPGMZA.GoogleProInfoWindow:WPGMZA.GoogleInfoWindow}},WPGMZA.InfoWindow.createInstance=function(mapObject){return new(this.getConstructor())(mapObject)},WPGMZA.InfoWindow.prototype.getContent=function(callback){var html="";this.mapObject instanceof WPGMZA.Marker&&(html=this.mapObject.address),callback(html)},WPGMZA.InfoWindow.prototype.open=function(map,mapObject){return this.mapObject=mapObject,!WPGMZA.settings.disable_infowindows},WPGMZA.InfoWindow.prototype.close=function(){this.trigger("infowindowclose")},WPGMZA.InfoWindow.prototype.setContent=function(options){},WPGMZA.InfoWindow.prototype.setOptions=function(options){},WPGMZA.InfoWindow.prototype.onMapObjectAdded=function(){1==this.mapObject.settings.infoopen&&this.open()}}),jQuery(function($){WPGMZA.LatLng=function(arg,lng){if(this._lat=0,this._lng=0,0!=arguments.length)if(1==arguments.length){if("string"==typeof arg){var m;if(!(m=arg.match(WPGMZA.LatLng.REGEXP)))throw new Error("Invalid LatLng string");arg={lat:m[1],lng:m[3]}}if("object"!=typeof arg||!("lat"in arg&&"lng"in arg))throw new Error("Argument must be a LatLng literal");this.lat=arg.lat,this.lng=arg.lng}else this.lat=arg,this.lng=lng},WPGMZA.LatLng.REGEXP=/^(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)$/,WPGMZA.LatLng.isValid=function(obj){return"object"==typeof obj&&("lat"in obj&&"lng"in obj)},Object.defineProperty(WPGMZA.LatLng.prototype,"lat",{get:function(){return this._lat},set:function(val){if(!$.isNumeric(val))throw new Error("Latitude must be numeric");this._lat=parseFloat(val)}}),Object.defineProperty(WPGMZA.LatLng.prototype,"lng",{get:function(){return this._lng},set:function(val){if(!$.isNumeric(val))throw new Error("Longitude must be numeric");this._lng=parseFloat(val)}}),WPGMZA.LatLng.prototype.toString=function(){return this._lat+", "+this._lng},WPGMZA.LatLng.fromGoogleLatLng=function(googleLatLng){return new WPGMZA.LatLng(googleLatLng.lat(),googleLatLng.lng())},WPGMZA.LatLng.prototype.toGoogleLatLng=function(){return new google.maps.LatLng({lat:this.lat,lng:this.lng})},WPGMZA.LatLng.prototype.toLatLngLiteral=function(){return{lat:this.lat,lng:this.lng}},WPGMZA.LatLng.prototype.moveByDistance=function(kilometers,heading){var delta=parseFloat(kilometers)/6371,theta=parseFloat(heading)/180*Math.PI,phi1=this.lat/180*Math.PI,lambda1=this.lng/180*Math.PI,sinPhi1=Math.sin(phi1),cosPhi1=Math.cos(phi1),sinDelta=Math.sin(delta),cosDelta=Math.cos(delta),sinTheta=Math.sin(theta),sinPhi2=sinPhi1*cosDelta+cosPhi1*sinDelta*Math.cos(theta),phi2=Math.asin(sinPhi2),y=sinTheta*sinDelta*cosPhi1,x=cosDelta-sinPhi1*sinPhi2,lambda2=lambda1+Math.atan2(y,x);this.lat=180*phi2/Math.PI,this.lng=180*lambda2/Math.PI},WPGMZA.LatLng.prototype.getGreatCircleDistance=function(arg1,arg2){var other,lat1=this.lat,lon1=this.lng;if(1==arguments.length)other=new WPGMZA.LatLng(arg1);else{if(2!=arguments.length)throw new Error("Invalid number of arguments");other=new WPGMZA.LatLng(arg1,arg2)}var lat2=other.lat,lon2=other.lng,phi1=lat1.toRadians(),phi2=lat2.toRadians(),deltaPhi=(lat2-lat1).toRadians(),deltaLambda=(lon2-lon1).toRadians(),a=Math.sin(deltaPhi/2)*Math.sin(deltaPhi/2)+Math.cos(phi1)*Math.cos(phi2)*Math.sin(deltaLambda/2)*Math.sin(deltaLambda/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}}),jQuery(function($){WPGMZA.LatLngBounds=function(southWest,northEast){southWest&&northEast&&(this.south=southWest.lat,this.north=northEast.lat,this.west=southWest.lng,this.east=southWest.lng)},WPGMZA.LatLngBounds.prototype.isInInitialState=function(){return void 0==this.north&&void 0==this.south&&void 0==this.west&&void 0==this.east},WPGMZA.LatLngBounds.prototype.extend=function(latLng){if(latLng instanceof WPGMZA.LatLng||(latLng=new WPGMZA.LatLng(latLng)),this.isInInitialState())return this.north=this.south=latLng.lat,void(this.west=this.east=latLng.lng);latLng.lat<this.north&&(this.north=latLng.lat),latLng.lat>this.south&&(this.south=latLng.lat),latLng.lng<this.west&&(this.west=latLng.lng),latLng.lng>this.east&&(this.east=latLng.lng)},WPGMZA.LatLngBounds.prototype.extendByPixelMargin=function(map,x,arg){var y=x;if(!(map instanceof WPGMZA.Map))throw new Error("First argument must be an instance of WPGMZA.Map");if(this.isInInitialState())throw new Error("Cannot extend by pixels in initial state");arguments.length>=3&&(y=arg);var southWest=new WPGMZA.LatLng(this.south,this.west),northEast=new WPGMZA.LatLng(this.north,this.east);southWest=map.latLngToPixels(southWest),northEast=map.latLngToPixels(northEast),southWest.x-=x,southWest.y+=y,northEast.x+=x,northEast.y-=y,southWest=map.pixelsToLatLng(southWest.x,southWest.y),northEast=map.pixelsToLatLng(northEast.x,northEast.y);this.toString();this.north=northEast.lat,this.south=southWest.lat,this.west=southWest.lng,this.east=northEast.lng},WPGMZA.LatLngBounds.prototype.contains=function(latLng){if(!(latLng instanceof WPGMZA.LatLng))throw new Error("Argument must be an instance of WPGMZA.LatLng");return!(latLng.lat<Math.min(this.north,this.south))&&(!(latLng.lat>Math.max(this.north,this.south))&&(this.west<this.east?latLng.lng>=this.west&&latLng.lng<=this.east:latLng.lng>=this.west||this.lng<=this.east))},WPGMZA.LatLngBounds.prototype.toString=function(){return this.north+"N "+this.south+"S "+this.west+"W "+this.east+"E"}}),jQuery(function($){WPGMZA.MapObject=function(row){if(WPGMZA.assertInstanceOf(this,"MapObject"),WPGMZA.EventDispatcher.call(this),this.id=-1,this.guid=WPGMZA.guid(),this.modified=!0,this.settings={},row)for(var name in row)if("settings"==name){if(null==row.settings)this.settings={};else switch(typeof row.settings){case"string":this.settings=JSON.parse(row[name]);break;case"object":this.settings=row[name];break;default:throw new Error("Don't know how to interpret settings")}for(var name in this.settings){var value=this.settings[name];String(value).match(/^-?\d+$/)&&(this.settings[name]=parseInt(value))}}else this[name]=row[name]},WPGMZA.MapObject.prototype=Object.create(WPGMZA.EventDispatcher.prototype),WPGMZA.MapObject.prototype.constructor=WPGMZA.MapObject,WPGMZA.MapObject.prototype.parseGeometry=function(string){var pairs,coords,results=[];pairs=string.replace(/[^ ,\d\.\-+e]/g,"").split(",");for(var i=0;i<pairs.length;i++)coords=pairs[i].split(" "),results.push({lat:parseFloat(coords[1]),lng:parseFloat(coords[0])});return results},WPGMZA.MapObject.prototype.toJSON=function(){return{id:this.id,guid:this.guid,settings:this.settings}}}),jQuery(function($){var Parent=WPGMZA.MapObject;WPGMZA.Circle=function(options,engineCircle){WPGMZA.assertInstanceOf(this,"Circle"),this.center=new WPGMZA.LatLng,this.radius=100,Parent.apply(this,arguments)},WPGMZA.Circle.prototype=Object.create(Parent.prototype),WPGMZA.Circle.prototype.constructor=WPGMZA.Circle,WPGMZA.Circle.createInstance=function(options){return new("google-maps"==WPGMZA.settings.engine?WPGMZA.GoogleCircle:WPGMZA.OLCircle)(options)},WPGMZA.Circle.prototype.getCenter=function(){return this.center.clone()},WPGMZA.Circle.prototype.setCenter=function(latLng){this.center.lat=latLng.lat,this.center.lng=latLng.lng},WPGMZA.Circle.prototype.getRadius=function(){return this.radius},WPGMZA.Circle.prototype.setRadius=function(radius){this.radius=radius},WPGMZA.Circle.prototype.getMap=function(){return this.map},WPGMZA.Circle.prototype.setMap=function(map){this.map&&this.map.removeCircle(this),map&&map.addCircle(this)}}),jQuery(function($){WPGMZA.MapSettingsPage=function(){var self=this;this.updateEngineSpecificControls(),this.updateGDPRControls(),$("select[name='wpgmza_maps_engine']").on("change",function(event){self.updateEngineSpecificControls()}),$("input[name='wpgmza_gdpr_require_consent_before_load'], input[name='wpgmza_gdpr_require_consent_before_vgm_submit'], input[name='wpgmza_gdpr_override_notice']").on("change",function(event){self.updateGDPRControls()})},WPGMZA.MapSettingsPage.prototype.updateEngineSpecificControls=function(){var engine=$("select[name='wpgmza_maps_engine']").val();$("[data-required-maps-engine][data-required-maps-engine!='"+engine+"']").hide(),$("[data-required-maps-engine='"+engine+"']").show()},WPGMZA.MapSettingsPage.prototype.updateGDPRControls=function(){var showNoticeControls=$("input[name='wpgmza_gdpr_require_consent_before_load']").prop("checked"),vgmCheckbox=$("input[name='wpgmza_gdpr_require_consent_before_vgm_submit']");vgmCheckbox.length&&(showNoticeControls=showNoticeControls||vgmCheckbox.prop("checked"));var showOverrideTextarea=showNoticeControls&&$("input[name='wpgmza_gdpr_override_notice']").prop("checked");showNoticeControls?$("#wpgmza-gdpr-compliance-notice").show("slow"):$("#wpgmza-gdpr-compliance-notice").hide("slow"),showOverrideTextarea?$("#wpgmza_gdpr_override_notice_text").show("slow"):$("#wpgmza_gdpr_override_notice_text").hide("slow")},jQuery(function($){window.location.href.match(/wp-google-maps-menu-settings/)&&(WPGMZA.mapSettingsPage=new WPGMZA.MapSettingsPage)})}),jQuery(function($){WPGMZA.MapSettings=function(element){function addSettings(input){if(input)for(var key in input)if("other_settings"!=key){var value=input[key];String(value).match(/^-?\d+$/)&&(value=parseInt(value)),self[key]=value}}var json,self=this,str=element.getAttribute("data-settings");try{json=JSON.parse(str)}catch(e){str=str.replace(/\\%/g,"%"),str=str.replace(/\\\\"/g,'\\"');try{json=JSON.parse(str)}catch(e){json={},console.warn("Failed to parse map settings JSON")}}WPGMZA.assertInstanceOf(this,"MapSettings"),addSettings(WPGMZA.settings),addSettings(json),json&&json.other_settings&&addSettings(json.other_settings)},WPGMZA.MapSettings.prototype.toOLViewOptions=function(){var options={center:ol.proj.fromLonLat([-119.4179,36.7783]),zoom:4};if("string"==typeof this.start_location){var coords=this.start_location.replace(/^\(|\)$/g,"").split(",");WPGMZA.isLatLngString(this.start_location)?options.center=ol.proj.fromLonLat([parseFloat(coords[1]),parseFloat(coords[0])]):console.warn("Invalid start location")}return this.center&&(options.center=ol.proj.fromLonLat([parseFloat(this.center.lng),parseFloat(this.center.lat)])),this.zoom&&(options.zoom=parseInt(this.zoom)),this.start_zoom&&(options.zoom=parseInt(this.start_zoom)),this.map_min_zoom&&this.map_max_zoom&&(options.minZoom=Math.min(this.map_min_zoom,this.map_max_zoom),options.maxZoom=Math.max(this.map_min_zoom,this.map_max_zoom)),options},WPGMZA.MapSettings.prototype.toGoogleMapsOptions=function(){function formatCoord(coord){return $.isNumeric(coord)?coord:parseFloat(String(coord).replace(/[\(\)\s]/,""))}var self=this,latLngCoords=this.start_location&&this.start_location.length?this.start_location.split(","):[36.7783,-119.4179],latLng=new google.maps.LatLng(formatCoord(latLngCoords[0]),formatCoord(latLngCoords[1])),zoom=this.start_zoom?parseInt(this.start_zoom):4;!this.start_zoom&&this.zoom&&(zoom=parseInt(this.zoom));var options={zoom:zoom,center:latLng};switch(function(name){return!("object"==typeof self[name]||self[name]&&self[name].length)}("center")||(options.center=new google.maps.LatLng({lat:parseFloat(this.center.lat),lng:parseFloat(this.center.lng)})),this.map_min_zoom&&this.map_max_zoom&&(options.minZoom=Math.min(this.map_min_zoom,this.map_max_zoom),options.maxZoom=Math.max(this.map_min_zoom,this.map_max_zoom)),options.zoomControl=!("yes"==this.wpgmza_settings_map_zoom),options.panControl=!("yes"==this.wpgmza_settings_map_pan),options.mapTypeControl=!("yes"==this.wpgmza_settings_map_type),options.streetViewControl=!("yes"==this.wpgmza_settings_map_streetview),options.fullscreenControl=!("yes"==this.wpgmza_settings_map_full_screen_control),options.draggable=!("yes"==this.wpgmza_settings_map_draggable),options.disableDoubleClickZoom="yes"==this.wpgmza_settings_map_clickzoom,options.scrollwheel=!("yes"==this.wpgmza_settings_map_scroll),"greedy"==this.wpgmza_force_greedy_gestures||"yes"==this.wpgmza_force_greedy_gestures?options.gestureHandling="greedy":options.gestureHandling="cooperative",parseInt(this.type)){case 2:options.mapTypeId=google.maps.MapTypeId.SATELLITE;break;case 3:options.mapTypeId=google.maps.MapTypeId.HYBRID;break;case 4:options.mapTypeId=google.maps.MapTypeId.TERRAIN;break;default:options.mapTypeId=google.maps.MapTypeId.ROADMAP}if(this.theme_data&&this.theme_data.length>0)try{options.styles=JSON.parse(this.theme_data)}catch(e){alert("Your theme data is not valid JSON and has been ignored")}return options}}),jQuery(function($){function deg2rad(deg){return deg*(Math.PI/180)}WPGMZA.Map=function(element,options){if(WPGMZA.assertInstanceOf(this,"Map"),WPGMZA.EventDispatcher.call(this),!(element instanceof HTMLElement))throw new Error("Argument must be a HTMLElement");if(this.id=element.getAttribute("data-map-id"),!/\d+/.test(this.id))throw new Error("Map ID must be an integer");if(WPGMZA.maps.push(this),this.element=element,this.element.wpgmzaMap=this,this.engineElement=element,this.markers=[],this.polygons=[],this.polylines=[],this.circles=[],this.loadSettings(options),this.shortcodeAttributes={},$(this.element).attr("data-shortcode-attributes"))try{this.shortcodeAttributes=JSON.parse($(this.element).attr("data-shortcode-attributes"))}catch(e){console.warn("Error parsing shortcode attributes")}this.initStoreLocator(),this.markerFilter=WPGMZA.MarkerFilter.createInstance(this)},WPGMZA.Map.prototype=Object.create(WPGMZA.EventDispatcher.prototype),WPGMZA.Map.prototype.constructor=WPGMZA.Map,WPGMZA.Map.getConstructor=function(){switch(WPGMZA.settings.engine){case"open-layers":return WPGMZA.isProVersion()?WPGMZA.OLProMap:WPGMZA.OLMap;default:return WPGMZA.isProVersion()?WPGMZA.GoogleProMap:WPGMZA.GoogleMap}},WPGMZA.Map.createInstance=function(element,options){return new(WPGMZA.Map.getConstructor())(element,options)},WPGMZA.Map.prototype.loadSettings=function(options){var settings=new WPGMZA.MapSettings(this.element),other_settings=settings.other_settings;if(delete settings.other_settings,other_settings)for(var key in other_settings)settings[key]=other_settings[key];if(options)for(var key in options)settings[key]=options[key];this.settings=settings},WPGMZA.Map.prototype.initStoreLocator=function(){var storeLocatorElement=$(".wpgmza_sl_main_div");storeLocatorElement.length&&(this.storeLocator=WPGMZA.StoreLocator.createInstance(this,storeLocatorElement[0]))},WPGMZA.Map.prototype.setOptions=function(options){for(var name in options)this.settings[name]=options[name]};Math.PI;WPGMZA.Map.getGeographicDistance=function(lat1,lon1,lat2,lon2){var dLat=deg2rad(lat2-lat1),dLon=deg2rad(lon2-lon1),a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(deg2rad(lat1))*Math.cos(deg2rad(lat2))*Math.sin(dLon/2)*Math.sin(dLon/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},WPGMZA.Map.prototype.setCenter=function(latLng){if(!("lat"in latLng&&"lng"in latLng))throw new Error("Argument is not an object with lat and lng")},WPGMZA.Map.prototype.setDimensions=function(width,height){$(this.element).css({width:width}),$(this.engineElement).css({width:"100%",height:height})},WPGMZA.Map.prototype.addMarker=function(marker){if(!(marker instanceof WPGMZA.Marker))throw new Error("Argument must be an instance of WPGMZA.Marker");marker.map=this,marker.parent=this,this.markers.push(marker),this.dispatchEvent({type:"markeradded",marker:marker}),marker.dispatchEvent({type:"added"})},WPGMZA.Map.prototype.removeMarker=function(marker){if(!(marker instanceof WPGMZA.Marker))throw new Error("Argument must be an instance of WPGMZA.Marker");if(marker.map!==this)throw new Error("Wrong map error");marker.map=null,marker.parent=null,this.markers.splice(this.markers.indexOf(marker),1),this.dispatchEvent({type:"markerremoved",marker:marker}),marker.dispatchEvent({type:"removed"})},WPGMZA.Map.prototype.getMarkerByID=function(id){for(var i=0;i<this.markers.length;i++)if(this.markers[i].id==id)return this.markers[i];return null},WPGMZA.Map.prototype.removeMarkerByID=function(id){var marker=this.getMarkerByID(id);marker&&this.removeMarker(marker)},WPGMZA.Map.prototype.addPolygon=function(polygon){if(!(polygon instanceof WPGMZA.Polygon))throw new Error("Argument must be an instance of WPGMZA.Polygon");polygon.map=this,this.polygons.push(polygon),this.dispatchEvent({type:"polygonadded",polygon:polygon})},WPGMZA.Map.prototype.deletePolygon=function(polygon){if(!(polygon instanceof WPGMZA.Polygon))throw new Error("Argument must be an instance of WPGMZA.Polygon");if(polygon.map!==this)throw new Error("Wrong map error");polygon.map=null,this.polygons.splice(this.polygons.indexOf(polygon),1),this.dispatchEvent({type:"polygonremoved",polygon:polygon})},WPGMZA.Map.prototype.getPolygonByID=function(id){for(var i=0;i<this.polygons.length;i++)if(this.polygons[i].id==id)return this.polygons[i];return null},WPGMZA.Map.prototype.deletePolygonByID=function(id){var polygon=this.getPolygonByID(id);polygon&&this.deletePolygon(polygon)},WPGMZA.Map.prototype.getPolylineByID=function(id){for(var i=0;i<this.polylines.length;i++)if(this.polylines[i].id==id)return this.polylines[i];return null},WPGMZA.Map.prototype.addPolyline=function(polyline){if(!(polyline instanceof WPGMZA.Polyline))throw new Error("Argument must be an instance of WPGMZA.Polyline");polyline.map=this,this.polylines.push(polyline),this.dispatchEvent({type:"polylineadded",polyline:polyline})},WPGMZA.Map.prototype.deletePolyline=function(polyline){if(!(polyline instanceof WPGMZA.Polyline))throw new Error("Argument must be an instance of WPGMZA.Polyline");if(polyline.map!==this)throw new Error("Wrong map error");polyline.map=null,this.polylines.splice(this.polylines.indexOf(polyline),1),this.dispatchEvent({type:"polylineremoved",polyline:polyline})},WPGMZA.Map.prototype.getPolylineByID=function(id){for(var i=0;i<this.polylines.length;i++)if(this.polylines[i].id==id)return this.polylines[i];return null},WPGMZA.Map.prototype.deletePolylineByID=function(id){var polyline=this.getPolylineByID(id);polyline&&this.deletePolyline(polyline)},WPGMZA.Map.prototype.addCircle=function(circle){if(!(circle instanceof WPGMZA.Circle))throw new Error("Argument must be an instance of WPGMZA.Circle");circle.map=this,this.circles.push(circle),this.dispatchEvent({type:"circleadded",circle:circle})},WPGMZA.Map.prototype.removeCircle=function(circle){if(!(circle instanceof WPGMZA.Circle))throw new Error("Argument must be an instance of WPGMZA.Circle");if(circle.map!==this)throw new Error("Wrong map error");circle.map=null,this.circles.splice(this.circles.indexOf(circle),1),this.dispatchEvent({type:"circleremoved",circle:circle})},WPGMZA.Map.prototype.getCircleByID=function(id){for(var i=0;i<this.circles.length;i++)if(this.circles[i].id==id)return this.circles[i];return null},WPGMZA.Map.prototype.deleteCircleByID=function(id){var circle=this.getCircleByID(id);circle&&this.deleteCircle(circle)},WPGMZA.Map.prototype.nudge=function(x,y){var pixels=this.latLngToPixels(this.getCenter());if(pixels.x+=parseFloat(x),pixels.y+=parseFloat(y),isNaN(pixels.x)||isNaN(pixels.y))throw new Error("Invalid coordinates supplied");var latLng=this.pixelsToLatLng(pixels);this.setCenter(latLng)},WPGMZA.Map.prototype.onWindowResize=function(event){},WPGMZA.Map.prototype.onElementResized=function(event){},WPGMZA.Map.prototype.onBoundsChanged=function(event){this.trigger("boundschanged"),this.trigger("bounds_changed")},WPGMZA.Map.prototype.onIdle=function(event){this.trigger("idle")}}),jQuery(function($){WPGMZA.MapsEngineDialog=function(element){var self=this;this.element=element,window.wpgmzaUnbindSaveReminder&&window.wpgmzaUnbindSaveReminder(),$(element).show(),$(element).remodal().open(),$(element).find("input:radio").on("change",function(event){$("#wpgmza-confirm-engine").prop("disabled",!1)}),$("#wpgmza-confirm-engine").on("click",function(event){self.onButtonClicked(event)})},WPGMZA.MapsEngineDialog.prototype.onButtonClicked=function(event){$(event.target).prop("disabled",!0),$.ajax(WPGMZA.ajaxurl,{method:"POST",data:{action:"wpgmza_maps_engine_dialog_set_engine",engine:$("[name='wpgmza_maps_engine']:checked").val()},success:function(response,status,xhr){window.location.reload()}})},$(window).on("load",function(event){var element=$("#wpgmza-maps-engine-dialog");element.length&&(WPGMZA.settings.wpgmza_maps_engine_dialog_done||WPGMZA.settings.wpgmza_google_maps_api_key&&WPGMZA.settings.wpgmza_google_maps_api_key.length||(WPGMZA.mapsEngineDialog=new WPGMZA.MapsEngineDialog(element)))})}),jQuery(function($){WPGMZA.MarkerFilter=function(map){WPGMZA.EventDispatcher.call(this),this.map=map},WPGMZA.MarkerFilter.prototype=Object.create(WPGMZA.EventDispatcher.prototype),WPGMZA.MarkerFilter.prototype.constructor=WPGMZA.MarkerFilter,WPGMZA.MarkerFilter.createInstance=function(map){return new WPGMZA.MarkerFilter(map)},WPGMZA.MarkerFilter.prototype.getFilteringParameters=function(){var params={map_id:this.map.id};return this.map.storeLocator&&(params=$.extend(params,this.map.storeLocator.getFilteringParameters())),params},WPGMZA.MarkerFilter.prototype.update=function(){},WPGMZA.MarkerFilter.prototype.onFilteringComplete=function(results){}}),jQuery(function($){WPGMZA.Marker=function(row){var self=this;this._offset={x:0,y:0},WPGMZA.assertInstanceOf(this,"Marker"),this.lat="36.778261",this.lng="-119.4179323999",this.address="California",this.title=null,this.description="",this.link="",this.icon="",this.approved=1,this.pic=null,WPGMZA.MapObject.apply(this,arguments),row&&row.heatmap||(row&&this.on("init",function(event){row.position&&this.setPosition(row.position),row.map&&row.map.addMarker(this)}),this.addEventListener("added",function(event){self.onAdded(event)}))},WPGMZA.Marker.prototype=Object.create(WPGMZA.MapObject.prototype),WPGMZA.Marker.prototype.constructor=WPGMZA.Marker,WPGMZA.Marker.getConstructor=function(){switch(WPGMZA.settings.engine){case"open-layers":return WPGMZA.isProVersion()?WPGMZA.OLProMarker:WPGMZA.OLMarker;default:return WPGMZA.isProVersion()?WPGMZA.GoogleProMarker:WPGMZA.GoogleMarker}},WPGMZA.Marker.createInstance=function(row){return new(WPGMZA.Marker.getConstructor())(row)},WPGMZA.Marker.ANIMATION_NONE="0",WPGMZA.Marker.ANIMATION_BOUNCE="1",WPGMZA.Marker.ANIMATION_DROP="2",Object.defineProperty(WPGMZA.Marker.prototype,"offsetX",{get:function(){return this._offset.x},set:function(value){this._offset.x=value,this.updateOffset()}}),Object.defineProperty(WPGMZA.Marker.prototype,"offsetY",{get:function(){return this._offset.y},set:function(value){this._offset.y=value,this.updateOffset()}}),WPGMZA.Marker.prototype.onAdded=function(event){var self=this;this.addEventListener("click",function(event){self.onClick(event)}),this.addEventListener("mouseover",function(event){self.onMouseOver(event)}),this.addEventListener("select",function(event){self.onSelect(event)}),this.map.settings.marker==this.id&&self.trigger("select")},WPGMZA.Marker.prototype.initInfoWindow=function(){this.infoWindow||(this.infoWindow=WPGMZA.InfoWindow.createInstance())},WPGMZA.Marker.prototype.openInfoWindow=function(){this.map?(this.map.lastInteractedMarker&&this.map.lastInteractedMarker.infoWindow.close(),this.map.lastInteractedMarker=this,this.initInfoWindow(),this.infoWindow.open(this.map,this)):console.warn("Cannot open infowindow for marker with no map")},WPGMZA.Marker.prototype.onClick=function(event){},WPGMZA.Marker.prototype.onSelect=function(event){this.openInfoWindow()},WPGMZA.Marker.prototype.onMouseOver=function(event){this.map.settings.info_window_open_by==WPGMZA.InfoWindow.OPEN_BY_HOVER&&this.openInfoWindow()},WPGMZA.Marker.prototype.getIcon=function(){function stripProtocol(url){return"string"!=typeof url?url:url.replace(/^http(s?):/,"")}return stripProtocol(WPGMZA.defaultMarkerIcon?WPGMZA.defaultMarkerIcon:WPGMZA.settings.default_marker_icon)},WPGMZA.Marker.prototype.getPosition=function(){return new WPGMZA.LatLng({lat:parseFloat(this.lat),lng:parseFloat(this.lng)})},WPGMZA.Marker.prototype.setPosition=function(latLng){latLng instanceof WPGMZA.LatLng?(this.lat=latLng.lat,this.lng=latLng.lng):(this.lat=parseFloat(latLng.lat),this.lng=parseFloat(latLng.lng))},WPGMZA.Marker.prototype.setOffset=function(x,y){this._offset.x=x,this._offset.y=y,this.updateOffset()},WPGMZA.Marker.prototype.updateOffset=function(){},WPGMZA.Marker.prototype.getAnimation=function(animation){return this.settings.animation},WPGMZA.Marker.prototype.setAnimation=function(animation){this.settings.animation=animation},WPGMZA.Marker.prototype.getVisible=function(){},WPGMZA.Marker.prototype.setVisible=function(visible){!visible&&this.infoWindow&&this.infoWindow.close()},WPGMZA.Marker.prototype.getMap=function(){return this.map},WPGMZA.Marker.prototype.setMap=function(map){map?map.addMarker(this):this.map&&this.map.removeMarker(this),this.map=map},WPGMZA.Marker.prototype.getDraggable=function(){},WPGMZA.Marker.prototype.setDraggable=function(draggable){},WPGMZA.Marker.prototype.setOptions=function(options){},WPGMZA.Marker.prototype.panIntoView=function(){if(!this.map)throw new Error("Marker hasn't been added to a map");this.map.setCenter(this.getPosition())},WPGMZA.Marker.prototype.toJSON=function(){var result=WPGMZA.MapObject.prototype.toJSON.call(this),position=this.getPosition();return $.extend(result,{lat:position.lat,lng:position.lng,address:this.address,title:this.title,description:this.description,link:this.link,icon:this.icon,pic:this.pic,approved:this.approved}),result}}),jQuery(function($){WPGMZA.ModernStoreLocatorCircle=function(map_id,settings){var map;map=WPGMZA.isProVersion()?this.map=MYMAP[map_id].map:this.map=MYMAP.map,this.map_id=map_id,this.mapElement=map.element,this.mapSize={width:$(this.mapElement).width(),height:$(this.mapElement).height()},this.initCanvasLayer(),this.settings={center:new WPGMZA.LatLng(0,0),radius:1,color:"#63AFF2",shadowColor:"white",shadowBlur:4,centerRingRadius:10,centerRingLineWidth:3,numInnerRings:9,innerRingLineWidth:1,innerRingFade:!0,numOuterRings:7,ringLineWidth:1,mainRingLineWidth:2,numSpokes:6,spokesStartAngle:Math.PI/2,numRadiusLabels:6,radiusLabelsStartAngle:Math.PI/2,radiusLabelFont:"13px sans-serif",visible:!1},settings&&this.setOptions(settings)},WPGMZA.ModernStoreLocatorCircle.createInstance=function(map,settings){return"google-maps"==WPGMZA.settings.engine?new WPGMZA.GoogleModernStoreLocatorCircle(map,settings):new WPGMZA.OLModernStoreLocatorCircle(map,settings)},WPGMZA.ModernStoreLocatorCircle.prototype.initCanvasLayer=function(){},WPGMZA.ModernStoreLocatorCircle.prototype.onResize=function(event){this.draw()},WPGMZA.ModernStoreLocatorCircle.prototype.onUpdate=function(event){this.draw()},WPGMZA.ModernStoreLocatorCircle.prototype.setOptions=function(options){for(var name in options){var functionName="set"+name.substr(0,1).toUpperCase()+name.substr(1);"function"==typeof this[functionName]?this[functionName](options[name]):this.settings[name]=options[name]}},WPGMZA.ModernStoreLocatorCircle.prototype.getResolutionScale=function(){return window.devicePixelRatio||1},WPGMZA.ModernStoreLocatorCircle.prototype.getCenter=function(){return this.getPosition()},WPGMZA.ModernStoreLocatorCircle.prototype.setCenter=function(value){this.setPosition(value)},WPGMZA.ModernStoreLocatorCircle.prototype.getPosition=function(){return this.settings.center},WPGMZA.ModernStoreLocatorCircle.prototype.setPosition=function(position){this.settings.center=position},WPGMZA.ModernStoreLocatorCircle.prototype.getRadius=function(){return this.settings.radius},WPGMZA.ModernStoreLocatorCircle.prototype.setRadius=function(radius){if(isNaN(radius))throw new Error("Invalid radius");this.settings.radius=radius},WPGMZA.ModernStoreLocatorCircle.prototype.getVisible=function(){return this.settings.visible},WPGMZA.ModernStoreLocatorCircle.prototype.setVisible=function(visible){this.settings.visible=visible},WPGMZA.ModernStoreLocatorCircle.prototype.getTransformedRadius=function(km){throw new Error("Abstract function called")},WPGMZA.ModernStoreLocatorCircle.prototype.getContext=function(type){throw new Error("Abstract function called")},WPGMZA.ModernStoreLocatorCircle.prototype.getCanvasDimensions=function(){throw new Error("Abstract function called")},WPGMZA.ModernStoreLocatorCircle.prototype.validateSettings=function(){WPGMZA.isHexColorString(this.settings.color)||(this.settings.color="#63AFF2")},WPGMZA.ModernStoreLocatorCircle.prototype.draw=function(){this.validateSettings();var settings=this.settings,canvasDimensions=this.getCanvasDimensions(),canvasWidth=canvasDimensions.width,canvasHeight=canvasDimensions.height;this.map,this.getResolutionScale();if(context=this.getContext("2d"),context.clearRect(0,0,canvasWidth,canvasHeight),settings.visible){context.shadowColor=settings.shadowColor,context.shadowBlur=settings.shadowBlur,context.setTransform(1,0,0,1,0,0);var scale=this.getScale();context.scale(scale,scale);var offset=this.getWorldOriginOffset();context.translate(offset.x,offset.y);new WPGMZA.LatLng(this.settings.center);var worldPoint=this.getCenterPixels(),rgba=WPGMZA.hexToRgba(settings.color),ringSpacing=this.getTransformedRadius(settings.radius)/(settings.numInnerRings+1);context.strokeStyle=settings.color,context.lineWidth=1/scale*settings.centerRingLineWidth,context.beginPath(),context.arc(worldPoint.x,worldPoint.y,this.getTransformedRadius(settings.centerRingRadius)/scale,0,2*Math.PI),context.stroke(),context.closePath();var end,spokeAngle,radius=this.getTransformedRadius(settings.radius)+ringSpacing*settings.numOuterRings+1,grad=context.createRadialGradient(0,0,0,0,0,radius),rgba=WPGMZA.hexToRgba(settings.color),start=WPGMZA.rgbaToString(rgba);rgba.a=0,end=WPGMZA.rgbaToString(rgba),grad.addColorStop(0,start),grad.addColorStop(1,end),context.save(),context.translate(worldPoint.x,worldPoint.y),context.strokeStyle=grad,context.lineWidth=2/scale;for(i=0;i<settings.numSpokes;i++)spokeAngle=settings.spokesStartAngle+2*Math.PI*(i/settings.numSpokes),x=Math.cos(spokeAngle)*radius,y=Math.sin(spokeAngle)*radius,context.setLineDash([2/scale,15/scale]),context.beginPath(),context.moveTo(0,0),context.lineTo(x,y),context.stroke();context.setLineDash([]),context.restore(),context.lineWidth=1/scale*settings.innerRingLineWidth;for(i=1;i<=settings.numInnerRings;i++){radius=i*ringSpacing;settings.innerRingFade&&(rgba.a=1-(i-1)/settings.numInnerRings),context.strokeStyle=WPGMZA.rgbaToString(rgba),context.beginPath(),context.arc(worldPoint.x,worldPoint.y,radius,0,2*Math.PI),context.stroke(),context.closePath()}context.strokeStyle=settings.color,context.lineWidth=1/scale*settings.centerRingLineWidth,context.beginPath(),context.arc(worldPoint.x,worldPoint.y,this.getTransformedRadius(settings.radius),0,2*Math.PI),context.stroke(),context.closePath();for(var radius=radius+ringSpacing,i=0;i<settings.numOuterRings;i++)settings.innerRingFade&&(rgba.a=1-i/settings.numOuterRings),context.strokeStyle=WPGMZA.rgbaToString(rgba),context.beginPath(),context.arc(worldPoint.x,worldPoint.y,radius,0,2*Math.PI),context.stroke(),context.closePath(),radius+=ringSpacing;if(settings.numRadiusLabels>0){var m,x,y,radius=this.getTransformedRadius(settings.radius);(m=settings.radiusLabelFont.match(/(\d+)px/))&&parseInt(m[1])/2*1.1/scale,context.font=settings.radiusLabelFont,context.textAlign="center",context.textBaseline="middle",context.fillStyle=settings.color,context.save(),context.translate(worldPoint.x,worldPoint.y);for(i=0;i<settings.numRadiusLabels;i++){var width,textAngle=(spokeAngle=settings.radiusLabelsStartAngle+2*Math.PI*(i/settings.numRadiusLabels))+Math.PI/2,text=settings.radiusString;Math.sin(spokeAngle)>0&&(textAngle-=Math.PI),x=Math.cos(spokeAngle)*radius,y=Math.sin(spokeAngle)*radius,context.save(),context.translate(x,y),context.rotate(textAngle),context.scale(1/scale,1/scale),width=context.measureText(text).width,height=width/2,context.clearRect(-width,-height,2*width,2*height),context.fillText(settings.radiusString,0,0),context.restore()}context.restore()}}}}),jQuery(function($){WPGMZA.ModernStoreLocator=function(map_id){var original,self=this;if(WPGMZA.assertInstanceOf(this,"ModernStoreLocator"),(original=WPGMZA.isProVersion()?$(".wpgmza_sl_search_button[mid='"+map_id+"']").closest(".wpgmza_sl_main_div"):$(".wpgmza_sl_search_button").closest(".wpgmza_sl_main_div")).length){this.element=$("<div class='wpgmza-modern-store-locator'><div class='wpgmza-inner wpgmza-modern-hover-opaque'/></div>")[0];var inner=$(this.element).find(".wpgmza-inner"),titleSearch=$(original).find("[id='nameInput_"+map_id+"']");if(titleSearch.length){var placeholder=wpgmaps_localize[map_id].other_settings.store_locator_name_string;placeholder&&placeholder.length&&titleSearch.attr("placeholder",placeholder),inner.append(titleSearch)}var addressInput;addressInput=WPGMZA.isProVersion()?$(original).find(".addressInput"):$(original).find("#addressInput"),wpgmaps_localize[map_id].other_settings.store_locator_query_string&&wpgmaps_localize[map_id].other_settings.store_locator_query_string.length&&addressInput.attr("placeholder",wpgmaps_localize[map_id].other_settings.store_locator_query_string),inner.append(addressInput),$(addressInput).on("keydown",function(event){13==event.keyCode&&self.searchButton.trigger("click")}),$(addressInput).on("input",function(event){self.searchButton.show(),self.resetButton.hide()}),inner.append($(original).find("select.wpgmza_sl_radius_select")),this.searchButton=$(original).find(".wpgmza_sl_search_button"),inner.append(this.searchButton),this.resetButton=$(original).find(".wpgmza_sl_reset_button_div"),inner.append(this.resetButton),this.resetButton.on("click",function(event){resetLocations(map_id)}),this.resetButton.hide(),WPGMZA.isProVersion()&&(this.searchButton.on("click",function(event){0!=$("addressInput_"+map_id).val()&&(self.searchButton.hide(),self.resetButton.show())}),this.resetButton.on("click",function(event){self.resetButton.hide(),self.searchButton.show()})),inner.append($("#wpgmza_distance_type_"+map_id));var container=$(original).find(".wpgmza_cat_checkbox_holder"),numCategories=($(container).children("ul"),0),icons=[];$(container).find("li").each(function(index,el){var id=$(el).attr("class").match(/\d+/);for(var category_id in wpgmza_category_data)if(id==category_id){var src=wpgmza_category_data[category_id].image,icon=$('<div class="wpgmza-chip-icon"/>');icon.css({"background-image":"url('"+src+"')",width:$("#wpgmza_cat_checkbox_"+category_id+" + label").height()+"px"}),icons.push(icon),null!=src&&""!=src&&$("#wpgmza_cat_checkbox_"+category_id+" + label").prepend(icon),numCategories++;break}}),$(this.element).append(container),numCategories&&(this.optionsButton=$('<span class="wpgmza_store_locator_options_button"><i class="fa fa-list"></i></span>'),$(this.searchButton).before(this.optionsButton)),setInterval(function(){icons.forEach(function(icon){var height=$(icon).height();$(icon).css({width:height+"px"}),$(icon).closest("label").css({"padding-left":height+8+"px"})}),$(container).css("width",$(self.element).find(".wpgmza-inner").outerWidth()+"px")},1e3),$(this.element).find(".wpgmza_store_locator_options_button").on("click",function(event){container.hasClass("wpgmza-open")?container.removeClass("wpgmza-open"):container.addClass("wpgmza-open")}),$(original).remove(),$(this.element).find("input, select").on("focus",function(){$(inner).addClass("active")}),$(this.element).find("input, select").on("blur",function(){$(inner).removeClass("active")})}},WPGMZA.ModernStoreLocator.createInstance=function(map_id){return"google-maps"==WPGMZA.settings.engine?new WPGMZA.GoogleModernStoreLocator(map_id):new WPGMZA.OLModernStoreLocator(map_id)}}),jQuery(function($){WPGMZA.NativeMapsAppIcon=function(){navigator.userAgent.match(/^Apple|iPhone|iPad|iPod/)?(this.type="apple",this.element=$('<span><i class="fab fa-apple" aria-hidden="true"></i></span>')):(this.type="google",this.element=$('<span><i class="fab fa-google" aria-hidden="true"></i></span>'))}}),jQuery(function($){WPGMZA.Polygon=function(row,enginePolygon){WPGMZA.assertInstanceOf(this,"Polygon |