MapPress Easy Google Maps - Version 2.49

Version Description

BETA = * Added: support added for Leaflet, MapBox, and Algolia search * Added: mashups are now searchable - see the search options on the MapPress settings screen * Added: client-side templating system and template editor on MapPress settings screen * Changed: filter fields now output more data (type, meta_type, etc) * Changed: the 'mini' map mode (with list/map toggles) has been temporarily removed * Changed: Pro updater is now available by default

Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.49
Comparing to
See all releases

Code changes from version 2.48.7 to 2.49

css/mappress.css CHANGED
@@ -4,14 +4,6 @@
4
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5
*/
6
7
- /*
8
- -----------------------------------------------------------------------------------
9
- The !important modifier is used because some themes use high-priority selectors
10
- on img tags that can interfere with Google map tiles.
11
- -----------------------------------------------------------------------------------
12
- */
13
-
14
-
15
/*
16
-----------------------------------------------------------------------------------
17
Map layout - table containing map, directions, poi list
@@ -46,7 +38,13 @@
46
display: none;
47
}
48
49
- /* Canvas */
50
.mapp-canvas {
51
height: 100%;
52
margin: 0px;
@@ -57,16 +55,31 @@
57
}
58
59
.mapp-canvas img {
60
- background-color: transparent !important;
61
box-shadow: none !important; /* 2012 */
62
border-radius: 0px !important; /* 2012 */
63
- max-width: 99999px !important; /* Themes have max-width/max-height set, and some phones can't accept max-width: auto. */
64
- max-height: none !important;
65
- margin: 0px !important;
66
- padding: 0px !important;
67
visibility: inherit !important;
68
}
69
70
.mapp-dialog {
71
background-color: white;
72
color: black;
@@ -76,7 +89,7 @@
76
position: absolute;
77
text-align: center;
78
top: 0; left: 0; right: 0;
79
- z-index: 1;
80
}
81
82
@@ -84,6 +97,118 @@
84
display: inline-block;
85
}
86
87
/*
88
-----------------------------------------------------------------------------------
89
Header
@@ -92,51 +217,42 @@
92
.mapp-header {
93
background-color: #eee;
94
border-bottom: 1px solid lightgray;
95
- height: 40px;
96
- overflow: hidden;
97
}
98
99
.mapp-header-button {
100
- border-left: 1px solid lightgray;
101
cursor: pointer;
102
- float: right;
103
- line-height: 40px;
104
- margin-left: 5px;
105
min-width: 70px;
106
padding: 0 5px 0 5px;
107
text-align: center;
108
text-transform: uppercase;
109
}
110
111
- .mapp-search-wrapper {
112
- padding: 2px;
113
- }
114
115
/*
116
-----------------------------------------------------------------------------------
117
Search
118
-----------------------------------------------------------------------------------
119
*/
120
-
121
.mapp-search {
122
- overflow: hidden;
123
position: relative;
124
- }
125
-
126
- .mapp-search input {
127
- background: white !important; /* 2016 */
128
- border: 1px solid lightgray !important;
129
- box-shadow: none !important;
130
- color: black !important;
131
- line-height: 22px;
132
- margin: 0px !important;
133
- padding: 5px 28px 5px 5px !important;
134
- vertical-align: middle;
135
width: 100%;
136
}
137
138
-
139
- /* Error messages, e.g. invalid address */
140
.mapp-search input.mapp-error {
141
outline: 1px solid red !important;
142
}
@@ -151,6 +267,58 @@
151
width: 18px;
152
}
153
154
/*
155
-----------------------------------------------------------------------------------
156
Filters
@@ -211,6 +379,11 @@
211
-----------------------------------------------------------------------------------
212
*/
213
214
/* Important is used to override common theme / user agent styles that interfere */
215
.mapp-iw * {
216
color: black;
@@ -262,171 +435,89 @@
262
-----------------------------------------------------------------------------------
263
*/
264
265
.mapp-ib {
266
background-color: white;
267
- box-shadow: 1px 1px 1px 1px #888;
268
box-sizing: border-box;
269
- display: none;
270
outline: none;
271
overflow: auto;
272
padding: 5px 20px 5px 10px;
273
- position: absolute;
274
- z-index: 100; /* WP thickbox has z-index 102, this keeps editor's IB below it */
275
- }
276
-
277
- .mapp-ib .mapp-close {
278
- position: absolute;
279
- right: 0; top: 0;
280
}
281
282
/* Triangular tip */
283
.mapp-ib-tip {
284
- display: none;
285
- position: absolute;
286
border-top: 10px solid white;
287
border-left: 10px solid transparent;
288
border-right: 10px solid transparent;
289
border-bottom: none;
290
- margin-left: -10px;
291
- margin-top: -2px;
292
- padding: 0;
293
width: 0;
294
height: 0;
295
/* ie6 height fix */
296
font-size: 0;
297
line-height: 0;
298
- z-index: 101;
299
}
300
301
302
/*
303
-----------------------------------------------------------------------------------
304
- POI List (new)
305
- Structure:
306
- .mapp-list
307
- .mapp-items
308
- .mapp-item (one for each POI)
309
-----------------------------------------------------------------------------------
310
*/
311
312
- .mapp-list {
313
- background-color: white;
314
- position: relative; /* Needed to scroll list for selection */
315
- z-index: 1;
316
- }
317
-
318
- .mapp-list .mapp-items {
319
- height: 100%;
320
- overflow: auto;
321
- }
322
-
323
- .mapp-list .mapp-item {
324
- border-bottom: 1px solid lightgray;
325
- cursor: pointer;
326
- overflow: hidden;
327
- padding: 5px;
328
- }
329
-
330
- .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
331
- background-color: #fafafa;
332
- }
333
-
334
-
335
- .mapp-list .mapp-item .mapp-title {
336
- overflow: hidden;
337
- vertical-align: middle;
338
- }
339
-
340
- .mapp-list .mapp-item .mapp-icon {
341
- float: left;
342
- margin-right: 5px;
343
- max-width: 24px !important; /* 2012 tries to override */
344
- max-height: 24px;
345
- }
346
-
347
- .mapp-list .mapp-item .mapp-actions {
348
- visibility: hidden;
349
- }
350
-
351
- .mapp-list .mapp-item:hover .mapp-actions {
352
- color: black;
353
- visibility: visible;
354
}
355
356
- .mapp-list .dashicons {
357
- color: #82878c;
358
}
359
360
- .mapp-list-footer {
361
- margin-top: 10px;
362
- text-align: center;
363
}
364
365
- .mapp-list .mapp-next, .mapp-list .mapp-prev {
366
- background-color: #f7f7f7;
367
- border: 1px solid #ccc;
368
- color: gray;
369
- cursor: pointer;
370
- display: inline-block;
371
- line-height: 1;
372
- margin: 0 10px 0 10px;
373
- padding: 5px;
374
- text-align: center;
375
- user-select: none;
376
}
377
378
- .mapp-list .mapp-next.mapp-active, .mapp-list .mapp-prev.mapp-active {
379
- background-color: #e8e8e8;
380
- color: black;
381
- }
382
-
383
- .mapp-list .mapp-msg {
384
- text-align: center;
385
- }
386
387
/*
388
-----------------------------------------------------------------------------------
389
- layouts
390
-----------------------------------------------------------------------------------
391
*/
392
393
- .mapp-left .mapp-list {
394
- border-right: 1px solid lightgray;
395
- float: left;
396
- height: 100%;
397
- max-width: 45%;
398
- width: 250px;
399
- }
400
-
401
- .mapp-left.mapp-mini .mapp-list {
402
- display: none !important; /* Override editor */
403
- }
404
-
405
- .mapp-inline .mapp-list .mapp-items {
406
- border-top: 1px solid lightgray;
407
- max-height: 300px;
408
- }
409
-
410
/*
411
- -----------------------------------------------------------------------------------
412
- Views
413
- -----------------------------------------------------------------------------------
414
- */
415
-
416
- .mapp-view-filters .mapp-filters {
417
display: block;
418
}
419
420
- .mapp-view-menu .mapp-menu {
421
- display: block;
422
- }
423
-
424
- .mapp-view-directions .mapp-directions {
425
- display: block;
426
- }
427
-
428
- .mapp-view-directions .mapp-list {
429
- display: none;
430
}
431
432
.mapp-left [data-mapp-action="view-map"] { display: none; }
@@ -505,9 +596,6 @@
505
Custom controls
506
-----------------------------------------------------------------------------------
507
*/
508
- .mapp-controls {
509
- display: none;
510
- }
511
512
.mapp-menu-toggle {
513
background: white url('../images/menu-2x.png') no-repeat center center;
@@ -516,10 +604,12 @@
516
color: #777;
517
cursor: pointer;
518
height: 29px;
519
- margin: 10px 0 0 10px;
520
outline: none;
521
outline: none; /* Prevent focus outline */
522
width: 32px;
523
}
524
525
.mapp-menu {
@@ -531,9 +621,9 @@
531
overflow: auto;
532
padding: 5px 0 5px 0;
533
position: absolute;
534
- top: 0 !important; left: 0 !important; bottom: 0 !important;
535
width: 150px;
536
- z-index: 10000000 !important;
537
}
538
539
.mapp-menu-item {
4
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5
*/
6
7
/*
8
-----------------------------------------------------------------------------------
9
Map layout - table containing map, directions, poi list
38
display: none;
39
}
40
41
+ /*
42
+ -----------------------------------------------------------------------------------
43
+ Prevent theme conflicts with Google maps. The !important modifier is used because some
44
+ themes use high-priority (very specific) selectors that interfere.
45
+ -----------------------------------------------------------------------------------
46
+ */
47
+
48
.mapp-canvas {
49
height: 100%;
50
margin: 0px;
55
}
56
57
.mapp-canvas img {
58
box-shadow: none !important; /* 2012 */
59
border-radius: 0px !important; /* 2012 */
60
visibility: inherit !important;
61
}
62
63
+ .mapp-layout.mapp-google .mapp-canvas img {
64
+ background-color: transparent;
65
+ margin: 0px;
66
+ max-height: none;
67
+ padding: 0px;
68
+ }
69
+
70
+ /* Prevent theme interference with leaflet */
71
+ .leaflet-popup-close-button {
72
+ box-shadow: none !important; /* 2016, 2017 */
73
+ }
74
+
75
+
76
+ @media only screen and (min--moz-device-pixel-ratio: 2),
77
+ only screen and (-o-min-device-pixel-ratio: 2/1),
78
+ only screen and (-webkit-min-device-pixel-ratio: 2),
79
+ only screen and (min-device-pixel-ratio: 2) {
80
+ background-size: 640px 640px;
81
+ }
82
+
83
.mapp-dialog {
84
background-color: white;
85
color: black;
89
position: absolute;
90
text-align: center;
91
top: 0; left: 0; right: 0;
92
+ z-index: 1000;
93
}
94
95
97
display: inline-block;
98
}
99
100
+ /*
101
+ -----------------------------------------------------------------------------------
102
+ POI List (new)
103
+ Structure:
104
+ .mapp-list
105
+ .mapp-list-header
106
+ .mapp-items
107
+ .mapp-item (one for each POI)
108
+ -----------------------------------------------------------------------------------
109
+ */
110
+
111
+ .mapp-list {
112
+ background-color: white;
113
+ overflow: auto;
114
+ position: relative; /* Needed to scroll list for selection */
115
+ z-index: 1;
116
+ }
117
+
118
+ .mapp-list .mapp-list-header {
119
+ padding: 5px;
120
+ text-align: center;
121
+ }
122
+
123
+ .mapp-list .mapp-items {
124
+ }
125
+
126
+ .mapp-list .mapp-item {
127
+ border-bottom: 1px solid lightgray;
128
+ cursor: pointer;
129
+ overflow: hidden;
130
+ padding: 5px;
131
+ }
132
+
133
+ .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
134
+ background-color: #fafafa;
135
+ }
136
+
137
+ .mapp-list .mapp-item .mapp-title {
138
+ overflow: hidden;
139
+ vertical-align: middle;
140
+ }
141
+
142
+ .mapp-list .mapp-item .mapp-icon {
143
+ float: left;
144
+ margin-right: 5px;
145
+ max-width: 24px !important; /* 2012 tries to override */
146
+ max-height: 24px;
147
+ }
148
+
149
+ .mapp-list .mapp-item .mapp-actions {
150
+ visibility: hidden;
151
+ }
152
+
153
+ .mapp-list .mapp-item .mapp-actions a {
154
+ text-decoration: none;
155
+ }
156
+
157
+ .mapp-list .mapp-item:hover .mapp-actions {
158
+ color: black;
159
+ visibility: visible;
160
+ }
161
+
162
+ .mapp-list .dashicons {
163
+ color: #82878c;
164
+ }
165
+
166
+ .mapp-list-footer {
167
+ margin-top: 10px;
168
+ text-align: center;
169
+ }
170
+
171
+ .mapp-list .mapp-next, .mapp-list .mapp-prev {
172
+ background-color: #f7f7f7;
173
+ border: 1px solid #ccc;
174
+ color: gray;
175
+ cursor: pointer;
176
+ display: inline-block;
177
+ line-height: 1;
178
+ margin: 0 10px 0 10px;
179
+ padding: 5px;
180
+ text-align: center;
181
+ user-select: none;
182
+ }
183
+
184
+ .mapp-list .mapp-next.mapp-active, .mapp-list .mapp-prev.mapp-active {
185
+ background-color: #e8e8e8;
186
+ color: black;
187
+ }
188
+
189
+ .mapp-list .mapp-msg {
190
+ text-align: center;
191
+ }
192
+
193
+ /*
194
+ -----------------------------------------------------------------------------------
195
+ layouts
196
+ -----------------------------------------------------------------------------------
197
+ */
198
+
199
+ .mapp-left .mapp-list {
200
+ border-right: 1px solid lightgray;
201
+ float: left;
202
+ height: 100%;
203
+ max-width: 45%;
204
+ width: 250px;
205
+ }
206
+
207
+ .mapp-inline .mapp-list {
208
+ border-top: 1px solid lightgray;
209
+ max-height: 300px;
210
+ }
211
+
212
/*
213
-----------------------------------------------------------------------------------
214
Header
217
.mapp-header {
218
background-color: #eee;
219
border-bottom: 1px solid lightgray;
220
+ display: table;
221
+ height: 36px;
222
+ width: 100%;
223
+ }
224
+
225
+ .mapp-header > div {
226
+ display: table-row;
227
+ width: 100%;
228
+ }
229
+
230
+ .mapp-header > div > div {
231
+ display: table-cell;
232
+ padding: 0;
233
}
234
235
.mapp-header-button {
236
cursor: pointer;
237
+ height: 35px;
238
+ line-height: 35px;
239
min-width: 70px;
240
padding: 0 5px 0 5px;
241
text-align: center;
242
text-transform: uppercase;
243
}
244
245
246
/*
247
-----------------------------------------------------------------------------------
248
Search
249
-----------------------------------------------------------------------------------
250
*/
251
.mapp-search {
252
position: relative;
253
width: 100%;
254
}
255
256
.mapp-search input.mapp-error {
257
outline: 1px solid red !important;
258
}
267
width: 18px;
268
}
269
270
+ .mapp-search .algolia-autocomplete {
271
+ display: block !important;
272
+ }
273
+
274
+ /* Important is used to override themes */
275
+ input.mapp-aa-input, input.mapp-aa-hint {
276
+ background: white ;
277
+ border: 1px solid #bbb ;
278
+ box-shadow: none ;
279
+ color: black ;
280
+ height: 34px ;
281
+ line-height: 34px ;
282
+ margin: 0 ;
283
+ padding: 5px 28px 5px 5px ;
284
+ vertical-align: middle ;
285
+ width: 100% ;
286
+ }
287
+
288
+ .mapp-autocomplete, .mapp-autocomplete * {
289
+ width: 100%;
290
+ }
291
+
292
+ .mapp-aa-dropdown-menu {
293
+ background-color: white;
294
+ border: 1px solid lightgray;
295
+ cursor: pointer;
296
+ width: 100%;
297
+ z-index: 1001 !important; /* Widget default is 100 which is too low */
298
+ }
299
+
300
+ .mapp-aa-suggestion {
301
+ border-top: 1px solid #e6e6e6;
302
+ overflow: hidden !important;
303
+ padding: 5px;
304
+ text-overflow: ellipsis;
305
+ white-space: nowrap !important;
306
+ }
307
+
308
+ .mapp-aa-suggestion span, .mapp-aa-suggestion p {
309
+ white-space: nowrap !important;
310
+ }
311
+
312
+ /* No results */
313
+ .mapp-aa-dropdown-menu .list-group-item {
314
+ padding: 5px;
315
+ }
316
+
317
+
318
+ .mapp-aa-cursor {
319
+ background-color: #fafafa;
320
+ }
321
+
322
/*
323
-----------------------------------------------------------------------------------
324
Filters
379
-----------------------------------------------------------------------------------
380
*/
381
382
+ .mapp-leaflet .mapp-iw {
383
+ max-width: 250px;
384
+ min-width: 200px;
385
+ }
386
+
387
/* Important is used to override common theme / user agent styles that interfere */
388
.mapp-iw * {
389
color: black;
435
-----------------------------------------------------------------------------------
436
*/
437
438
+ .mapp-ib-wrapper {
439
+ display: none;
440
+ position: absolute;
441
+ z-index: 100;
442
+ }
443
+
444
+ /* In fullscreen Google sets map z-index very high */
445
+ :fullscreen ~ .mapp-ib-wrapper { z-index: 10000000000; }
446
+ :-webkit-full-screen ~ .mapp-ib-wrapper { z-index: 10000000000; }
447
+ :-moz-full-screen ~ .mapp-ib-wrapper { z-index: 10000000000; }
448
+ :-ms-fullscreen ~ .mapp-ib-wrapper { z-index: 10000000000; }
449
+
450
.mapp-ib {
451
background-color: white;
452
+ border: 1px solid lightgray;
453
box-sizing: border-box;
454
+ max-width: 450px;
455
outline: none;
456
overflow: auto;
457
padding: 5px 20px 5px 10px;
458
}
459
460
/* Triangular tip */
461
.mapp-ib-tip {
462
+ height: 10px;
463
+ z-index: 1;
464
+ }
465
+
466
+ .mapp-ib-tip:after {
467
border-top: 10px solid white;
468
border-left: 10px solid transparent;
469
border-right: 10px solid transparent;
470
border-bottom: none;
471
+ content: "";
472
width: 0;
473
height: 0;
474
/* ie6 height fix */
475
font-size: 0;
476
+ left: 50%;
477
line-height: 0;
478
+ margin-left: -10px;
479
+ margin-top: -1px;
480
+ position: absolute;
481
}
482
483
484
/*
485
-----------------------------------------------------------------------------------
486
+ Views
487
-----------------------------------------------------------------------------------
488
*/
489
490
+ .mapp-view-filters .mapp-filters {
491
+ display: block;
492
+ z-index: 1001;
493
}
494
495
+ .mapp-view-menu .mapp-menu {
496
+ display: block;
497
}
498
499
+ .mapp-view-directions .mapp-directions {
500
+ display: block;
501
}
502
503
+ .mapp-view-directions .mapp-list {
504
+ display: none;
505
}
506
507
508
/*
509
-----------------------------------------------------------------------------------
510
+ Mini view - on hold
511
-----------------------------------------------------------------------------------
512
*/
513
514
/*
515
+ .mapp-has-filters .mapp-header, .mapp-has-search .mapp-header, .mapp-view-mini .mapp-header {
516
display: block;
517
}
518
519
+ .mapp-left.mapp-mini .mapp-list {
520
+ display: none !important;
521
}
522
523
.mapp-left [data-mapp-action="view-map"] { display: none; }
596
Custom controls
597
-----------------------------------------------------------------------------------
598
*/
599
600
.mapp-menu-toggle {
601
background: white url('../images/menu-2x.png') no-repeat center center;
604
color: #777;
605
cursor: pointer;
606
height: 29px;
607
outline: none;
608
outline: none; /* Prevent focus outline */
609
+ position: absolute;
610
+ top: 10px; left: 10px; bottom: 0; right: 0;
611
width: 32px;
612
+ z-index: 1000;
613
}
614
615
.mapp-menu {
621
overflow: auto;
622
padding: 5px 0 5px 0;
623
position: absolute;
624
+ top: 0; left: 0; bottom: 0;
625
width: 150px;
626
+ z-index: 1001;
627
}
628
629
.mapp-menu-item {
css/mappress_admin.css CHANGED
@@ -14,37 +14,36 @@
14
-----------------------------------------------------------------------------------
15
*/
16
17
- .mapp-m-panel input[type="button"] {
18
vertical-align: middle;
19
}
20
21
- #mapp_m_edit_panel td {
22
padding-right: 5px;
23
}
24
25
- .mapp-m-panel hr {
26
- background-color: lightgray; /* Some browsers used background color */
27
- border: 0;
28
- color: lightgray; /* IE uses color */
29
- height: 1px;
30
}
31
32
- .mapp-m-map-list {
33
- width: 100%;
34
- height: 100%;
35
margin-top: 5px;
36
- overflow: auto;
37
}
38
39
- .mapp-m-actions {
40
visibility: hidden;
41
}
42
43
- .mobile .mapp-m-actions {
44
visibility: visible;
45
}
46
47
- tr:hover > td > .mapp-m-actions {
48
visibility: visible;
49
}
50
@@ -54,6 +53,28 @@ tr:hover > td > .mapp-m-actions {
54
-----------------------------------------------------------------------------------
55
*/
56
57
.mapp-edit .mapp-layout {
58
border: 1px solid lightgray;
59
margin: 5px 0 0 0;
@@ -105,14 +126,18 @@ tr:hover > td > .mapp-m-actions {
105
106
.mapp-poi-edit {}
107
108
- .mapp-poi-edit a {
109
- vertical-align: middle;
110
}
111
112
.mapp-poi-edit .mapp-poi-toolbar {
113
margin-top: 5px;
114
}
115
116
/* Table used to align title/icon */
117
.mapp-poi-edit .mapp-table {
118
width: 100%;
@@ -124,8 +149,13 @@ tr:hover > td > .mapp-m-actions {
124
vertical-align: middle;
125
}
126
127
.mapp-poi-edit .mapp-poi-body {
128
- width: 100%;
129
height: 143px;
130
}
131
@@ -133,6 +163,10 @@ tr:hover > td > .mapp-m-actions {
133
cursor: pointer;
134
}
135
136
/* Border around tinyMCE editor (WP removes it). mceLayout is for WP < 3.9 */
137
.mapp-poi-edit .mce-panel, .mapp-poi-edit table.mceLayout {
138
border: 1px solid lightgray !important;
@@ -150,19 +184,46 @@ tr:hover > td > .mapp-m-actions {
150
-----------------------------------------------------------------------------------
151
*/
152
153
- .mapp-settings-screen #mapp0 {
154
max-width: 600px;
155
}
156
157
- .mapp-settings-screen input.button {
158
- vertical-align: middle !important;
159
- }
160
-
161
.mapp-settings-screen label {
162
margin-right: 10px;
163
white-space: nowrap;
164
}
165
166
/* MapPress tables */
167
.mapp-settings-screen .form-table table {
168
border: 1px solid #dfdfdf;
@@ -172,7 +233,6 @@ tr:hover > td > .mapp-m-actions {
172
width: auto;
173
}
174
175
-
176
.mapp-settings-screen .form-table table th {
177
font-weight: bold;
178
background-color: rgb(241, 241, 241);
@@ -191,6 +251,13 @@ tr:hover > td > .mapp-m-actions {
191
padding: 5px;
192
}
193
194
/* Sort handles */
195
.mapp-handle {
196
cursor: move;
@@ -206,6 +273,99 @@ tr:hover > td > .mapp-m-actions {
206
color:red;
207
}
208
209
210
/*
211
-----------------------------------------------------------------------------------
@@ -218,11 +378,6 @@ tr:hover > td > .mapp-m-actions {
218
z-index: 100002;
219
}
220
221
- /* Prevent scrollbars on body when popup is open */
222
- body.mapp-popup-open {
223
- overflow: hidden;
224
- }
225
-
226
.mapp-popup {
227
background-color: white;
228
border: 1px solid lightgray;
@@ -230,7 +385,27 @@ body.mapp-popup-open {
230
box-sizing: content-box;
231
display: inline-block;
232
padding: 5px 20px 5px 5px;
233
- z-index: 100001;
234
}
235
236
.mapp-popup-backdrop {
@@ -243,24 +418,6 @@ body.mapp-popup-open {
243
z-index: 100000; /* WP adminbar is 99999 */
244
}
245
246
- /* Max size */
247
- .mapp-popup-max {
248
- position: fixed;
249
- top: 10%; bottom: 10%; left: 20%; right: 20%;
250
- }
251
-
252
- /* Max size on small screens */
253
- @media screen and (max-width: 900px) {
254
- .mapp-popup-max {
255
- top: 10%; bottom: 10%; left: 10%; right: 10%;
256
- }
257
- }
258
- @media screen and (max-width: 640px), screen and (max-height: 400px) {
259
- .mapp-popup-max {
260
- top: 0; bottom: 0; left: 0; right: 0;
261
- }
262
- }
263
-
264
/*
265
-----------------------------------------------------------------------------------
266
Icon Picker
14
-----------------------------------------------------------------------------------
15
*/
16
17
+ .mapp-media input[type="button"] {
18
vertical-align: middle;
19
}
20
21
+ .mapp-media-edit-panel {
22
+ display:none;
23
+ }
24
+
25
+ .mapp-media-edit-panel td {
26
padding-right: 5px;
27
}
28
29
+ .mapp-media-toolbar {
30
+ margin-top: 5px;
31
}
32
33
+ .mapp-media-list {
34
+ border-top: 1px solid lightgray;
35
margin-top: 5px;
36
}
37
38
+ .mapp-media-actions {
39
visibility: hidden;
40
}
41
42
+ .mobile .mapp-media-actions {
43
visibility: visible;
44
}
45
46
+ tr:hover > td > .mapp-media-actions {
47
visibility: visible;
48
}
49
53
-----------------------------------------------------------------------------------
54
*/
55
56
+ .mapp-edit .mapp-list-header {
57
+ background-color: #f1f1f1;
58
+ border-bottom: 1px solid lightgray;
59
+ padding: 10px;
60
+ text-align: left;
61
+ }
62
+
63
+ .mapp-edit .mapp-list-header a {
64
+ color: black;
65
+ font-size: 12px;
66
+ text-decoration: none;
67
+ }
68
+
69
+ .mapp-edit .mapp-list-header a:hover {
70
+ text-decoration: underline;
71
+ }
72
+
73
+ .mapp-edit .mapp-list-header .dashicons {
74
+ font-size: 16px;
75
+ vertical-align: middle;
76
+ }
77
+
78
.mapp-edit .mapp-layout {
79
border: 1px solid lightgray;
80
margin: 5px 0 0 0;
126
127
.mapp-poi-edit {}
128
129
+ .mapp-poi-edit a, .mapp-poi-edit button, .mapp-poi-edit input[type="button"] {
130
+ vertical-align: middle !important;
131
}
132
133
.mapp-poi-edit .mapp-poi-toolbar {
134
margin-top: 5px;
135
}
136
137
+ .mapp-poi-edit .mapp-poi-toolbar a,.mapp-poi-edit .mapp-poi-toolbar .button {
138
+ margin-right: 5px;
139
+ }
140
+
141
/* Table used to align title/icon */
142
.mapp-poi-edit .mapp-table {
143
width: 100%;
149
vertical-align: middle;
150
}
151
152
+ .mapp-poi-edit [data-mapp-iconpicker], .mapp-poi-edit [data-mapp-colorpicker] {
153
+ margin-left: 5px !important;
154
+ }
155
+
156
+
157
.mapp-poi-edit .mapp-poi-body {
158
+ width: 306px;
159
height: 143px;
160
}
161
163
cursor: pointer;
164
}
165
166
+ .mapp-poi-edit .mapp-poi-visual.mapp-active, .mapp-poi-edit .mapp-poi-html.mapp-active {
167
+ color: black;
168
+ }
169
+
170
/* Border around tinyMCE editor (WP removes it). mceLayout is for WP < 3.9 */
171
.mapp-poi-edit .mce-panel, .mapp-poi-edit table.mceLayout {
172
border: 1px solid lightgray !important;
184
-----------------------------------------------------------------------------------
185
*/
186
187
+ .mapp-settings-screen #mapp0-layout {
188
max-width: 600px;
189
}
190
191
.mapp-settings-screen label {
192
margin-right: 10px;
193
white-space: nowrap;
194
}
195
196
+ .mapp-settings-toolbar {
197
+ margin-top: 10px;
198
+ }
199
+
200
+ /* Simulate postboxes */
201
+ .mapp-settings-screen h2 {
202
+ background-color: white;
203
+ border-bottom: 1px solid #eee;
204
+ font-size: 14px;
205
+ margin-bottom: 0;
206
+ padding: 8px 12px 8px 12px;
207
+ }
208
+
209
+ .mapp-settings-screen .form-table {
210
+ margin-top: 0;
211
+ }
212
+
213
+ .mapp-settings-screen .form-table th {
214
+ background-color: white;
215
+ padding: 16px 12px 16px 12px;
216
+ }
217
+
218
+ .mapp-settings-screen .form-table td {
219
+ background-color: white;
220
+ padding: 16px 12px 16px 12px;
221
+ }
222
+
223
+ .mapp-settings-screen .button {
224
+ vertical-align: middle;
225
+ }
226
+
227
/* MapPress tables */
228
.mapp-settings-screen .form-table table {
229
border: 1px solid #dfdfdf;
233
width: auto;
234
}
235
236
.mapp-settings-screen .form-table table th {
237
font-weight: bold;
238
background-color: rgb(241, 241, 241);
251
padding: 5px;
252
}
253
254
+ a.mapp-help {
255
+ display: inline-block;
256
+ margin-left: 2px;
257
+ text-decoration: none;
258
+ }
259
+
260
+
261
/* Sort handles */
262
.mapp-handle {
263
cursor: move;
273
color:red;
274
}
275
276
+ /*
277
+ -----------------------------------------------------------------------------------
278
+ Template Editor
279
+ -----------------------------------------------------------------------------------
280
+ */
281
+
282
+ .mapp-tp-detail {
283
+ height: 600px;
284
+ width: 800px;
285
+ max-width: 90%;
286
+ max-height: 90%;
287
+ padding: 5px;
288
+ }
289
+
290
+ .mapp-tp-detail .mapp-tp-name {
291
+ font-weight: bold;
292
+ margin: 5px 0 5px 0;
293
+ text-transform: uppercase;
294
+ }
295
+
296
+ .mapp-tp-detail .mapp-tp-path {
297
+ font-size: 12px;
298
+ font-style: italic;
299
+ margin-bottom: 5px;
300
+ }
301
+
302
+ .mapp-tp-detail code {
303
+ border: 1px solid gray;
304
+ margin-right: 10px;
305
+ }
306
+
307
+ .mapp-tp-detail .mapp-tp-toolbar {
308
+ border-top: 1px solid lightgray;
309
+ margin-top: 5px;
310
+ padding: 5px;
311
+ }
312
+
313
+ .mapp-tp-detail .mapp-tp-toolbar input.button {
314
+ margin-right: 4px;
315
+ }
316
+
317
+ .mapp-tp-detail .mapp-tab-standard .CodeMirror {
318
+ background: #f7f7f7;
319
+ height: auto;
320
+ position: absolute;
321
+ top: 100px; bottom: 50px; left: 5px; right: 5px;
322
+ }
323
+
324
+ .mapp-tp-detail .mapp-tab-content .CodeMirror {
325
+ position: absolute;
326
+ top: 150px; bottom: 50px; left: 5px; right: 5px;
327
+ }
328
+
329
+ .mapp-tp-detail .mapp-tp-toolbar {
330
+ position: absolute;
331
+ bottom: 5px; left: 5px; right: 5px;
332
+ }
333
+
334
+ /*
335
+ -----------------------------------------------------------------------------------
336
+ Tabs
337
+ -----------------------------------------------------------------------------------
338
+ */
339
+
340
+ .mapp-tabs .mapp-tab-label {
341
+ background-color: white;
342
+ border-left: 1px solid lightgray;
343
+ border-right: 1px solid lightgray;
344
+ border-top: 1px solid lightgray;
345
+ cursor: pointer;
346
+ display: inline-block;
347
+ margin: 0;
348
+ padding: 10px;
349
+ position: relative;
350
+ top: 1px;
351
+ z-index: 1;
352
+ }
353
+ .mapp-tabs .mapp-tab-label.mapp-active {
354
+ border-bottom: 1px solid white;
355
+ font-weight: bold;
356
+ }
357
+
358
+ .mapp-tabs .mapp-tab {
359
+ background-color: white;
360
+ border-top: 1px solid lightgray;
361
+ clear: both;
362
+ display: none;
363
+ padding: 10px;
364
+ }
365
+
366
+ .mapp-tabs .mapp-tab.mapp-active {
367
+ display: block;
368
+ }
369
370
/*
371
-----------------------------------------------------------------------------------
378
z-index: 100002;
379
}
380
381
.mapp-popup {
382
background-color: white;
383
border: 1px solid lightgray;
385
box-sizing: content-box;
386
display: inline-block;
387
padding: 5px 20px 5px 5px;
388
+ z-index: 100005; /* Keep above popup-max */
389
+ }
390
+
391
+ .mapp-popup-fixed {
392
+ background-color: white;
393
+ border: 2px solid black;
394
+ position: fixed;
395
+ left: 50%;
396
+ top: 50%;
397
+ transform: translate(-50%, -50%);
398
+ z-index: 100002;
399
+ }
400
+
401
+ .mapp-popup-max {
402
+ transform: none;
403
+ top: 80px; left: 80px; bottom: 80px; right: 80px;
404
+ }
405
+
406
+ /* Prevent scrollbars on body when popup is open */
407
+ body.mapp-popup-modal {
408
+ overflow: hidden;
409
}
410
411
.mapp-popup-backdrop {
418
z-index: 100000; /* WP adminbar is 99999 */
419
}
420
421
/*
422
-----------------------------------------------------------------------------------
423
Icon Picker
forms/map_editor.php CHANGED
@@ -1,64 +1,58 @@
1
- <div class='mapp-edit'>
2
- <div class='mapp-table mapp-searchbox'>
3
- <div>
4
- <div class='mapp-max'>
5
- <input style='width:100%' type='text' id='mapp_e_saddr' placeholder='<?php _e('Add POI', 'mappress-google-maps-for-wordpress'); ?>'/>
6
- </div>
7
- <div>
8
- <button id='mapp_e_search' class='button button-primary mapp-search-button'></button>
9
- </div>
10
- <?php if (Mappress::ssl()) : ?>
11
- <div>
12
- <button id='mapp_e_myloc' class='button mapp-geolocate-button' title='<?php _e('My location', 'mappress-google-maps-for-wordpress');?>'></button>
13
- </div>
14
- <?php endif; ?>
15
- </div>
16
- </div>
17
- <div id='mapp_e_saddr_err' style='display:none'></div>
18
-
19
- <?php echo $map->display(); ?>
20
- </div>
21
22
23
- <script type='text/template' id='mapp-tmpl-poi-edit'>
24
- <div class='mapp-poi-edit'>
25
- <div class='mapp-table'>
26
- <div>
27
- <div><input class='mapp-poi-title' type='text' value='{{poi.title}}'></div>
28
- <# if (!poi.type) { #>
29
- <div><img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'></div>
30
- <# } else if (poi.isPoly()) { #>
31
- <div><span data-mapp-colorpicker class='mapp-colorpicker-toggle' data-mapp-color='{{{colors.color}}}' data-mapp-opacity='{{{colors.opacity}}}' data-mapp-weight='{{{colors.weight}}}' tabindex='0'></span></div>
32
- <# } #>
33
</div>
34
</div>
35
36
- <# if (poi.type == 'kml') { #>
37
- <div class='mapp-poi-kml'>
38
- <input class='mapp-poi-url' type='text' readonly='readonly' value='<# print( (poi.kml) ? poi.kml.url : '' );#>'/>
39
</div>
40
- <# } #>
41
42
- <div>
43
- <a data-mapp-action='poi-visual'><?php _e('Visual', 'mappress-google-maps-for-wordpress'); ?></a> | <a data-mapp-action='poi-html'><?php _e('HTML', 'mappress-google-maps-for-wordpress');?></a>
44
- </div>
45
46
- <textarea id='mapp-poi-body' class='mapp-poi-body' rows='10'>{{ poi.body }}</textarea>
47
48
- <div class='mapp-poi-toolbar'>
49
- <button data-mapp-action='poi-save' class='button button-primary'><?php _e('Save', 'mappress-google-maps-for-wordpress'); ?></button>
50
- <button data-mapp-action='poi-cancel' class='button'><?php _e('Cancel', 'mappress-google-maps-for-wordpress'); ?></button>
51
- <a href='#' data-mapp-action='poi-remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
52
- </div>
53
- </div>
54
- </script>
55
56
- <script type='text/template' id='mapp-tmpl-poi-list'>
57
- <div class='mapp-items'>
58
- <# _.forEach(pois, function(poi, i) { #>
59
- <div class='mapp-item' data-mapp-action='open' data-mapp-poi='{{{i}}}'>
60
- <img class='mapp-icon' src='<# print(mapp.Icons.getUrl(poi.iconid)); #>'>
61
- <div class='mapp-title'>{{poi.title}}</div>
62
</div>
63
- <# }); #>
64
</script>
1
+ <div class='mapp-edit'></div>
2
3
+ <script type='text/template' id='mapp-tmpl-edit-map'>
4
+ <?php echo Mappress_Template::get_template('map', array('map' => $map)); ?>
5
+ </script>
6
7
+ <script type='text/template' id='mapp-tmpl-edit-loop'>
8
+ <# if (mappl10n.options.pro) { #>
9
+ <div class='mapp-list-header'>
10
+ <span class="dashicons dashicons-admin-page"></span>
11
+ <a href='#' data-mapp-editor='layer'><?php esc_attr_e('Add KML', 'mappress-google-maps-for-wordpress'); ?></a>
12
</div>
13
+ <# } #>
14
+ <div class='mapp-items'>
15
+ <# _.forEach(pois, function(poi, i) { #>
16
+ <div class='mapp-item' data-mapp-action='open' data-mapp-poi='{{{i}}}'><# print(poi.render('item')); #></div>
17
+ <# }); #>
18
</div>
19
+ </script>
20
21
+ <script type='text/template' id='mapp-tmpl-edit-item'>
22
+ <img class="mapp-icon" src="{{{poi.icon}}}">
23
+ <div class='mapp-title'>{{{poi.title}}}</div>
24
+ </script>
25
+
26
+ <script type='text/template' id='mapp-tmpl-edit-popup'>
27
+ <div class='mapp-poi-edit'>
28
+ <div class='mapp-table'>
29
+ <div>
30
+ <div><input class='mapp-poi-title' type='text' value='{{poi.title}}'></div>
31
+ <# if (!poi.type) { #>
32
+ <div><img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'></div>
33
+ <# } else if (poi.isPoly()) { #>
34
+ <# var colors = poi.getTemplateColors(); #>
35
+ <div><span data-mapp-colorpicker class='mapp-colorpicker-toggle' data-mapp-color='{{{colors.color}}}' data-mapp-opacity='{{{colors.opacity}}}' data-mapp-weight='{{{colors.weight}}}' tabindex='0'></span></div>
36
+ <# } #>
37
+ </div>
38
</div>
39
40
+ <# if (poi.type == 'kml') { #>
41
+ <div class='mapp-poi-kml'>
42
+ <input class='mapp-poi-url' type='text' readonly='readonly' value='<# print( (poi.kml) ? poi.kml.url : '' );#>'/>
43
+ </div>
44
+ <# } #>
45
46
+ <div>
47
+ <a class='mapp-poi-visual'><?php _e('Visual', 'mappress-google-maps-for-wordpress'); ?></a> | <a class='mapp-poi-html'><?php _e('HTML', 'mappress-google-maps-for-wordpress');?></a>
48
+ </div>
49
50
+ <textarea id='mapp-poi-body' class='mapp-poi-body' rows='10'>{{ poi.body }}</textarea>
51
52
+ <div class='mapp-poi-toolbar'>
53
+ <button data-mapp-poi='save' class='button button-primary'><?php _e('Save', 'mappress-google-maps-for-wordpress'); ?></button>
54
+ <button data-mapp-poi='cancel' class='button'><?php _e('Cancel', 'mappress-google-maps-for-wordpress'); ?></button>
55
+ <a href='#' data-mapp-poi='remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
56
</div>
57
+ </div>
58
</script>
forms/map_media.php CHANGED
@@ -1,23 +1,23 @@
1
- <div class='mapp-m-panel'>
2
<?php echo Mappress::get_support_links(); ?>
3
- <div id='mapp_m_list_panel' style='display:none'>
4
<b><?php _e('Maps for This Post', 'mappress-google-maps-for-wordpress')?></b>
5
- <input class='button' type='button' id='mapp_m_add_map' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
6
- <div id='mapp_m_maplist'>
7
<?php echo Mappress_Map::get_map_list(); ?>
8
</div>
9
</div>
10
11
- <div id='mapp_m_edit_panel' style='display:none'>
12
<table class='mapp-settings'>
13
<tr>
14
<td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
15
- <td><span id='mapp_m_mapid'></span></td>
16
</tr>
17
18
<tr>
19
<td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
20
- <td><input id='mapp_m_title' type='text' size='40' placeholder='<?php _e('Untitled', 'mappress-google-maps-for-wordpress');?>' /></td>
21
</tr>
22
23
<tr>
@@ -26,17 +26,22 @@
26
<?php
27
$sizes = array();
28
foreach(Mappress::$options->sizes as $i => $size)
29
- $sizes[] = "<a href='#' class='mapp-m-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
30
echo implode(' | ', $sizes);
31
?>
32
- <input type='text' id='mapp_m_width' size='2' value='' /> x <input type='text' id='mapp_m_height' size='2' value='' />
33
</td>
34
</tr>
35
</table>
36
- <div>
37
- <input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
38
- <input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
39
- <input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
40
</div>
41
<?php require Mappress::$basedir . "/forms/map_editor.php"; ?>
42
</div>
1
+ <div class='mapp-media'>
2
<?php echo Mappress::get_support_links(); ?>
3
+ <div class='mapp-media-list-panel'>
4
<b><?php _e('Maps for This Post', 'mappress-google-maps-for-wordpress')?></b>
5
+ <input data-mapp-media='add' class='button' type='button' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
6
+ <div class='mapp-media-list'>
7
<?php echo Mappress_Map::get_map_list(); ?>
8
</div>
9
</div>
10
11
+ <div class='mapp-media-edit-panel'>
12
<table class='mapp-settings'>
13
<tr>
14
<td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
15
+ <td><span class='mapp-media-mapid'></span></td>
16
</tr>
17
18
<tr>
19
<td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
20
+ <td><input class='mapp-media-title' type='text' size='40' placeholder='<?php _e('Untitled', 'mappress-google-maps-for-wordpress');?>' /></td>
21
</tr>
22
23
<tr>
26
<?php
27
$sizes = array();
28
foreach(Mappress::$options->sizes as $i => $size)
29
+ $sizes[] = "<a href='#' class='mapp-media-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
30
echo implode(' | ', $sizes);
31
?>
32
+ <input type='text' class='mapp-media-width' size='2' value='' /> x <input type='text' class='mapp-media-height' size='2' value='' />
33
</td>
34
</tr>
35
+
36
+ <tr>
37
+ <td><?php _e('Save center / zoom', 'mappress-google-maps-for-wordpress');?></td>
38
+ <td><input type='checkbox' class='mapp-media-viewport'></td>
39
+ </tr>
40
</table>
41
+ <div class='mapp-media-toolbar'>
42
+ <input data-mapp-media='save' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
43
+ <input data-mapp-media='cancel' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
44
+ <input data-mapp-media='insert' class='button' type='button' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
45
</div>
46
<?php require Mappress::$basedir . "/forms/map_editor.php"; ?>
47
</div>
forms/template_editor.php ADDED
@@ -0,0 +1,47 @@
1
+ <div class='mapp-tp-editor'>
2
+ <div class='mapp-tp-master'>
3
+ <?php echo Mappress_Controls::select('', $templates, 'map-tmpl-poi', array('class' => 'mapp-tp-select')); ?>
4
+ <?php echo Mappress_Controls::button('', __('Edit', 'mappress-google-maps-for-wordpress'), array('class' => 'button button-primary', 'data-mapp-action' => 'edit')); ?>
5
+ </div>
6
+ <div class='mapp-tp-detail'></div>
7
+ </div>
8
+
9
+ <script type='text/html' id='mapp-tmpl-tp-master'>
10
+ <div class='mapp-tp-master'>
11
+ <select class='mapp-tp-select'>
12
+ <# _.each(collection, function(template, name) { #>
13
+ <option <# print( ( model && model.name == name) ? 'selected' : ''); #> value='{{name}}'>
14
+ <# if (template.exists) print ('*'); #> {{template.label}}
15
+ </option>
16
+ <# }); #>
17
+ </select>
18
+ <input type='button' class='button button-primary' data-mapp-action='edit' value='<?php _e('Edit', 'mappress-google-maps-for-wordpress');?>'>
19
+
20
+ </div>
21
+ </script>
22
+
23
+ <script type='text/html' id='mapp-tmpl-tp-detail'>
24
+ <div class='mapp-tp-name'>{{ model.name }} <# if (!model.exists) { #>(<?php _e('New', 'mappress-google-maps-for-wordpress');?>)<# } else { #>(<?php _e('Custom', 'mappress-google-maps-for-wordpress');?>)<# } #></div>
25
+ <div class='mapp-tp-path'>{{ model.path }}</div>
26
+ <div class='mapp-tabs'>
27
+ <div class='mapp-tab-label mapp-active' class='mapp-active'><?php _e('Editor', 'mappress-google-maps-for-wordpress');?></div>
28
+ <div class='mapp-tab-label'><?php _e('Default', 'mappress-google-maps-for-wordpress');?></div>
29
+ <div class='mapp-tab mapp-tab-content mapp-active'>
30
+ <# _.each(tokens, function (token, i) { #>
31
+ <code data-mapp-action='insert' data-mapp-insert='{{{i}}}' title='{{{i}}}'>{{{token}}}</code>
32
+ <# }); #>
33
+ <hr/>
34
+ <textarea class='mapp-tp-content'>{{{ model.content }}}</textarea>
35
+ </div>
36
+ <div class='mapp-tab mapp-tab-standard'>
37
+ <textarea readonly class='mapp-tp-standard'>{{{ model.standard }}}</textarea>
38
+ </div>
39
+ </div>
40
+ <div class='mapp-tp-toolbar'>
41
+ <input type='button' class='button button-primary' data-mapp-action='save' value='<?php _e('Save', 'mappress-google-maps-for-wordpress');?>'>
42
+ <input type='button' class='button' data-mapp-action='cancel' value='<?php _e('Cancel', 'mappress-google-maps-for-wordpress');?>'>
43
+ <# if (model.exists) { #>
44
+ <a href='#' data-mapp-action='destroy'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
45
+ <# } #>
46
+ </div>
47
+ </script>
js/mappress.min.js CHANGED
@@ -1 +1 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Map=function(t,r){function a(n,t){n=n.split(" ");for(var i=0;i<n.length;i++)google.maps.event.addListener(u,n[i],t)}function y(){var i,t;n("[data-mapp-type]",e.menu).removeClass("mapp-active");n('[data-mapp-type="'+u.getMapTypeId()+'"]',e.menu).addClass("mapp-active");for(layer in s)i=!!s[layer].getMap(),n('[data-mapp-layer="'+layer+'"]',e.menu).toggleClass("mapp-active",i);t=!!(f.center&&f.zoom);n('[data-mapp-action="viewport-set"]',e.menu).toggle(!t);n('[data-mapp-action="viewport-reset"]',e.menu).toggle(t)}function p(){var n=mappl10n.options.styles,i=mappl10n.options.style,r=["roadmap","satellite","terrain","hybrid"],t;if(i&&typeof n[i]!="undefined"&&u.setOptions({styles:n[i]}),f.editable){for(t in n)u.mapTypes.set(t,new google.maps.StyledMapType(n[t],{name:t})),r.push(t);u.setOptions({mapTypeControlOptions:{mapTypeIds:r,position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}})}else typeof n[f.mapTypeId]!="undefined"&&u.setOptions({styles:n[f.mapTypeId]})}function w(){e.controls.children("[data-mapp-position]").each(function(){var t=n(this).attr("data-mapp-position"),i;t=t?google.maps.ControlPosition[t]:google.maps.ControlPosition.TOP_RIGHT;i=n(this);i.get(0).index=0;u.controls[t].push(i.get(0))})}function b(){var e,i,t,r;for(s={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer},e=n.makeArray(f.layers),i=0;i<e.length;i++)t=n.trim(e[i]),r=t.split(".").pop(),s[t]?l(t):r=="kml"||r=="kmz"?s[t]=new google.maps.KmlLayer({map:u,preserveViewport:!0,url:t}):r=="json"&&(s[t]=new google.maps.Data({map:u}).loadGeoJson(t))}function l(t,i){n.each(["traffic","bicycling","transit"],function(n,t){s[t].setMap(null)});t&&(i=typeof i=="undefined"?s[t].getMap()==null:i,s[t].setMap(i?u:null))}function v(t,i){var r=n.inArray(t,["roadmap","satellite","terrain","hybrid"])!=-1;i=typeof i!="undefined"?i:!(u.getMapTypeId()==t);t=f.editable?i&&(r||typeof mappl10n.options.styles[t]!="undefined")?t:"roadmap":r?t:"roadmap";u.setMapTypeId(t)}this.defaults={center:null,editable:null,height:null,initialOpenDirections:null,initialOpenInfo:null,layers:null,mapid:null,mapTypeId:null,metaKey:null,mapOpts:null,name:null,pois:null,postid:null,query:null,title:null,width:null,zoom:null};this.iw=null;this.places=null;this.poi=null;this.settings=r?r:{};var f=this,h=null,e={},u=null,s={},o=[],c;_.extend(this,this.defaults,_.pick(t,_.keys(this.defaults)),_.pick(this.settings,_.keys(this.defaults)));this.display=function(){if(e.layout=n("#"+this.name),n.each(["canvas","controls","directions","filters","list","menu","search"],function(t,i){e[i]=n(".mapp-"+i,e.layout)}),!e.canvas.length)return mapp.lib.log("MapPress: Missing map name or container for map: "+this.name);u=new google.maps.Map(e.canvas.get(0),{mapTypeId:"roadmap",zoom:1});var t=_.extend({backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},minZoom:0,scaleControl:!0,scrollwheel:!1,streetViewControl:!this.editable&&!this.query},this.mapOpts);t.minZoom=isNaN(parseInt(t.minZoom))?0:parseInt(t.minZoom);u.setOptions(t);p();w();b();v(this.mapTypeId,!0);this.places=new mapp.Places(n(".mapp-places",e.search),{map:f});f.editable||google.maps.event.addListener(this.places,"search",function(n){f.search(n)});e.layout.on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action");t.preventDefault();f.action(i,n(this).attr("data-mapp-"+i),n(this))});e.filters.on("change",function(){f.ajaxQuery(u.getBounds())});a("click drag",function(){f.closeInfoWindow()});n("body").on("click",function(t){var i=n(t.target),r=i.attr("data-mapp-action");i==e.filters||r=="filters-toggle"||i.closest(e.filters).length||f.toggleView("filters",!1);i==e.menu||r=="menu-toggle"||i.closest(e.menu).length||f.toggleView("menu",!1)});n(window).resize(function(){f.resize()});this.iw=mappl10n.options.iwType=="ib"||this.editable?new mapp.InfoBox(this):new google.maps.InfoWindow;google.maps.event.addListenerOnce(u,"idle",function(){var n=o.length?o[0]:null;f.initialOpenDirections?f.openDirections(null,n):n&&f.initialOpenInfo&&n.open()});mappl10n.options.search&&google.maps.event.addListenerOnce(u,"tilesloaded",function(){google.maps.event.addListenerOnce(u,"idle",function(){a("dragend zoom_changed",function(){f.ajaxQuery(u.getBounds())})})});this.query||this.setPois(this.pois);this.places.parse(this.center,function(n){f.query?n?f.search(n):f.ajaxQuery():(n&&n.geometry&&n.geometry.location&&(f.center=n.geometry.location.toJSON()),f.recenter())})};this.load=function(n){_.extend(this,this.defaults,n,this.settings);v(this.mapTypeId,!0);this.toggleView("menu",!1);l();this.closeInfoWindow();this.setPois(this.pois);this.places.set("");google.maps.event.trigger(this,"load")};this.action=function(t,i,r){switch(t){case"center":this.toggleView("menu",!1);this.closeInfoWindow();this.recenter();break;case"dir":this.openDirections(null,this.poi);break;case"dir-from":this.openDirections(this.poi,null);break;case"filters-reset":e.filters.find(":input").each(function(){this.type=="checkbox"||this.type=="radio"?n(this).prop("checked",!1):n(this).val("")});this.ajaxQuery(u.getBounds());break;case"filters-toggle":this.toggleView("filters");break;case"geolocate":this.places.geolocate(function(n){n&&f.search(n)});break;case"layer":l(i);this.toggleView("menu",!1);break;case"menu-toggle":this.toggleView("menu");break;case"open":var s=r.attr("data-mapp-poi");this.openInfoWindow(o[s]);break;case"show":e.layout.show();this.resize();this.initCenter();break;case"view-map":this.toggleView("list",!1);break;case"view-list":this.toggleView("list",!0);break;case"viewport-set":this.center=u.getCenter().toJSON();this.zoom=u.getZoom();this.toggleView("menu",!1);break;case"viewport-reset":this.center=null;this.zoom=null;this.toggleView("menu",!1);this.recenter();break;default:return!0}};this.search=function(n){var t=n.geometry.location?n.geometry.location:null,i=n.geometry.viewport?n.geometry.viewport:null,r=new google.maps.Circle({center:t,radius:mappl10n.options.radius*1e3}),f=i?i.union(r.getBounds()):r.getBounds();u.fitBounds(f,0);u.setCenter(t);this.query&&this.ajaxQuery(f)};this.dialog=function(t,i){t?(e.canvas.append("<div class='mapp-dialog'>"+t+"<\/div>"),i&&(clearTimeout(this.dialog.fade),this.dialog.fade=setTimeout(function(){f.dialog(null)},3e3))):n(".mapp-dialog",e.canvas).remove()};this.closeInfoWindow=function(){this.iw.close();this.poiSelect(null)};this.openDirections=function(n,t){var i=n?n.getAddress():"",r=t?t.getAddress():"";h||(h=new mapp.Directions(e.directions,f));h.open(i,r)};this.poiSelect=function(t){if(n("[data-mapp-poi]",e.list).removeClass("mapp-selected"),t){var r=n.inArray(t,o),i=n('[data-mapp-poi="'+r+'"]',e.list);i.addClass("mapp-selected");mapp.lib.scrollTo(e.list,i);t.setZIndex(++c)}this.poi=t};this.getMap=function(){return u};this.renderList=function(){this.editable&&(e.list.html(mapp.lib.template("poi-list",{pois:o})),google.maps.event.trigger(this,"render-list"))};this.getPois=function(){return o};this.addPoi=function(n){o.unshift(n);n.setMap(this);f.renderList();this.poiSelect(n)};this.removePoi=function(t){var i=n.inArray(t,o);i!=-1&&(o[i].setMap(null),o.splice(i,1),f.renderList())};this.resetPois=function(){for(i=0;i<o.length;i++)o[i].setMap(null);o=[];c=google.maps.Marker.MAX_ZINDEX};this.setPois=function(n){var t,i;if(this.resetPois(),n){for(t=0;t<n.length;t++)i=new mapp.Poi(n[t]),o.push(i),i.setMap(this),i.setZIndex(c+n.length-1-t);c+=n.length-1}this.renderList()};this.sortPois=function(n){for(var r,t=Array(),i=0;i<n.length;i++){if(r=parseInt(n[i]),isNaN(r))return!1;t.push(o[r])}if(t.length!=o.length)return!1;o=t;this.renderList()};this.openInfoWindow=function(n,t){if(h&&h.close(),this.iw.close(),this.poiSelect(n),mappl10n.options.mashupClick!="poi"&&n.postid&&n.url){window.open(n.url);return}this.toggleView("list",!1);this.editable||this.iw.setContent(n.html);google.maps.event.addListenerOnce(this.iw,"domready",function(){google.maps.event.trigger(f,"poidomready",n)});google.maps.event.trigger(f,"open",n);var i=new google.maps.MVCObject;i.setValues({position:n.getPosition(t),anchorPoint:n.getAnchorPoint(t)});this.iw.open(u,i)};this.togglePois=function(n){n=!!n;for(var t=0;t<o.length;t++)o[t].setVisible(n)};this.toggleView=function(n,t){t=typeof t=="undefined"?!e.layout.hasClass("mapp-view-"+n):t;e.layout.toggleClass("mapp-view-"+n,t);n=="menu"&&t&&y();n=="directions"&&this.resize()};this.resize=function(){var n=u.getCenter();google.maps.event.trigger(u,"resize");u.setCenter(n)};this.recenter=function(){var i=!this.query&&this.center&&this.center.lat&&this.center.lng?new google.maps.LatLng(this.center.lat,this.center.lng):null,n=!this.query&&this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null,t,r;if(this.center&&this.center.lat==0&&this.center.lng==0&&(i=null),i){u.setCenter(i);u.setZoom(n?n:1);return}if(o.length==0){u.setCenter(new google.maps.LatLng(0,0));u.setZoom(n?n:1);return}if(o.length==1){o[0].center(n);return}for(bounds=new google.maps.LatLngBounds,t=0;t<o.length;t++)r=o[t].getBounds(),bounds=r?bounds.union(r):bounds.extend(o[t].getPosition());u.fitBounds(bounds,0)};this.toJSON=function(){var n;for(this.pois=[],n=0;n<o.length;n++)this.pois.push(o[n].toJSON());return{center:this.center,height:this.height,mapid:this.mapid,mapTypeId:u.getMapTypeId(),metaKey:this.metaKey,pois:this.pois,title:this.title,width:this.width,zoom:this.zoom}};this.ajaxSave=function(n){var t=JSON.stringify(this),i=!this.mapid||!this.postid?mappl10n.options.postid:this.postid;mapp.lib.ajax({type:"POST",data:{action:"mapp_save",map:t,postid:i},callback:function(t){t.status=="OK"&&(f.mapid=t.data.mapid,n(t.data),google.maps.event.trigger(f,"save"))}})}};mapp.Map.ajaxCreate=function(n,t){mapp.lib.ajax({type:"GET",data:{action:"mapp_create"},callback:function(i){if(i.status=="OK"){var r=new mapp.Map(i.data.map,n);t(r)}}})};mapp.Map.ajaxGet=function(n,t,i){mapp.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:n},callback:function(n){if(n.status=="OK"){var r=new mapp.Map(n.data.map,t);i(r)}}})};mapp.Map.ajaxDelete=function(n,t){mapp.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:n},callback:function(n){n.status=="OK"&&t&&t()}})}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Directions=function(t,i){this.sel=n(t);this.map=i;this.directionsRenderer=null;this.directionsService=null;this.placesService=null;var r=this;this.sel.on("keydown",function(n){n.which==13?(r.getDirections(),n.preventDefault()):n.which==27&&r.close()});this.sel.on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action"),u=n(".mapp-dir-daddr",r.sel).val(),f=n(".mapp-dir-saddr",r.sel).val();t.preventDefault();switch(i){case"dir-cancel":r.close();break;case"dir-get":r.getDirections();break;case"dir-myloc":r.map.places.geolocate(function(t){t&&(n(".mapp-dir-saddr",r.sel).val(t.name),r.getDirections())});break;case"dir-swap":n(".mapp-dir-saddr",r.sel).val(u);n(".mapp-dir-daddr",r.sel).val(f);r.getDirections()}});this.open=function(t,i){if(mappl10n.options.directions=="google"){this.openGoogle(t,i);return}this.map.toggleView("directions",!0);n(".mapp-dir-addr",this.sel).removeClass("mapp-error");n(".mapp-dir-saddr",this.sel).val(t);n(".mapp-dir-daddr",this.sel).val(i);n(".mapp-dir-get",this.sel).focus();n(".mapp-dir-saddr",this.sel).focus()};this.close=function(){this.map.toggleView("directions",!1);this.directionsRenderer&&(this.directionsRenderer.setPanel(null),this.directionsRenderer.getMap()&&(this.directionsRenderer.setMap(null),this.map.togglePois(!0)))};this.getDirections=function(){var t;this.map.closeInfoWindow();n(".mapp-spinner",this.sel).css("visibility","visible");this.directionsService=this.directionsService?this.directionsService:new google.maps.DirectionsService;this.directionsRenderer=this.directionsRenderer?this.directionsRenderer:new google.maps.DirectionsRenderer({hideRouteList:!1,draggable:!0});this.placesService=this.placesService?this.placesService:new google.maps.places.PlacesService(this.map.getMap());n(".mapp-dir-renderer",this.sel).empty();t={travelMode:google.maps.DirectionsTravelMode.DRIVING,provideRouteAlternatives:!0,origin:n(".mapp-dir-saddr",this.sel).val(),destination:n(".mapp-dir-daddr",this.sel).val()};this.directionsService.route(t,function(t,i){(n(".mapp-spinner",r.sel).css("visibility","hidden"),n(".mapp-dir-addr",r.sel).removeClass("mapp-error"),n.each(t.geocoded_waypoints,function(t,i){n(".mapp-dir-addr",r.sel).eq(t).toggleClass("mapp-error",i.geocoder_status!="OK");i.place_id&&r.placesService.getDetails({placeId:i.place_id},function(i,u){if(u=="OK"){var f=i.formatted_address.replace(", USA","");f.indexOf(i.name)===-1&&(f=i.name+", "+f);n(".mapp-dir-addr",r.sel).eq(t).val(f)}})}),n(".mapp-dir-addr.mapp-error").length)||(i==google.maps.DirectionsStatus.OK?(r.map.togglePois(!1),r.directionsRenderer.setOptions({directions:t,map:r.map.getMap(),panel:n(".mapp-dir-renderer",r.sel).get(0)})):alert(mappl10n.dir_error+i))})};this.openGoogle=function(n,t){var i=mappl10n.options.directionsServer;i.toLowerCase().indexOf("http")==-1&&(i="https://"+i);i+="?saddr="+encodeURIComponent(n);i+="&daddr="+encodeURIComponent(t);window.open(i)}}}(jQuery);mapp=window.mapp||{};mapp.Geocoder=function(n){function r(n,t){jQuery(n).removeClass("mapp-error");jQuery(t).hide()}function u(n,t,i){jQuery(n).addClass("mapp-error");jQuery(t).html(i);jQuery(t).show()}var t,f,i=this;f=n;this.geocode=function(i,r){typeof i=="string"&&i.substring(0,1)=="("&&(split=i.replace(/\(|\)/g,"").split(","),i=new google.maps.LatLng(split[0],split[1]));var u=i instanceof google.maps.LatLng?{location:i}:{address:i,region:mappl10n.options.country,bounds:n.getBounds()};t||(t=new google.maps.Geocoder);t.geocode(u,function(n,t){if(n){for(var i=0;i<n.length;i++)n[i].formatted_address==""&&n.splice(i,1);r(n[0],t)}else r(null,t)})};this.geolocate=function(n){if(!navigator||!navigator.geolocation)return null;navigator.geolocation.getCurrentPosition(function(t){n(t)},function(){n(null)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})};this.stringToLatLng=function(n){var t=n.split(",",2),i=Number(t[0]),r=Number(t[1]);return isNaN(i)||isNaN(r)?!1:new google.maps.LatLng(i,r)};this.geocodeField=function(n,t,i){r(n,t);checkAddress(n,t,jQuery(n).val(),function(r){if(!r){u(n,t,mappl10n.no_address);i(null);return}if(r&&r.formatted_address){jQuery(n).val(r.formatted_address);i(r.formatted_address);return}i(r);return})};this.autocompleteField=function(n,t,f,e,o){jQuery(n).keypress(function(i){i.which==13&&(checkAddress(n,t,jQuery(n).val(),o),i.preventDefault())});jQuery(f).click(function(){return checkAddress(n,t,jQuery(n).val(),o),!1});jQuery(e).click(function(){return r(n,t),i.geolocate(function(i){if(i){var r="("+i.coords.latitude+", "+i.coords.longitude+")";jQuery(n).val("");checkAddress(n,t,r,o)}else u(n,t,mappl10n.no_geolocate);return}),!1})};checkAddress=function(n,t,f,e){if(r(n,t),f=jQuery.trim(f),f==""){e(null);return}var o=i.stringToLatLng(f);if(o){e(o);return}if(f.substring(0,4)=="http"){e(f);return}i.geocode(f,function(i,r){if(!i||r!=google.maps.GeocoderStatus.OK){u(n,t,mappl10n.no_address);e(null);return}e(i);return})}};mapp.Geocoder.parseAddress=function(n){return!n||n==""?{firstLine:"",secondLine:""}:(n.lastIndexOf(", USA")>0||n.lastIndexOf(", United States")>0)&&(n.lastIndexOf(", USA")>0&&(n=n.slice(0,n.lastIndexOf(", USA"))),n.lastIndexOf(", United States")>0&&(n=n.slice(0,n.lastIndexOf(", United States"))),n.indexOf(",")==n.lastIndexOf(","))?{firstLine:n,secondLine:""}:n.indexOf(",")==-1?{firstLine:n,secondLine:""}:{firstLine:n.slice(0,n.indexOf(",")),secondLine:n.slice(n.indexOf(", ")+2)}};mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};+function(n){mapp.InfoBox=function(t,i){var f=n.extend({border:20,disableAutoPan:!1},i),u=null,r=null,e=null,o=this;r=n('<div class="mapp-ib" tabindex="0">').appendTo(t.getMap().getDiv());e=n('<div class="mapp-ib-tip">').appendTo(t.getMap().getDiv());jQuery(window).resize(function(){o.close()});r.on("keydown",function(n){n.which==27&&o.close()});r.on("click",".mapp-close",function(){o.close()});this.getContent=function(){return r};this.setContent=function(n){r.empty().append(n)};this.open=function(n,t){u=t;this.setMap(n)};this.onAdd=function(){r.show();e.show();var t=n(":input",r);t.length?t.first().focus():r.focus();google.maps.event.trigger(o,"domready")};this.draw=function(){var l=this.getMap(),c=this.getProjection().fromLatLngToContainerPixel(u.position),t={width:n(l.getDiv()).width(),height:n(l.getDiv()).height()},v=n(".mapp-ib-body",r);if(!f.disableAutoPan){r.css({"max-height":"9999px",left:0,bottom:0,top:"auto",right:"auto"});var s=r.outerWidth(!0),h=r.outerHeight(!0),a=e.outerHeight(!0),i=c.x,o=c.y;i+s/2>t.width&&(i=t.width-s/2);i-s/2<0&&(i=s/2);o-h+u.anchorPoint.y-a<f.border&&(o=h-u.anchorPoint.y+f.border+a);o>t.height&&(o=t.height);l.panBy(c.x-i,c.y-o);h>t.height+u.anchorPoint.y-2*f.border&&(h=t.height+u.anchorPoint.y-2*f.border,r.css({"max-height":h+2}));r.css({left:i-s/2,bottom:t.height-o-u.anchorPoint.y+a});e.css({left:i,bottom:t.height-o-u.anchorPoint.y})}};this.close=function(){r.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))};this.onRemove=function(){r.empty();r.hide();e.hide()}};mapp.InfoBox.prototype=new google.maps.OverlayView}(jQuery);mapp=window.mapp||{};+function(n){if(mapp.lib={ajax:function(t){var r=this,u,i;if(n.extend({type:"GET",cache:!1,data:null,spinner:null,callback:n.noop},t),t.cache)for(typeof mapp.lib.ajax.cache=="undefined"&&(mapp.lib.ajax.cache=[]),u=JSON.stringify(t.data),i=0;i<mapp.lib.ajax.cache.length;i++)if(mapp.lib.ajax.cache[i].hash==u){t.callback(mapp.lib.ajax.cache[i].response);return}return t.spinner&&t.spinner.show(),n.ajax({type:t.type,cache:!1,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,i,u){if(t.spinner&&t.spinner.hide(),n.output){r.alert("AJAX Error\r\n"+n.output);return}if(n.status=="OK"){t.cache&&mapp.lib.ajax.cache.push({hash:JSON.stringify(t.data),response:n});t.callback&&t.callback(n,u);return}var f=typeof n=="object"?n.status:n;r.alert("AJAX ERROR\r\nResponse="+f+" TextStatus="+i+"\r\nResponseText="+u.responseText)},error:function(n,i,u){(t.spinner&&t.spinner.hide(),i!="cancel")&&typeof u!="undefined"&&u!=""&&r.alert("AJAX ERROR\r\nTextStatus="+i+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},alert:function(n){mappl10n.options.admin||mappl10n.options.debug?alert(n):window.console&&console.error(n)},fullscreen:function(n){var u=document.documentElement,i={requestFullscreen:"onfullscreenchange",webkitRequestFullscreen:"onwebkitfullscreenchange",mozRequestFullScreen:"onmozfullscreenchange",msRequestFullscreen:"onmsfullscreenchange"},t,r;for(t in i)u[t]&&(r=i[t],document[r]=n)},jqVersionCheck:function(t){if(typeof n=="undefined"||typeof t=="undefined")return!1;for(t=t.split("."),v=n.fn.jquery.split("."),i=0;i<t.length;i++){var r=parseInt(t[i]),u=typeof v[i]!="undefined"?parseInt(v[i]):0;if(u!=r)return u>r}return!0},log:function(n){window.console&&console.error(n)},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var i=n.scrollTop(),u=n.height(),r=i+t.position().top,f=r+t.outerHeight(!0);r<i?n.scrollTop(r):f>i+u&&n.scrollTop(f-u)}},template:function(t,i){if(mapp.lib.templates=mapp.lib.templates?mapp.lib.templates:{},!mapp.lib.templates[t]){var r=mappl10n.options.templates?mappl10n.options.template[t]:n("#mapp-tmpl-"+t).html();if(r)mapp.lib.templates[t]=_.template(r.replace(/[\n\r\t]/g,""),null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});else return""}return mapp.lib.templates[t](i)}},typeof google=="undefined")return mapp.lib.alert("ERROR: Google Maps API not loaded");if(!mappl10n.options.apiKey)return mapp.lib.alert("ERROR: Google Maps API Key missing, please check MapPress settings and FAQ");n(document).ready(function(){n('script[src*="https://maps.googleapis.com/maps/api/js?v=3"]').length>1&&mapp.lib.alert("ERROR: Google Maps API key loaded multiple times, please see MapPress FAQ.")});mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("jQuery version is too old: "+n.fn.jquery);n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-layout",r).each(function(){var i=n(this).attr("id"),t=window[i];t.resize();t.initCenter()})})}(jQuery);mapp=window.mapp||{};+function(n){mapp.Places=function(t,i){var r=this,u;if(this.sel=n(t),this.opts=n.extend({map:null,types:[]},i),u=n('<div style="display:none">').appendTo("body"),this.placesService=new google.maps.places.PlacesService(u.get(0)),this.autocompleteService=new google.maps.places.AutocompleteService,this.sel.length){this.autocomplete=new google.maps.places.Autocomplete(this.sel.get(0),{types:this.opts.types});this.autocomplete.bindTo("bounds",this.opts.map.getMap());this.sel.on("keydown",function(n){n.which==13&&n.preventDefault()});google.maps.event.addListener(this.autocomplete,"place_changed",function(){r.parse(this.getPlace(),function(n){n&&google.maps.event.trigger(r,"search",n)})})}};mapp.Places.prototype={parse:function(t,i){var u,e=this,r,o,f;if(this.error(!1),r=t&&t.name?n.trim(t.name):n.trim(t),!r){this.error(!0);i(null);return}if(r=="user"){this.geolocate(function(n){i(n)});return}if(r.substring(0,4)=="http"){i(r);return}if(t&&t.geometry){t.formatted_address&&this.set(t.formatted_address);i(t);return}if(o=this.parseLatLng(t),o){i(o);return}f=this.opts.map.getMap().getBounds();f=f?f:new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180));this.autocompleteService.getPlacePredictions({input:r,types:this.opts.types,bounds:f},function(n,t){if(t!="OK"||n==null||n.length==0){e.error(!0);i(null);return}u=typeof n[0].description!="undefined"?n[0].description:null;e.placesService.getDetails({placeId:n[0].place_id},function(n,t){if(t=="OK"&&n&&n.geometry){u=u?u:n.formatted_address;e.set(u);i(n);return}e.error(!0);i(null);return})})},parseLatLng:function(t){var i,u,r;return t instanceof google.maps.LatLng?i=t:t&&t.lat&&t.lng?i=new google.maps.LatLng(t.lat,t.lng):(u=t&&t.name?n.trim(t.name):n.trim(t),r=u.split(","),r.length!=2||isNaN(r[0])||isNaN(r[1])||(i=new google.maps.LatLng(r[0],r[1]))),i?{name:i.toUrlValue(),geometry:{location:i}}:null},geolocate:function(n){var t=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);n(null);return}navigator.geolocation.getCurrentPosition(function(i){t.set("");var r=new google.maps.LatLng(i.coords.latitude,i.coords.longitude);n({name:r.toUrlValue(),geometry:{location:r}})},function(t){var i=t&&t.message?" : "+t.message:"";alert(mappl10n.no_geolocate+i);n(null)},{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4})},set:function(n){n=n.replace(", United States of America","").replace(", USA","").replace(", United States","");this.sel.val(n);this.error(!1)},get:function(){return n.trim(this.sel.val())},focus:function(){this.sel.focus()},error:function(n){this.sel.toggleClass("mapp-error",!!n)},destroy:function(){this.autocomplete.unbindAll();google.maps.event.clearInstanceListeners(this.sel.get(0))}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Poi=function(t){var f,e,r,s,i,u,h,o;if(this.defaults={address:null,body:null,html:null,iconid:null,kml:null,map:null,overlay:null,postid:null,title:"",url:null,type:null,viewport:null},n.extend(this,this.defaults,t),t&&t.correctedAddress&&(this.address=t.correctedAddress),t.viewport&&t.viewport.sw&&t.viewport.ne&&(f=new google.maps.LatLng(t.viewport.sw.lat,t.viewport.sw.lng),e=new google.maps.LatLng(t.viewport.ne.lat,t.viewport.ne.lng),this.viewport=f.lat()==0&&f.lng()==0&&e.lat()==0&&e.lng()==0?null:new google.maps.LatLngBounds(f,e)),r=[],s=[],!t.overlay)switch(this.type){case"polygon":if(t.poly&&t.poly.paths)for(i=0;i<t.poly.paths.length;i++){for(r=[],u=0;u<t.poly.paths[i].length;u++)r.push(new google.maps.LatLng(t.poly.paths[i][u].lat,t.poly.paths[i][u].lng));s.push(new google.maps.MVCArray(r))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(s)});this.setColors(t.poly);break;case"polyline":if(t.poly&&t.poly.path)for(i=0;i<t.poly.path.length;i++)r.push(new google.maps.LatLng(t.poly.path[i].lat,t.poly.path[i].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(r)});this.setColors(t.poly);break;case"circle":o=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Circle({center:o,radius:parseFloat(t.poly.radius)});this.setColors(t.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(t.poly);break;case"kml":h=t.kml&&t.kml.url?t.kml.url:"";this.overlay=new google.maps.KmlLayer(h,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:o=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Marker({position:o})}};mapp.Poi.prototype={toJSON:function(){var n={address:this.address,body:this.body,correctedAddress:this.address,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},r=this.getPosition(),t,i;if(n.point={lat:r.lat(),lng:r.lng()},t=this.viewport?this.viewport:this.getBounds(),t&&(n.viewport={sw:{lat:t.getSouthWest().lat(),lng:t.getSouthWest().lng()},ne:{lat:t.getNorthEast().lat(),lng:t.getNorthEast().lng()}}),this.type=="kml"&&(n.kml={url:this.overlay.getUrl()}),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push({lat:t.lat(),lng:t.lng()})});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push({lat:n.lat(),lng:n.lng()})});n.poly.paths.push(i)});break;case"rectangle":i=this.overlay.getBounds();n.viewport={sw:{lat:i.getSouthWest().lat(),lng:i.getSouthWest().lng()},ne:{lat:i.getNorthEast().lat(),lng:i.getNorthEast().lng()}}}}return n},setMap:function(t){var i=this;if(google.maps.event.clearInstanceListeners(this.overlay),t==null){this.overlay.setMap(null);return}this.type=="kml"&&(google.maps.event.addListener(this.overlay,"defaultviewport_changed",function(){i.viewport=i.overlay.getDefaultViewport()}),google.maps.event.addListener(this.overlay,"status_changed",function(){var n=i.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)}));this.map=t;this.overlay.setMap(t.getMap());this.setEditable(this.map.editable);this.setIcon(this.iconid);this.type||this.overlay.setTitle(n("<div>").html(this.title).text());google.maps.event.addListener(this.overlay,"click",function(n){i.open(n)})},setEditable:function(n){var t=this;this.type!="kml"&&(this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),google.maps.event.clearListeners(this.overlay,"rightclick"),google.maps.event.clearListeners(this.overlay,"dragstart"),n&&(google.maps.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.closeInfoWindow()}),(this.type=="polygon"||this.type=="polyline")&&google.maps.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},setZIndex:function(n){this.overlay.set("zIndex",n)},select:function(){},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n)),this.iconid=n)},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},center:function(t){var i=this.map.getMap(),u=this.getBounds(),r,t;if(typeof t=="number"){i.setCenter(this.getPosition());i.setZoom(t);return}if(!u){i.setCenter(this.getPosition());i.setZoom(parseInt(mappl10n.options.poiZoom));return}r=u.getNorthEast().lng()-u.getSouthWest().lng();r<0&&(r+=360);t=Math.round(Math.log(n(i.getDiv()).width()*360/r/256)/Math.LN2);i.setCenter(this.getPosition());i.setZoom(t)},open:function(n){this.map.openInfoWindow(this,n)},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=this.overlay.getDefaultViewport();n=n?n:this.viewport;break;default:return this.viewport}return n},getPosition:function(n){if(!this.type)return this.overlay.getPosition();if(this.type=="kml"&&n&&n.latLng)return n.latLng;var t=this.getBounds();return t?t.getCenter():new google.maps.LatLng(0,0)},click:function(){google.maps.event.trigger(this.overlay,"click")},getAddress:function(){return this.address?this.address:this.type=="kml"?this.kml.url:this.getPosition().toUrlValue()},getAnchorPoint:function(n){return this.type=="kml"?n&&n.pixelOffset?new google.maps.Point(n.pixelOffset.width,n.pixelOffset.height):new google.maps.Point(0,0):this.type?new google.maps.Point(0,0):typeof this.overlay.anchorPoint!="undefined"?this.overlay.anchorPoint:new google.maps.Point(0,-32)}}}(jQuery);mapp=window.mapp||{};mapp.widgets={};+function(n){mapp.widgets.Grid=function(t,i){this.el=n(t);this.options=jQuery.extend({action:null,sortable:!1},i);var r=this;this.table=n("table",this.el);this.template=n("script",this.el).html().replace(new RegExp("'","g"),'"');this.el.on("click",function(t){var u=n(t.target),i=u.attr("data-mapp-action");i&&(r[i](t),t.preventDefault())})};mapp.widgets.Grid.prototype={add:function(){this.table.show();var t=n(this.template).appendTo(this.table);n(":input:eq(0)",t).focus()},remove:function(t){var i=n(t.target).closest("tr").remove();n("tbody > tr",this.table).length||this.table.hide()}}}(jQuery);+function(n){mapp.widgets.Popup=function(t,i){this.options=n.extend({destroy:!1,fullscreen:!1,modal:!1,position:null,toggle:null},i);this.activeToggle=null;var r=this;this.el=n('<div class="mapp-popup" tabindex="-1">').appendTo("body").hide();this.setContent(t);this.el.on("focusout",function(t){n.contains(r.el.get(0),t.relatedTarget)||r.el.get(0)==t.relatedTarget||r.close()});if(this.options.toggle)n(document).on("click",this.options.toggle,function(t){r.activeToggle=n(this);r.open();t.stopPropagation()});this.el.on("click",".mapp-close",function(){r.close()});this.el.on("keydown",function(n){n.which==27&&r.close()});return this};mapp.widgets.Popup.prototype={close:function(){this.el.is(":visible")&&(this.backdrop&&this.backdrop.remove(),n("body").removeClass("mapp-popup-open"),this.el.hide(),this.activeToggle.focus(),this.el.trigger("closed.mapp.popup"))},destroy:function(){this.el.remove();n(document).off("click.mapp.popup",function(){me.close()})},open:function(){var i=this,t;n(document).trigger("click.mapp.popup");this.el.trigger("open.mapp.popup");this.el.show();this.options.modal||this.el.position(n.extend({my:"center bottom",at:"center top-5",of:this.activeToggle,collision:"flipfit"},this.options.position));t=n(":input",this.el);t.length?t.first().focus():this.el.focus();this.options.modal&&(this.backdrop=n('<div class="mapp-backdrop"><\/div>'),this.el.after(this.backdrop),n("body").addClass("mapp-popup-open"))},setContent:function(n){this.el.empty();this.el.append('<span class="mapp-close">');this.el.append(n)},toggle:function(){this.el.is(":visible")?this.close():this.open()}}}(jQuery);+function(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop();window[n.name]=new mapp.Map(n);window[n.name].display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappEditor=new mapp.Media:mapp.load()
1
+ var mapp=window.mapp||{};+function(n){mapp.Map=function(n,t){this.defaults={center:null,editable:null,height:null,initialOpenDirections:null,initialOpenInfo:null,layers:null,mapid:null,mapTypeId:null,metaKey:null,mapOpts:null,name:null,pois:null,postid:null,query:null,title:null,width:null,zoom:null};this.highlight=null;this.iw=null;this.places=null;this.poi=null;this.settings=t?t:{};this.templates=null;this.dir_=null;this.div={};this.layers_={};this.map_=null;this.pois_=[];this.xhr_;this.zindex_=0;_.extend(this,this.defaults,_.pick(n,_.keys(this.defaults)),_.pick(this.settings,_.keys(this.defaults)))};mapp.Map.prototype={display:function(){var t=this,i;if(this.div.layout=n("#"+this.name+"-layout"),n.each(["canvas","controls","directions","filters","iw","list","menu","search"],function(i,r){t.div[r]=n(".mapp-"+r,t.div.layout)}),!this.div.canvas.length)return mapp.lib.log("MapPress: Missing map name or container for map: "+this.name);if(mappl10n.options.autoupdate==="tc")return mapp.lib.log("Maps API missing (800001)");if(this.templates=this.editable?{loop:"edit-loop",item:"edit-item",popup:"edit-popup"}:{loop:"map-loop",item:"map-item",popup:"map-popup"},mappl10n.options.engine=="leaflet"){if(typeof L=="undefined")return mapp.lib.alert("ERROR: Unable to load Leaflet");i=_.extend({attribution:'Map data © <a href="https://openstreetmap.org">OpenStreetMap<\/a>',minZoom:0,worldCopyJump:!0,zoomControl:null},this.mapOpts);i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom);this.map_=new L.Map(this.name,i);L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(this.map_);this.iw=L.popup();this.iw.setContent(this.div.iw.get(0))}else{if(typeof google=="undefined")return mapp.lib.alert("ERROR: Google Maps API not loaded");if(!mappl10n.options.apiKey)return mapp.lib.alert("ERROR: Google Maps API Key missing, please check MapPress settings and FAQ");n(document).ready(function(){n('script[src*="https://maps.googleapis.com/maps/api/js?v=3"]').length>1&&mapp.lib.alert("ERROR: Google Maps API key loaded multiple times, please see MapPress FAQ.")});this.map_=new google.maps.Map(this.div.canvas.get(0),{mapTypeId:"roadmap",zoom:1});i=_.extend({backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},minZoom:0,scaleControl:!0,scrollwheel:!1,streetViewControl:!this.editable&&!this.query},this.mapOpts);i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom);this.map_.setOptions(i);this.toggleMapTypeId(this.mapTypeId,!0);this.iw=mappl10n.options.iwType=="ib"||this.editable?new mapp.InfoBox(this):new google.maps.InfoWindow;this.iw.setContent(this.div.iw.get(0));mapp.event.addListenerOnce(this.map_,"idle",function(){var n=t.pois_.length?t.pois_[0]:null;t.initialOpenDirections?t.openDirections(null,n):n&&t.initialOpenInfo&&n.open()});this.addLayers()}this.addStyles();this.addControls();this.places=new mapp.Places(n(".mapp-places",this.div.search),{map:t});n(this.places).on("search.mapp",function(n,i){t.search(i)});this.addEvents("click drag",function(){t.close()});this.query&&mappl10n.options.search&&!this.editable&&this.addSearchMove();this.toggleView("mini",this.div.layout.width()<mappl10n.options.mini);this.div.layout.on("click","[data-mapp-action]",function(i){var r=n(this).attr("data-mapp-action");i.preventDefault();t.action(r,n(this).attr("data-mapp-"+r),n(this))});this.div.filters.on("change",function(){t.ajaxQuery(t.getBounds())});n("body").on("click",function(i){var r=n(i.target),u=r.attr("data-mapp-action");r==t.div.filters||u=="filters-toggle"||r.closest(t.div.filters).length||t.toggleView("filters",!1);r==t.div.menu||u=="menu-toggle"||r.closest(t.div.menu).length||t.toggleView("menu",!1)});n(window).resize(function(){t.resize()});this.query||this.setPois(this.pois);this.places.parse(this.center,function(n){t.query?n?t.search(n):t.ajaxQuery():(n&&n.geometry&&n.geometry.location&&(t.center=n.geometry.location),t.recenter())})},search:function(n){var t=n.geometry.location?n.geometry.location:null,u=n.geometry.viewport?n.geometry.viewport:null,f,r,i;mappl10n.options.engine=="leaflet"?(f=new L.LatLng(t.lat,t.lng),i=f.toBounds(mappl10n.options.radius*1e3)):(r=new google.maps.Circle({center:t,radius:mappl10n.options.radius*1e3}),i=u?u.union(r.getBounds()):r.getBounds());this.fitBounds(i,0);this.setView(t);this.ajaxQuery(i)},load:function(n){_.extend(this,this.defaults,n,this.settings);this.toggleMapTypeId(this.mapTypeId,!0);this.toggleView("menu",!1);this.toggleLayer();this.close();this.setPois(this.pois_);this.places.set("")},action:function(t,i,r){var f=this,u;switch(t){case"center":this.toggleView("menu",!1);this.close();this.recenter();break;case"dir":this.openDirections(null,this.poi);break;case"dir-from":this.openDirections(this.poi,null);break;case"filters-reset":this.div.filters.find(":input").each(function(){this.type=="checkbox"||this.type=="radio"?n(this).prop("checked",!1):n(this).val("")});this.ajaxQuery(this.getBounds());break;case"filters-toggle":this.toggleView("filters");break;case"geolocate":this.places.geolocate(function(n){f.search(n)});break;case"layer":this.toggleLayer(i);this.toggleView("menu",!1);break;case"menu-toggle":this.toggleView("menu");break;case"open":u=r.attr("data-mapp-poi");this.open(this.pois_[u]);break;case"show":this.div.layout.show();this.resize();this.initCenter();break;case"view-map":this.toggleView("list",!1);break;case"view-list":this.toggleView("list",!0);break;default:return!0}},dialog:function(t,i){var r=this;t?(this.div.canvas.append("<div class='mapp-dialog'>"+t+"<\/div>"),i&&(clearTimeout(this.dialog.fade),this.dialog.fade=setTimeout(function(){r.dialog(null)},4e3))):n(".mapp-dialog",this.div.canvas).remove()},addEvents:function(n,t){n=n.split(" ");for(var i=0;i<n.length;i++)mapp.event.addListener(this.map_,n[i],t)},close:function(){mappl10n.options.engine=="leaflet"?this.map_.closePopup():this.iw.close();this.select(null);n(this).triggerHandler("mapp.close")},openDirections:function(n,t){var i=n?n.getAddress():"",r=t?t.getAddress():"";this.dir_||(this.dir_=new mapp.Directions(this.div.directions,this));this.dir_.open(i,r)},select:function(t){if(n("[data-mapp-poi]",this.div.list).removeClass("mapp-selected"),t){var r=n.inArray(t,this.pois_),i=n('[data-mapp-poi="'+r+'"]',this.div.list);i.addClass("mapp-selected");mapp.lib.scrollTo(this.div.list,i);t.setZIndex(++this.zindex_)}this.poi=t},setHighlight:function(n){this.highlight&&(mappl10n.options.engine=="leaflet"?this.highlight.remove():this.highlight.setMap(null));n&&(mappl10n.options.engine=="leaflet"?this.highlight=new L.Marker(n.getPosition()).addTo(this.map_):(this.highlight=new google.maps.Marker({position:n.getPosition()}),this.highlight.setMap(this.map_)))},getMap:function(){return this.map_},renderList:function(){var i=this.getBounds(),r=0,u=this,t;if(!this.editable)for(t=0;t<this.pois_.length;t++)this.pois_[t].visible=this.pois_[t].type!="kml",this.query&&i&&!i.contains(this.pois_[t].point)&&(this.pois_[t].visible=!1),r+=this.pois_[t].visible;this.div.list.html(mapp.lib.template(this.templates.loop,{map:this,pois:this.pois_,count:r}));this.editable&&n(".mapp-items",u.sel).sortable({axis:"y",cursor:"move",delay:200,update:function(){u.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-poi"}))}})},getPois:function(){return this.pois_},insertPoi:function(n){var t=this;this.pois_.unshift(n);n.setMap(this);t.renderList();this.select(n)},removePoi:function(t){var r=this,i=n.inArray(t,this.pois_);i!=-1&&(this.pois_[i].setMap(null),this.pois_.splice(i,1),r.renderList())},resetPois:function(){for(i=0;i<this.pois_.length;i++)this.pois_[i].setMap(null);this.pois_=[];this.zindex_=0},setPois:function(n){var t,i;if(this.resetPois(),n){for(t=0;t<n.length;t++)i=new mapp.Poi(n[t]),this.pois_.push(i),i.id=this.pois_.length-1,i.setMap(this),i.setZIndex(this.zindex_+n.length-1-t);this.zindex_+=n.length-1}this.renderList()},sortPois:function(n){for(var r,t=Array(),i=0;i<n.length;i++){if(r=parseInt(n[i]),isNaN(r))return!1;t.push(this.pois_[r])}if(t.length!=this.pois_.length)return!1;this.pois_=t;this.renderList()},open:function(t,i){if(this.close(),this.select(t),mappl10n.options.mashupClick!="poi"&&t.postid&&t.url){window.open(t.url);return}if(this.toggleView("list",!1),this.div.iw.html(t.render("popup")),mappl10n.options.engine=="leaflet")this.iw.setLatLng(t.getPosition()),this.iw.options.offset=t.getAnchorPoint(),this.map_.openPopup(this.iw);else{var r=new google.maps.MVCObject;r.setValues({position:t.getPosition(i),anchorPoint:t.getAnchorPoint(i)});this.iw.open(this.map_,r)}n(this).triggerHandler("mapp.open",t)},renderMenu:function(){var t=this;for(layer in this.layers_)this.layers_[layer].getMap()&&n('[data-mapp-layer="'+layer+'"]',this.div.layout).addClass("mapp-active")},addStyles:function(){var n=this,i,e,u;if(mappl10n.options.engine=="leaflet"){var t=mappl10n.options.baseLayers,s=L.control.layers(),f=_.findIndex(t,{name:n.mapTypeId});if(f=f>=0?f:0,t)for(i=0;i<t.length;i++)e=L.tileLayer(t[i].url,t[i]),s.addBaseLayer(e,t[i].label),i==f&&e.addTo(n.map_);this.editable&&t.length>1&&s.addTo(n.map_);n.map_.on("baselayerchange",function(t){n.mapTypeId=t.layer.options.name})}else{var r=mappl10n.options.styles,o=mappl10n.options.style,h=["roadmap","satellite","terrain","hybrid"];if(o&&typeof r[o]!="undefined"&&this.map_.setOptions({styles:r[o]}),n.editable){for(u in r)this.map_.mapTypes.set(u,new google.maps.StyledMapType(r[u],{name:u})),h.push(u);this.map_.setOptions({mapTypeControlOptions:{mapTypeIds:h,position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}})}else typeof r[n.mapTypeId]!="undefined"&&this.map_.setOptions({styles:r[n.mapTypeId]});mapp.event.addListener(this.map_,"maptypeid_changed",function(){n.mapTypeId=n.map_.getMapTypeId()})}},addControls:function(){var n=this;this.div.controls.html(mapp.lib.template("map-controls",{map:this}))},addLayers:function(){var u,i,t,r;for(this.layers_={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer},u=n.makeArray(this.layers),i=0;i<u.length;i++)t=n.trim(u[i]),r=t.split(".").pop(),this.layers_[t]?this.toggleLayer(t):r=="kml"||r=="kmz"?this.layers_[t]=new google.maps.KmlLayer({map:this.map_,preserveViewport:!0,url:t}):r=="json"&&(this.layers_[t]=new google.maps.Data({map:this.map_}).loadGeoJson(t))},toggleLayer:function(t,i){var r=this;i=typeof i!="undefined"?i:this.layers_[t].getMap()==null;n.each(["traffic","bicycling","transit"],function(n,t){r.layers_[t].setMap(null)});i&&this.layers_[t].setMap(this.map_)},toggleMapTypeId:function(t,i){var u=this,r=n.inArray(t,["roadmap","satellite","terrain","hybrid"])!=-1;i=typeof i!="undefined"?i:!(this.getMapTypeId()==t);t=u.editable?i&&(r||typeof mappl10n.options.styles[t]!="undefined")?t:"roadmap":r?t:"roadmap";this.map_.setMapTypeId(t)},togglePois:function(n){n=!!n;for(var t=0;t<this.pois_.length;t++)this.pois_[t].setVisible(n)},toggleView:function(n,t){t=typeof t=="undefined"?!this.div.layout.hasClass("mapp-view-"+n):t;this.div.layout.toggleClass("mapp-view-"+n,t);n=="menu"&&t&&this.renderMenu();n=="directions"&&(this.close(),this.resize())},resize:function(){var n=this.getCenter();this.toggleView("mini",this.div.layout.width()<mappl10n.options.mini);mappl10n.options.engine=="leaflet"?this.map_.invalidateSize():mapp.event.trigger(this.map_,"resize");this.setView(n)},recenter:function(){var r=this.center&&this.center.lat&&this.center.lng?this.center:null,n=!this.query&&this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null,t,i;if(r){this.setView(r,n?n:1);return}if(this.pois_.length==0){this.setView({lat:0,lng:0},n?n:1);return}if(this.pois_.length==1){this.pois_[0].center(n);return}for(bounds=mappl10n.options.engine=="leaflet"?new L.LatLngBounds:new google.maps.LatLngBounds,t=0;t<this.pois_.length;t++)i=this.pois_[t].getBounds(),bounds=i?mappl10n.options.engine=="leaflet"?bounds.extend(i):bounds.union(i):bounds.extend(this.pois_[t].getPosition());this.fitBounds(bounds,0)},toJSON:function(){var n;for(this.pois=[],n=0;n<this.pois_.length;n++)this.pois.push(this.pois_[n].toJSON());return{center:this.center,height:this.height,mapid:this.mapid,mapTypeId:this.mapTypeId,metaKey:this.metaKey,pois:this.pois,title:this.title,width:this.width,zoom:this.zoom}},ajaxSave:function(n){var t=this,i=JSON.stringify(this),r=!this.mapid||!this.postid?mappl10n.options.postid:this.postid;mapp.lib.ajax({type:"POST",data:{action:"mapp_save",map:i,postid:r},callback:function(i){i.status=="OK"&&(t.mapid=i.data.mapid,n(i.data))}})},fitBounds:function(n){return this.map_.fitBounds(n)},getBounds:function(){try{return this.map_.getBounds()}catch(n){return null}},getCenter:function(){try{return this.map_.getCenter()}catch(n){return null}},getMapTypeId:function(n){return mappl10n.options.engine=="leaflet"?"roadmap":this.map_.getMapTypeId(n)},setView:function(n,t,i){mappl10n.options.engine=="leaflet"?(t==null&&(t=this.map_.getZoom()?this.map_.getZoom():0),this.map_.setView(n,t,i)):(n&&this.map_.setCenter(n),t&&this.map_.setZoom(t))}};mapp.Map.ajaxGet=function(n,t,i){mapp.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:n},callback:function(n){if(n.status=="OK"){var r=new mapp.Map(n.data.map,t);i(r)}}})};mapp.Map.ajaxDelete=function(n,t){mapp.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:n},callback:function(n){n.status=="OK"&&t&&t()}})}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Directions=function(t,i){this.sel=n(t);this.map=i;this.directionsRenderer=null;this.directionsService=null;this.placesService=null;var r=this;this.sel.on("keydown",function(n){n.which==13?(r.getDirections(),n.preventDefault()):n.which==27&&r.close()});this.sel.on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action"),u=n(".mapp-dir-daddr",r.sel).val(),f=n(".mapp-dir-saddr",r.sel).val();t.preventDefault();switch(i){case"dir-cancel":r.close();break;case"dir-get":r.getDirections();break;case"dir-myloc":r.map.places.geolocate(function(t){n(".mapp-dir-saddr",r.sel).val(t.name);r.getDirections()});break;case"dir-swap":n(".mapp-dir-saddr",r.sel).val(u);n(".mapp-dir-daddr",r.sel).val(f);r.getDirections()}});this.open=function(t,i){if(mappl10n.options.directions=="google"){this.openGoogle(t,i);return}this.map.toggleView("directions",!0);n(".mapp-dir-addr",this.sel).removeClass("mapp-error");n(".mapp-dir-saddr",this.sel).val(t);n(".mapp-dir-daddr",this.sel).val(i);n(".mapp-dir-get",this.sel).focus();n(".mapp-dir-saddr",this.sel).focus()};this.close=function(){this.map.toggleView("directions",!1);this.directionsRenderer&&(this.directionsRenderer.setPanel(null),this.directionsRenderer.getMap()&&(this.directionsRenderer.setMap(null),this.map.togglePois(!0)))};this.getDirections=function(){this.map.close();this.openGoogle(n(".mapp-dir-saddr",this.sel).val(),n(".mapp-dir-daddr",this.sel).val());return};this.openGoogle=function(n,t){var i=mappl10n.options.directionsServer;i.toLowerCase().indexOf("http")==-1&&(i="https://"+i);i+="?saddr="+encodeURIComponent(n);i+="&daddr="+encodeURIComponent(t);window.open(i)}}}(jQuery);mapp=window.mapp||{};mapp.geocoders={};+function(n){mapp.geocoders.Algolia=function(n){this.map=n;this.places=algoliasearch.initPlaces()};mapp.geocoders.Algolia.prototype={geocode:function(t,i){var r=this;this.getPredictions(t,function(r){r&&n.isArray(r.hits)?i({formatted_address:r.hits[0].locale_names[0],name:t,geometry:{location:{lat:r.hits[0]._geoloc.lat,lng:r.hits[0]._geoloc.lng}}}):i(null)})},getDetails:function(n,t){t({formatted_address:n.value,name:n.name,geometry:{location:n.latlng}})},getPredictions:function(n,t){this.places.search({query:n,language:mappl10n.options.language},function(n,i){n||!i?t(null):t(i)})}}}(jQuery);+function(n){mapp.geocoders.Google=function(t){this.map=t;this.token=null;this.types=this.map.editable?null:["geocode"];var i=n('<div style="display:none">').appendTo("body");this.placesService=new google.maps.places.PlacesService(i.get(0));this.autocompleteService=new google.maps.places.AutocompleteService;i.remove()};mapp.geocoders.Google.prototype={geocode:function(t,i){var r=this;this.getPredictions(t,function(t){t&&n.isArray(t)?r.getDetails(t[0],function(n){i(n)}):i(null)})},getDetails:function(n,t){this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;this.token=null;var i={placeId:n.place_id,sessionToken:this.token};this.placesService.getDetails(i,function(n,i){i=="OK"&&n&&n.geometry?t(n):t(null)})},getPredictions:function(n,t){var i,r;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;i=this.map.getMap().getBounds();i=i?i:new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180));r={input:n,bounds:i,sessionToken:this.token,types:this.types};this.autocompleteService.getPlacePredictions(r,function(n,i){i=="OK"&&n&&n.length?t(n):t(null)})}}}(jQuery);mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){var n="https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png";return mappl10n.options.engine=="leaflet"?L.icon({iconUrl:n,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-16]}):{url:n}};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};+function(n){mapp.InfoBox=function(t,i){var f=n.extend({border:20},i),u=null,r=null,o,e=this;r=n('<div class="mapp-ib-wrapper" tabindex="0"><div class="mapp-ib" tabindex="0"><\/div><div class="mapp-ib-tip"><\/div><\/div>').appendTo(t.getMap().getDiv());jQuery(window).resize(function(){e.close()});r.on("keydown",function(n){n.which==27&&e.close()});r.on("click",".mapp-close",function(){e.close()});this.getContent=function(){return n(".mapp-ib",r)};this.setContent=function(t){n(".mapp-ib",r).empty().append(t)};this.open=function(n,t){u=t;this.setMap(n)};this.onAdd=function(){o=!1;var t=n(":input",r);r.show();t.length?t.first().focus():r.focus();google.maps.event.trigger(e,"domready")};this.draw=function(){var l=this.getMap(),a=n(".mapp-ib-body",r),s=this.getProjection().fromLatLngToContainerPixel(u.position),t,h,c,i,e;o||(o=!0,t={width:n(":first-child",l.getDiv()).width(),height:n(":first-child",l.getDiv()).height()},r.css({"max-height":"9999px",left:0,bottom:0,top:"auto",right:"auto"}),h=r.outerWidth(!0),c=r.outerHeight(!0),c>t.height+u.anchorPoint.y-2*f.border&&(c=t.height+u.anchorPoint.y-2*f.border,r.css({"max-height":c+2})),i=s.x,e=s.y,i+h/2>t.width&&(i=t.width-h/2),i-h/2<0&&(i=h/2),e-c+u.anchorPoint.y<f.border&&(e=c-u.anchorPoint.y+f.border),e>t.height&&(e=t.height),(s.x-i||s.y-e)&&l.panBy(s.x-i,s.y-e),r.css({left:i-h/2,bottom:t.height-e-u.anchorPoint.y}))};this.close=function(){r.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))};this.onRemove=function(){r.hide()}};mappl10n.options.engine!="leaflet"&&(mapp.InfoBox.prototype=new google.maps.OverlayView)}(jQuery);mapp=window.mapp||{};+function(n){mapp.lib={ajax:function(t){var r=this,u,i;if(n.extend({type:"GET",cache:!1,data:null,spinner:null,callback:n.noop},t),t.cache)for(typeof mapp.lib.ajax.cache=="undefined"&&(mapp.lib.ajax.cache=[]),u=JSON.stringify(t.data),i=0;i<mapp.lib.ajax.cache.length;i++)if(mapp.lib.ajax.cache[i].hash==u){t.callback(mapp.lib.ajax.cache[i].response);return}return t.spinner&&t.spinner.show(),n.ajax({type:t.type,cache:!1,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,i,u){if(t.spinner&&t.spinner.hide(),n.output){r.alert("AJAX Error\r\n"+n.output);return}if(n.status=="OK"){t.cache&&mapp.lib.ajax.cache.push({hash:JSON.stringify(t.data),response:n});t.callback&&t.callback(n,u);return}var f=typeof n=="object"?n.status:n;r.alert("AJAX ERROR\r\nResponse="+f+" TextStatus="+i+"\r\nResponseText="+u.responseText)},error:function(n,i,u){(t.spinner&&t.spinner.hide(),i!="cancel")&&typeof u!="undefined"&&u!=""&&r.alert("AJAX ERROR\r\nTextStatus="+i+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},alert:function(n){mappl10n.options.admin||mappl10n.options.debug?alert(n):window.console&&console.error(n)},jqVersionCheck:function(t){if(typeof n=="undefined"||typeof t=="undefined")return!1;for(t=t.split("."),v=n.fn.jquery.split("."),i=0;i<t.length;i++){var r=parseInt(t[i]),u=typeof v[i]!="undefined"?parseInt(v[i]):0;if(u!=r)return u>r}return!0},log:function(n){window.console&&console.error(n)},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var i=n.scrollTop(),u=n.height(),r=i+t.position().top,f=r+t.outerHeight(!0);r<i?n.scrollTop(r):f>i+u&&n.scrollTop(f-u)}},template:function(t,i){if(mapp.lib.templates=mapp.lib.templates?mapp.lib.templates:{},!mapp.lib.templates[t]){var r=mappl10n.options.templates?mappl10n.options.template[t]:n("#mapp-tmpl-"+t).html();if(r)mapp.lib.templates[t]=_.template(r.replace(/[\n\r\t]/g,""),null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});else return""}return mapp.lib.templates[t](i)}};mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("jQuery version is too old: "+n.fn.jquery);n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-layout",r).each(function(){var i=n(this).attr("id"),t=window[i];t.resize();t.initCenter()})})}(jQuery);+function(){mappl10n.options.engine=="leaflet"&&(L.LatLng.prototype.toJSON=function(){return{lat:this.lat,lng:this.lng}},L.LatLngBounds.prototype.toJSON=function(){return{south:this.getSouth(),west:this.getWest(),north:this.getNorth(),east:this.getEast()}});mapp.event={addListener:function(n,t,i){if(mappl10n.options.engine=="leaflet")n.on(t,i);else google.maps.event.addListener(n,t,i)},addListenerOnce:function(n,t,i){if(mappl10n.options.engine=="leaflet")n.once(t,i);else google.maps.event.addListenerOnce(n,t,i)},clearInstanceListeners:function(n){mappl10n.options.engine=="leaflet"?n.off():google.maps.event.clearInstanceListeners(n)},clearListeners:function(n,t){mappl10n.options.engine=="leaflet"?n.off(t):google.maps.event.clearListeners(n,"rightclick")},trigger:function(n,t,i){mappl10n.options.engine=="leaflet"?n.fire(t,i):google.maps.event.trigger(n,t,i)}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Places=function(t,i){var r=this;this.sel=n(t);this.opts=n.extend({map:null},i);this.geocoder=mappl10n.options.engine=="leaflet"?new mapp.geocoders.Algolia(this.opts.map):new mapp.geocoders.Google(this.opts.map);this.autocomplete();this.sel.on("keydown",function(n){n.which==13&&n.preventDefault()});this.sel.focus()};mapp.Places.prototype={parse:function(t,i){var f=this,r=t&&t.name?n.trim(t.name):n.trim(t),u;if(!r){i(null);return}if(r=="user"){this.geolocate(function(n){i(n)});return}if(r.substring(0,4)=="http"){i(r);return}if(t&&t.geometry){i(t);return}if(u=this.parseLatLng(t),u){i(u);return}this.geocoder.geocode(t,function(n){i(n)})},parseLatLng:function(t){var i,u,r;return t.lat&&t.lng?i=t:(u=t&&t.name?n.trim(t.name):n.trim(t),r=u.split(","),r.length!=2||isNaN(r[0])||isNaN(r[1])||(i={lat:r[0],lng:r[1]})),i?{name:i.lat+", "+i.lng,geometry:{location:i}}:null},geolocate:function(n){var t=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){var i={lat:t.coords.latitude,lng:t.coords.longitude};n({name:i.lat+", "+i.lng,geometry:{location:i}})},function(t){var i=t&&t.message?" : "+t.message:"";alert(mappl10n.no_geolocate+i);n(null)},{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4})},autocomplete:function(){var t=this,r,i,u;this.sel.on("autocomplete:selected",function(i,r){t.geocoder.getDetails(r,function(i){t.parse(i,function(i){i&&n(t).triggerHandler("search.mapp",i)})})});r={empty:'<div class="list-group search-results-dropdown"><div class="list-group-item">'+mappl10n.no_results+"<\/div><\/div>",header:'<div class="list-group search-results-dropdown">',dropdownMenu:function(t){return n("<div>"+t.description+"<\/div>")}};mappl10n.options.engine=="leaflet"?(i={algoliasearch:algoliasearch,templates:r},mappl10n.options.country&&(i.countries=[mappl10n.options.country]),mappl10n.options.language&&(i.language=mappl10n.options.language),u=placesAutocompleteDataset(i)):u={display:"description",source:function(n,i){t.geocoder.getPredictions(n,function(n){matches=n;i(matches)})},templates:r};this.sel.autocomplete({autoselect:!0,cssClasses:{prefix:"mapp-aa"},debug:!1,hint:!0,highlight:!0,minLength:1},u)}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Poi=function(t){var u,f,r,o,i,e,h,s;if(this.defaults={address:null,body:null,iconid:null,kml:null,map:null,overlay:null,postid:null,title:"",url:null,type:null,viewport:null},n.extend(this,this.defaults,t),t&&t.correctedAddress&&(this.address=t.correctedAddress),mappl10n.options.engine=="leaflet"&&this.isPoly()&&(this.type=null),t.viewport&&t.viewport.sw&&t.viewport.ne&&(u=t.viewport.sw,f=t.viewport.ne,this.viewport=mappl10n.options.engine=="leaflet"?new L.LatLngBounds(L.latLng(u.lat,u.lng),L.latLng(f.lat,f.lng)):new google.maps.LatLngBounds(new google.maps.LatLng(u.lat,u.lng),new google.maps.LatLng(f.lat,f.lng))),r=[],o=[],!t.overlay)switch(this.type){case"polygon":if(t.poly&&t.poly.paths)for(i=0;i<t.poly.paths.length;i++){for(r=[],e=0;e<t.poly.paths[i].length;e++)r.push(new google.maps.LatLng(t.poly.paths[i][e].lat,t.poly.paths[i][e].lng));o.push(new google.maps.MVCArray(r))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(t.poly);break;case"polyline":if(t.poly&&t.poly.path)for(i=0;i<t.poly.path.length;i++)r.push(new google.maps.LatLng(t.poly.path[i].lat,t.poly.path[i].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(r)});this.setColors(t.poly);break;case"circle":h=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Circle({center:h,radius:parseFloat(t.poly.radius)});this.setColors(t.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(t.poly);break;case"kml":s=t.kml&&t.kml.url?t.kml.url:"";this.overlay=mappl10n.options.engine=="leaflet"?omnivore.kml(s):new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:this.overlay=mappl10n.options.engine=="leaflet"?L.marker([t.point.lat,t.point.lng]):new google.maps.Marker({position:new google.maps.LatLng(t.point.lat,t.point.lng)})}t.type||this.setIcon(t.iconid)};mapp.Poi.prototype={toJSON:function(){var n={address:this.address,body:this.body,correctedAddress:this.address,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},r=this.getPosition(),t,i;if(n.point=r.toJSON(),t=this.viewport?this.viewport:this.getBounds(),t&&(n.viewport={sw:t.getSouthWest().toJSON(),ne:t.getNorthEast().toJSON()}),this.type=="kml"&&(n.kml=this.kml),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push(t.toJSON())});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push(n.toJSON())});n.poly.paths.push(i)});break;case"rectangle":i=this.overlay.getBounds();n.viewport={sw:i.getSouthWest().toJSON(),ne:i.getNorthEast().toJSON()}}}return n},setMap:function(t){var i=this;if(this.map=t,mapp.event.clearInstanceListeners(this.overlay),t==null){mappl10n.options.engine=="leaflet"?this.overlay.remove():this.overlay.setMap(null);return}this.type=="kml"&&(mappl10n.options.engine=="leaflet"?(mapp.event.addListenerOnce(this.overlay,"ready",function(){i.viewport=i.overlay.getBounds()}),mapp.event.addListenerOnce(this.overlay,"error",function(){alert(mappl10n.kml_error)})):(mapp.event.addListener(this.overlay,"defaultviewport_changed",function(){i.viewport=i.overlay.getDefaultViewport()}),mapp.event.addListener(this.overlay,"status_changed",function(){var n=i.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)})));mappl10n.options.engine=="leaflet"?this.overlay.addTo(t.getMap()):this.overlay.setMap(t.getMap());mapp.event.addListener(this.overlay,"click",function(n){i.open(n)});this.setTitle(n("<div>").html(this.title).text());this.setEditable(this.map.editable)},setEditable:function(n){var t=this;this.type!="kml"&&(mappl10n.options.engine=="leaflet"?this.overlay.options.draggable=n:this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),mapp.event.clearListeners(this.overlay,"rightclick"),mapp.event.clearListeners(this.overlay,"dragstart"),n&&(mapp.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.closeInfoWindow()}),(this.type=="polygon"||this.type=="polyline")&&mapp.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},setTitle:function(n){this.type||(mappl10n.options.engine=="leaflet"?this.overlay.title=n:this.overlay.setTitle(n))},setZIndex:function(n){mappl10n.options.engine=="leaflet"?this.overlay.setZIndexOffset(n):this.overlay.set("zIndex",n)},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.iconid=n,mappl10n.options.engine=="leaflet"?this.overlay.setIcon(mapp.Icons.get(n)):(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n))))},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},setTemplateColors:function(n,t,i){var r=this.type=="polyline"?{strokeColor:n,strokeOpacity:t/100,strokeWeight:i}:{fillColor:n,fillOpacity:t/100,strokeColor:n,strokeWeight:i,strokeOpacity:1};this.setColors(r)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},getTemplateColors:function(){var n=this.getColors();return this.type=="polyline"?{color:n.strokeColor,opacity:n.strokeOpacity*100,weight:n.strokeWeight}:{color:n.fillColor,opacity:n.fillOpacity*100,weight:n.strokeWeight}},center:function(n){var t=this.getBounds();if(typeof n=="number"){this.map.setView(this.getPosition(),n);return}if(!t){this.map.setView(this.getPosition(),parseInt(mappl10n.options.poiZoom));return}this.map.fitBounds(t);this.map.setView(this.getPosition(),n)},open:function(n){this.map.open(this,n)},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=mappl10n.options.engine=="leaflet"?this.overlay.getBounds().isValid()?this.overlay.getBounds():null:this.overlay.getDefaultViewport();n=n?n:this.viewport;break;default:return this.viewport}return n},getPosition:function(n){if(!this.type)return mappl10n.options.engine=="leaflet"?this.overlay.getLatLng():this.overlay.getPosition();if(this.type=="kml"&&n&&n.latLng)return n.latLng;var t=this.getBounds();return t?t.getCenter():mappl10n.options.engine=="leaflet"?new L.latLng(0,0):new google.maps.LatLng(0,0)},getAddress:function(){return this.address?this.address:this.type=="kml"?this.kml.url:this.getPosition().toUrlValue()},getAnchorPoint:function(n){var t=this.isPoly()?"poly":this.type;switch(t){case"kml":return mappl10n.options.engine=="leaflet"?[0,0]:n&&n.pixelOffset?new google.maps.Point(n.pixelOffset.width,n.pixelOffset.height):new google.maps.Point(0,0);case"poly":return mappl10n.options.engine=="leaflet"?[0,0]:new google.maps.Point(0,0);default:return mappl10n.options.engine=="leaflet"?this.overlay.options.icon.options.popupAnchor?this.overlay.options.icon.options.popupAnchor:[0,-32]:typeof this.overlay.anchorPoint!="undefined"?this.overlay.anchorPoint:new google.maps.Point(0,-32)}},render:function(n){return this.icon=mapp.Icons.getUrl(this.iconid),mapp.lib.template(this.map.templates[n],{poi:this,colors:this.getTemplateColors()})}}}(jQuery);mapp=window.mapp||{};mapp.widgets={};+function(n){mapp.widgets.Grid=function(t,i){this.el=n(t);this.options=jQuery.extend({action:null,sortable:!1},i);var r=this;this.table=n("table",this.el);this.template=n("script",this.el).html().replace(new RegExp("'","g"),'"');this.el.on("click",function(t){var u=n(t.target),i=u.attr("data-mapp-action");i&&(r[i](t),t.preventDefault())})};mapp.widgets.Grid.prototype={add:function(){this.table.show();var t=n(this.template).appendTo(this.table);n(":input:eq(0)",t).focus()},remove:function(t){var i=n(t.target).closest("tr").remove();n("tbody > tr",this.table).length||this.table.hide()}}}(jQuery);+function(n){mapp.widgets.Popup=function(t,i){var r,u;if(this.activeToggle=null,this.content=t,this.el=null,r=this,this.options=n.extend({max:!1,modal:!1,position:null,toggle:null},i),this.options.modal?this.el=this.content.addClass("mapp-popup-fixed"):(this.el=n('<div class="mapp-popup">'),this.setContent(t)),this.el.attr("tabindex",0),this.options.max&&this.el.addClass("mapp-popup-max"),this.el.hide(),!this.options.modal)n(document).on("click.mapp.popup",function(t){n.contains(r.el.get(0),t.target)||r.el.get(0)==t.target||r.close()});if(this.options.toggle){u=typeof this.options.toggle=="string"?this.options.toggle:this.options.toggle.selector;n(document).on("click",u,function(t){r.activeToggle=n(this);r.open();t.stopPropagation()})}this.el.on("click",".mapp-close",function(){r.close()});this.el.on("keydown",function(n){n.which==27&&r.close()});return this};mapp.widgets.Popup.prototype={close:function(){this.el&&this.el.is(":visible")&&(this.backdrop&&(this.backdrop.remove(),n("body").removeClass("mapp-popup-modal")),this.el.hide(),this.activeToggle&&this.activeToggle.focus(),this.el.trigger("closed.mapp.popup"))},open:function(){var t=this;this.options.modal||this.el.parent().length||this.el.appendTo("body");this.el.show();this.options.modal?(this.backdrop=n('<div class="mapp-popup-backdrop"><\/div>'),this.el.after(this.backdrop),n("body").addClass("mapp-popup-modal")):this.el.position(n.extend({my:"center bottom",at:"center top-5",of:this.activeToggle,collision:"flipfit"},this.options.position));this.el.focus();this.el.trigger("open.mapp.popup")},setContent:function(n){this.el.empty();this.el.append('<span class="mapp-close">').append(n)},toggle:function(){this.el.is(":visible")?this.close():this.open()}}}(jQuery);+function(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop();window[n.name]=new mapp.Map(n);window[n.name].display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappEditor=new mapp.Media:mapp.load()
js/mappress_editor.min.js CHANGED
@@ -1 +1 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Media=function(){function f(r){t=r;n(".mapp-edit").empty();n(".mapp-edit").append(u.clone());var f=t.mapid;f?n("#mapp_m_mapid").text(f):n("#mapp_m_mapid").text("");n("#mapp_m_title").val(t.title);n("#mapp_m_width").val(t.width);n("#mapp_m_height").val(t.height);n("#mapp_m_edit_panel").show();n("#mapp_m_list_panel").hide();i=new mapp.Editor(t)}function e(){i.close();t=null;i=null;n("#mapp_m_edit_panel").hide();n("#mapp_m_list_panel").show()}function s(){mapp.Map.ajaxCreate(r,function(n){f(n)})}function h(n){mapp.Map.ajaxGet(n,r,function(n){f(n)})}function c(n){var t='[mappress mapid="'+n+'"]';send_to_editor(t)}function o(){t&&(t.title=n.trim(n("#mapp_m_title").val()),t.width=n("#mapp_m_width").val(),t.height=n("#mapp_m_height").val(),t.ajaxSave(function(t){t.list&&n("#mapp_m_maplist").html(t.list);e()}))}function l(t){confirm(mappl10n.delete_map_prompt)&&(n("#mapp_m_maplist tr[data-mapid='"+t+"']").remove(),mapp.Map.ajaxDelete(t))}var i,t,u,a=n(".mapp-m-panel"),v=this,r;u=n(".mapp-edit").contents().detach();r={directions:"none",editable:!0,initialOpenInfo:!1,name:"mapp0"};n("#mapp_m_list_panel").show();n("#mapp_m_add_map").click(function(n){s();n.preventDefault()});n("#mapp_m_maplist").on("click","tr",function(t){var i=n(this).attr("data-mapid");n(t.target).hasClass("mapp-maplist-edit")&&h(i);n(t.target).hasClass("mapp-maplist-delete")&&l(i);n(t.target).hasClass("mapp-maplist-insert")&&c(i);t.preventDefault()});n(".mapp-m-size").click(function(t){var i=n(this).data("width"),r=n(this).data("height");n("#mapp_m_width").val(i);n("#mapp_m_height").val(r);t.preventDefault()});n("#publish, #post-preview").click(function(){o()});n("#mapp_m_save").click(function(n){o();n.preventDefault()});n("#mapp_m_title").keydown(function(t){t.which==13&&(t.preventDefault(),n("#mapp_m_save").click())});n("#mapp_m_cancel").click(function(n){e();n.preventDefault()});n("#mapp_m_insert").click(function(n){var i=t.mapid,r='[mappress mapid="'+t.mapid+'"]';i?send_to_editor(r):alert(mappl10n.save_first);n.preventDefault()});this.getMap=function(){return t}}}(jQuery);+function(n){mapp.Editor=function(t){function o(){google.maps.event.addListener(i,"render-list",function(){n(".mapp-list",e).toggle(!!i.getPois().length);i.resize();n(".mapp-items",e).sortable({axis:"y",cursor:"move",delay:200,update:function(){i.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-poi"}))}})});i.display();r=new mapp.PoiEditor(i);n("#mapp_e_poi_list").on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action");me.action(i,n(this).attr("data-mapp-"+i),n(this));t.preventDefault()});_geocoder=new mapp.Geocoder(i.getMap());_geocoder.autocompleteField("#mapp_e_saddr","#mapp_e_saddr_err","#mapp_e_search","#mapp_e_myloc",s);n("#mapp_e_recenter").click(function(n){i.closeInfoWindow();i.autoCenter(!0);n.preventDefault()});google.maps.event.addListener(i.getMap(),"click",function(t){n("#mapp_e_latlng").text(t.latLng.toUrlValue())})}function s(n){if(n){if(n.geometry){var t=mapp.Geocoder.parseAddress(n.formatted_address),i=n.name?n.name:t.firstLine,f=n.name?t.firstLine+", "+t.secondLine:t.secondLine,e=new mapp.Poi({address:n.formatted_address,body:f,iconid:r.lastIcon,overlay:new google.maps.Marker({position:n.geometry.location}),title:i,type:null,viewport:n.geometry.viewport?n.geometry.viewport:null});u(e,!0);return}if(n instanceof google.maps.LatLng)return h(n);alert("Internal error, unable to add location")}}function h(n){poi=new mapp.Poi({body:"",iconid:r.lastIcon,overlay:new google.maps.Marker({position:n}),title:n.toUrlValue(6)});u(poi,!0)}function u(n,t){i.closeInfoWindow();f&&f.setDrawingMode(null);i.addPoi(n);t&&n.center(!0)}var f,i=t,r,e=n(".mapp-edit");this.close=function(){i.closeInfoWindow()};o.apply(this)};mapp.PoiEditor=function(t){function h(){u=i.iw.getContent();google.maps.event.addListener(i,"open",f.render);google.maps.event.addListener(i.iw,"domready",f.domReady);google.maps.event.addListener(i.iw,"closed",function(){s()});u.on("click","[data-mapp-action]",function(t){t.preventDefault();var r=n(this).attr("data-mapp-action");switch(r){case"poi-cancel":i.closeInfoWindow();break;case"poi-html":s();e=!1;break;case"poi-remove":f.remove();break;case"poi-save":f.save();break;case"poi-visual":o();e=!0}});u.on("keydown",function(t){t.which==13&&t.target!=n("#mapp-poi-body")&&(t.preventDefault(),f.save())});u.on("change","[data-mapp-iconpicker]",function(){r.setIcon(n("[data-mapp-iconpicker]").attr("data-mapp-iconid"));this.lastIcon=r.iconid;i.renderList()});u.on("change","[data-mapp-colorpicker]",function(){var t=n("[data-mapp-colorpicker]").attr("data-mapp-color"),u=n("[data-mapp-colorpicker]").attr("data-mapp-opacity"),f=n("[data-mapp-colorpicker]").attr("data-mapp-weight"),e=r.type=="polyline"?{strokeColor:t,strokeOpacity:u/100,strokeWeight:f}:{fillColor:t,fillOpacity:u/100,strokeColor:t,strokeWeight:f,strokeOpacity:1};r.setColors(e);i.renderList()})}function c(){typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(l(),e&&o())}function l(){var t="en",n,i;typeof tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(n=window.tinyMCEPreInit.mceInit.content,t=typeof n.language!="undefined"?n.language:"en");i={mode:"none",height:"75px",convert_urls:!1,language:t,menubar:!1,plugins:"wordpress,paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"bold,italic,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""};tinyMCE.init(i)}function o(){typeof tinyMCE!="undefined"&&tinyMCE.execCommand("mceAddEditor",!1,"mapp-poi-body")}function s(){typeof tinyMCE!="undefined"&&tinyMCE.execCommand("mceRemoveEditor",!1,"mapp-poi-body")}var e=!0,i=t,r,u,f;this.lastIcon=null;f=this;this.render=function(){var t;r=i.poi;r.isPoly()&&(t=r.getColors(),t=r.type=="polyline"?{color:t.strokeColor,opacity:t.strokeOpacity*100,weight:t.strokeWeight}:{color:t.fillColor,opacity:t.fillOpacity*100,weight:t.strokeWeight});u.html(mapp.lib.template("poi-edit",{poi:r,colors:t}));n("[data-mapp-iconpicker]").trigger("refresh");n("[data-mapp-colorpicker]").trigger("refresh")};this.domReady=function(){c()};this.remove=function(){confirm(mappl10n.delete_prompt)&&(i.closeInfoWindow(),i.removePoi(r))};this.save=function(){typeof tinyMCE!="undefined"&&tinyMCE.get("mapp-poi-body")&&tinyMCE.get("mapp-poi-body").save();r.title=n(".mapp-poi-title").val();r.body=n(".mapp-poi-body").val();i.renderList();i.closeInfoWindow()};h.apply(this)}}(jQuery)
1
+ var mapp=window.mapp||{};+function(n){mapp.Media=function(){this.editor=null;this.map=null;this.settings=null;this.tplEditor=null;this.sel=n(".mapp-media");this.list=n(".mapp-media-list",this.sel);var t=this;this.settings={editable:!0,name:"mapp0"};this.sel.on("click","[data-mapp-media]",function(i){i.preventDefault();var r=n(this).attr("data-mapp-media");t[r]()});this.list.on("click","[data-mapp-media]",function(i){i.preventDefault();var r=n(this).attr("data-mapp-media"),u=n(this).closest(".mapp-item"),f=u.attr("data-mapp-mapid");return t[r](f),!1});this.sel.on("change",".mapp-media-viewport",function(){n(this).is(":checked")||(t.map.center=t.map.zoom=null,t.map.recenter())});n(".mapp-media-size").click(function(t){var i=n(this).data("width"),r=n(this).data("height");n(".mapp-media-width").val(i);n(".mapp-media-height").val(r);t.preventDefault()});n("#publish, #post-preview").click(function(){t.save()});n(".mapp-media-title").keydown(function(n){n.which==13&&(n.preventDefault(),t.save())});this.add=function(){var n=new mapp.Map(this.settings);n.width=mappl10n.options.sizes[mappl10n.options.size].width;n.height=mappl10n.options.sizes[mappl10n.options.size].height;t.open(n)};this.cancel=function(){t.closeEditor()};this.closeEditor=function(){this.editor.close();this.map=null;this.editor=null;n(".mapp-media-edit-panel").hide();n(".mapp-media-list-panel").show()};this.edit=function(n){mapp.Map.ajaxGet(n,this.settings,function(n){t.open(n)})};this.insert=function(n){n=n?n:this.map.mapid;var t='[mappress mapid="'+n+'"]';send_to_editor(t)};this.open=function(t){this.map=t;n(".mapp-edit",this.sel).html(mapp.lib.template("edit-map"));var i=this.map.mapid;i?n(".mapp-media-mapid").text(i):n(".mapp-media-mapid").text("");n(".mapp-media-title").val(this.map.title);n(".mapp-media-width").val(this.map.width);n(".mapp-media-height").val(this.map.height);n(".mapp-media-viewport").prop("checked",!!(this.map.center&&this.map.zoom));n(".mapp-media-edit-panel").show();n(".mapp-media-list-panel").hide();this.editor=new mapp.Editor(this.map)};this.remove=function(t){confirm(mappl10n.delete_map_prompt)&&(n(".mapp-media-list .mapp-item[data-mapp-mapid='"+t+"']").remove(),mapp.Map.ajaxDelete(t))};this.save=function(){this.map&&(this.map.title=n.trim(n(".mapp-media-title").val()),this.map.width=n(".mapp-media-width").val(),this.map.height=n(".mapp-media-height").val(),n(".mapp-media-viewport").prop("checked")?(this.map.center=this.map.getMap().getCenter().toJSON(),this.map.zoom=this.map.getMap().getZoom()):(this.map.center=null,this.map.zoom=null),this.map.ajaxSave(function(i){i.list&&n(".mapp-media-list").html(i.list);t.closeEditor()}))}}}(jQuery);+function(n){mapp.Editor=function(t){this.drawingManager=null;this.map=t;this.poiEditor=null;this.sel=n(".mapp-edit");var i=this;this.initialize=function(){this.map.display();this.poiEditor=new mapp.PoiEditor(this.map);this.initDrawingManager();n(this.map.places).off("search.mapp");n(this.map.places).on("search.mapp",function(n,t){i.insertPoi(t)});this.sel.on("click","[data-mapp-editor]",function(t){t.preventDefault();var r=n(this).attr("data-mapp-editor");i[r]()})};this.close=function(){this.map.close()};this.insertPoi=function(n){var t;if(n)if(this.drawingManager&&this.drawingManager.setDrawingMode(null),this.map.close(),n.geometry){var i=n.formatted_address?n.formatted_address.replace(/, United States of America/i,"").replace(/, United States/i,"").replace(/, USA/i,""):null,r=n.name==i?"":i,t=new mapp.Poi({address:i,body:r,iconid:this.poiEditor.lastIcon,point:n.geometry.location,title:n.name,viewport:n.geometry.viewport?n.geometry.viewport:null});this.map.insertPoi(t);t.center()}else n.overlay&&(t=new mapp.Poi({body:"",iconid:n.type=="marker"?null:"poly",overlay:n.overlay,title:n.type=="marker"?n.overlay.getPosition().toUrlValue(6):mappl10n.shape,type:n.type=="marker"?null:n.type}),this.map.insertPoi(t),t.isPoly()||t.center())};this.initDrawingManager=function(){};this.layer=function(){var n=window.prompt(mappl10n.layer);n&&i.insertPoi(n)};this.initialize.apply(this)};mapp.PoiEditor=function(t){this.map=t;this.poi=null;this.sel=null;this.lastIcon=null;var i=this;this.initialize=function(){this.sel=n(this.map.iw.getContent());n(this.map).on("mapp.open",function(n,t){i.render(t)});n(this.map).on("mapp.close",function(){i.mce(!1)});this.sel.on("click","[data-mapp-poi]",function(t){t.preventDefault();var r=n(this).attr("data-mapp-poi");i[r]()});this.sel.on("click",".mapp-poi-visual, .mapp-poi-html",function(){var t=n(this).hasClass("mapp-poi-visual");i.mce(t)});this.sel.on("keydown",function(t){t.which==13&&t.target!=n("#mapp-poi-body")&&(t.preventDefault(),i.save())});this.sel.on("change","[data-mapp-iconpicker]",function(){i.poi.setIcon(n("[data-mapp-iconpicker]").attr("data-mapp-iconid"));i.lastIcon=i.poi.iconid;i.map.renderList()});this.sel.on("change","[data-mapp-colorpicker]",function(){i.poi.setTemplateColors(n("[data-mapp-colorpicker]").attr("data-mapp-color"),n("[data-mapp-colorpicker]").attr("data-mapp-opacity"),n("[data-mapp-colorpicker]").attr("data-mapp-weight"));i.map.renderList()})};this.cancel=function(){this.map.close()};this.initMCE=function(){var n,t,i;typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(n="en",typeof tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(t=window.tinyMCEPreInit.mceInit.content,n=typeof t.language!="undefined"?t.language:"en"),i={mode:"none",height:"75px",convert_urls:!1,language:n,menubar:!1,plugins:"wordpress,paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"bold,italic,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""},tinyMCE.init(i),this.mce(!0))};this.mce=function(t){var r=t?"mceAddEditor":"mceRemoveEditor";typeof tinyMCE!="undefined"&&tinyMCE.execCommand(r,!1,"mapp-poi-body");n(".mapp-poi-visual, .mapp-poi-html",i.sel).removeClass("mapp-active");t?n(".mapp-poi-visual",i.sel).addClass("mapp-active"):n(".mapp-poi-html",i.sel).addClass("mapp-active")};this.remove=function(){confirm(mappl10n.delete_prompt)&&(this.map.close(),this.map.removePoi(this.poi))};this.render=function(t){this.poi=t;n("[data-mapp-iconpicker]").trigger("refresh");n("[data-mapp-colorpicker]").trigger("refresh");this.initMCE()};this.save=function(){typeof tinyMCE!="undefined"&&tinyMCE.get("mapp-poi-body")&&tinyMCE.get("mapp-poi-body").save();this.poi.title=n(".mapp-poi-title").val();this.poi.body=n(".mapp-poi-body").val();this.map.renderList();this.map.close()};this.initialize.apply(this)}}(jQuery)
js/mappress_settings.min.js CHANGED
@@ -1 +1 @@
1
- +function(n){function t(i){i=i?i:0;i==0&&n(".mapp-log").empty();mapp.lib.ajax({data:{action:"mapp_import"},callback:function(i){n(".mapp-log").append(i.data.log.join("<br/>"),"<br/>");i.data.start>=0?t(i.data.start):n(".mapp-spinner").hide()}})}n(document).ready(function(){n("[data-mapp-grid]").each(function(n,t){new mapp.widgets.Grid(t)});n(document).on("focus",".mapp-expand",function(){n(this).parent().width("100%");n(this).attr("rows",20)});n(document).on("blur",".mapp-expand",function(){n(this).parent().width("auto");n(this).attr("rows",1)});n(".mapp-autoicons").on("change","#mapp-autoicons-key",function(){mapp.lib.ajax({data:{action:"mapp_autoicons_form",key:n(this).val()},callback:function(t){n(".mapp-autoicons").html(t.data);new mapp.widgets.Grid(n("[data-mapp-grid]",".mapp-autoicons"))}})});n("#mapp-filters tbody").sortable({handle:".mapp-handle"});n(".mapp-confirm").on("change",function(){var t=n(".mapp-confirm").is(":checked");n(".mapp-import").prop("disabled",!t)});n(".mapp-import").on("click",function(){n(".mapp-confirm, .mapp-import").prop("disabled",!0);t()})})}(jQuery)
1
+ +function(n){function t(i){i=i?i:0;i==0&&n(".mapp-log").empty();mapp.lib.ajax({data:{action:"mapp_import"},callback:function(i){n(".mapp-log").append(i.data.log.join("<br/>"),"<br/>");i.data.start>=0?t(i.data.start):n(".mapp-spinner").hide()}})}n(document).ready(function(){n('input[name="mappress_options[engine]"]').on("change",function(){n('input[name="save"]').click()});n("[data-mapp-grid]").each(function(n,t){new mapp.widgets.Grid(t)});n(document).on("focus",".mapp-expand",function(){n(this).parent().width("100%");n(this).attr("rows",20)});n(document).on("blur",".mapp-expand",function(){n(this).parent().width("auto");n(this).attr("rows",1)});n(".mapp-autoicons").on("change","#mapp-autoicons-key",function(){mapp.lib.ajax({data:{action:"mapp_autoicons_form",key:n(this).val()},callback:function(t){n(".mapp-autoicons").html(t.data);new mapp.widgets.Grid(n("[data-mapp-grid]",".mapp-autoicons"))}})});n("#mapp-filters tbody").sortable({handle:".mapp-handle"});n(".mapp-confirm").on("change",function(){var t=n(".mapp-confirm").is(":checked");n(".mapp-import").prop("disabled",!t)});n(".mapp-import").on("click",function(){n(".mapp-confirm, .mapp-import").prop("disabled",!0);t()})})}(jQuery)
languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -1,10 +1,10 @@
1
- # Copyright (C) 2018 MapPress Easy Google Maps
2
- # This file is distributed under the same license as the MapPress Easy Google Maps package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: MapPress Easy Google Maps 2.48.7\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
- "POT-Creation-Date: 2018-06-14 21:18:48+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
@@ -12,32 +12,30 @@ msgstr ""
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
15
- #: forms/map_editor.php:5 languages/texts.php:2
16
- msgid "Add POI"
17
msgstr ""
18
19
- #: forms/map_editor.php:12 languages/texts.php:3 templates/map-directions.php:4
20
- msgid "My location"
21
- msgstr ""
22
-
23
- #: forms/map_editor.php:43 languages/texts.php:10
24
msgid "Visual"
25
msgstr ""
26
27
- #: forms/map_editor.php:43 languages/texts.php:11
28
msgid "HTML"
29
msgstr ""
30
31
- #: forms/map_editor.php:49 forms/map_media.php:37 languages/texts.php:12
32
msgid "Save"
33
msgstr ""
34
35
- #: forms/map_editor.php:50 forms/map_media.php:38 languages/texts.php:13
36
msgid "Cancel"
37
msgstr ""
38
39
- #: forms/map_editor.php:51 languages/texts.php:46 mappress_controls.php:102
40
- #: mappress_map.php:592
41
msgid "Delete"
42
msgstr ""
43
@@ -57,8 +55,8 @@ msgstr ""
57
msgid "Map Title"
58
msgstr ""
59
60
- #: forms/map_media.php:20 languages/texts.php:51 mappress.php:624
61
- #: mappress_map.php:597
62
msgid "Untitled"
63
msgstr ""
64
@@ -66,11 +64,45 @@ msgstr ""
66
msgid "Display Size"
67
msgstr ""
68
69
- #: forms/map_media.php:39 languages/texts.php:19 mappress_map.php:591
70
msgid "Insert into post"
71
msgstr ""
72
73
- #: languages/texts.php:4 templates/map-controls.php:10
74
msgid "Center map"
75
msgstr ""
76
@@ -98,47 +130,47 @@ msgstr ""
98
msgid "Size"
99
msgstr ""
100
101
- #: languages/texts.php:20 mappress.php:160
102
msgid "Version"
103
msgstr ""
104
105
- #: languages/texts.php:21 mappress.php:168
106
msgid "Documentation"
107
msgstr ""
108
109
- #: languages/texts.php:22 mappress.php:169
110
msgid "Support"
111
msgstr ""
112
113
- #: languages/texts.php:23 mappress.php:171
114
msgid "Upgrade to MapPress Pro"
115
msgstr ""
116
117
- #: languages/texts.php:24 mappress.php:451
118
msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
119
msgstr ""
120
121
- #: languages/texts.php:25 mappress.php:456
122
msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
123
msgstr ""
124
125
- #: languages/texts.php:26 mappress.php:461
126
msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
127
msgstr ""
128
129
- #: languages/texts.php:27 mappress.php:466
130
msgid "A Google Maps API key is required"
131
msgstr ""
132
133
- #: languages/texts.php:28 mappress.php:466
134
msgid "Please update your"
135
msgstr ""
136
137
- #: languages/texts.php:29 mappress.php:466
138
msgid "MapPress Settings"
139
msgstr ""
140
141
- #: languages/texts.php:30 templates/map-controls.php:14
142
msgid "Bicycling"
143
msgstr ""
144
@@ -150,7 +182,7 @@ msgstr ""
150
msgid "One of the addresses could not be found."
151
msgstr ""
152
153
- #: languages/texts.php:33 mappress.php:614
154
msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
155
msgstr ""
156
@@ -158,11 +190,12 @@ msgstr ""
158
msgid "Unknown error, unable to return directions. Status code = "
159
msgstr ""
160
161
- #: languages/texts.php:35 mappress_poi.php:85 mappress_settings.php:90
162
msgid "Directions"
163
msgstr ""
164
165
- #: languages/texts.php:36 mappress.php:615
166
msgid "Error reading KML file"
167
msgstr ""
168
@@ -170,24 +203,23 @@ msgstr ""
170
msgid "Loading..."
171
msgstr ""
172
173
- #: languages/texts.php:38 mappress.php:618
174
msgid "No matching address"
175
msgstr ""
176
177
- #: languages/texts.php:39 mappress.php:619
178
msgid "Unable to get your location"
179
msgstr ""
180
181
- #: languages/texts.php:40 templates/map-controls.php:13
182
msgid "Traffic"
183
msgstr ""
184
185
- #: languages/texts.php:41 templates/map-controls.php:15
186
msgid "Transit"
187
msgstr ""
188
189
#: languages/texts.php:42 pro/mappress_pro_settings.php:248
190
- #: pro/mappress_widget.php:94
191
msgid "Zoom"
192
msgstr ""
193
@@ -207,7 +239,7 @@ msgstr ""
207
msgid "Delete this POI?"
208
msgstr ""
209
210
- #: languages/texts.php:48 mappress.php:621
211
msgid "Delete this map?"
212
msgstr ""
213
@@ -215,23 +247,15 @@ msgstr ""
215
msgid "Please save the map first"
216
msgstr ""
217
218
- #: languages/texts.php:50 mappress.php:623
219
msgid "Shape"
220
msgstr ""
221
222
- #: languages/texts.php:52
223
- msgid "New"
224
- msgstr ""
225
-
226
#: languages/texts.php:53 mappress_map.php:172
227
msgid "Map not found"
228
msgstr ""
229
230
- #: languages/texts.php:54 mappress_map.php:590
231
- msgid "Edit"
232
- msgstr ""
233
-
234
- #: languages/texts.php:55 mappress_map.php:448
235
msgid "Show map"
236
msgstr ""
237
@@ -255,11 +279,11 @@ msgstr ""
255
msgid "Directions from"
256
msgstr ""
257
258
- #: languages/texts.php:61 mappress_settings.php:79
259
msgid "Basic Settings"
260
msgstr ""
261
262
- #: languages/texts.php:62 mappress_settings.php:87
263
msgid "Post types"
264
msgstr ""
265
@@ -299,7 +323,7 @@ msgstr ""
299
msgid "Map controls"
300
msgstr ""
301
302
- #: languages/texts.php:72 mappress_settings.php:86
303
msgid "Map Settings"
304
msgstr ""
305
@@ -307,15 +331,15 @@ msgstr ""
307
msgid "Map links"
308
msgstr ""
309
310
- #: languages/texts.php:74 mappress_settings.php:89
311
msgid "Map alignment"
312
msgstr ""
313
314
- #: languages/texts.php:75 mappress_settings.php:94 mappress_settings.php:225
315
msgid "Open first POI"
316
msgstr ""
317
318
- #: languages/texts.php:76 mappress_settings.php:92
319
msgid "POI Settings"
320
msgstr ""
321
@@ -327,39 +351,39 @@ msgstr ""
327
msgid "Tooltips"
328
msgstr ""
329
330
- #: languages/texts.php:79 mappress_settings.php:93
331
msgid "Default zoom"
332
msgstr ""
333
334
- #: languages/texts.php:80 mappress_settings.php:97
335
msgid "Mashups"
336
msgstr ""
337
338
- #: languages/texts.php:81 mappress_settings.php:98
339
msgid "Icons"
340
msgstr ""
341
342
- #: languages/texts.php:82 mappress_settings.php:99
343
msgid "Styled Maps"
344
msgstr ""
345
346
- #: languages/texts.php:83 mappress_settings.php:100
347
msgid "Geocoding"
348
msgstr ""
349
350
- #: languages/texts.php:84 mappress_settings.php:103
351
msgid "Localization"
352
msgstr ""
353
354
- #: languages/texts.php:85 mappress_settings.php:104 mappress_settings.php:229
355
msgid "Language"
356
msgstr ""
357
358
- #: languages/texts.php:86 mappress_settings.php:105
359
msgid "Country"
360
msgstr ""
361
362
- #: languages/texts.php:87 mappress_settings.php:106
363
msgid "Directions server"
364
msgstr ""
365
@@ -367,15 +391,15 @@ msgstr ""
367
msgid "Directions units"
368
msgstr ""
369
370
- #: languages/texts.php:89 mappress_settings.php:108
371
msgid "Miscellaneous"
372
msgstr ""
373
374
- #: languages/texts.php:90 mappress_settings.php:111
375
msgid "Map sizes"
376
msgstr ""
377
378
- #: languages/texts.php:91 mappress_settings.php:110
379
msgid "Scripts"
380
msgstr ""
381
@@ -395,16 +419,15 @@ msgstr ""
395
msgid "Recenter maps when window is resized"
396
msgstr ""
397
398
- #: languages/texts.php:96 mappress_settings.php:176
399
- #: pro/mappress_pro_settings.php:112
400
msgid "more info"
401
msgstr ""
402
403
- #: languages/texts.php:97 mappress_settings.php:177
404
msgid "Required to display maps"
405
msgstr ""
406
407
- #: languages/texts.php:98 mappress_settings.php:216 mappress_settings.php:219
408
msgid "Output scripts in footer"
409
msgstr ""
410
@@ -452,10 +475,6 @@ msgstr ""
452
msgid "Use a specific %s for map controls and geocoding"
453
msgstr ""
454
455
- #: languages/texts.php:110 mappress_settings.php:166
456
- msgid "Default"
457
- msgstr ""
458
-
459
#: languages/texts.php:111
460
msgid "Horizontal"
461
msgstr ""
@@ -528,27 +547,27 @@ msgstr ""
528
msgid "Road map"
529
msgstr ""
530
531
- #: languages/texts.php:129 pro/mappress_widget.php:112
532
msgid "Satellite"
533
msgstr ""
534
535
- #: languages/texts.php:130 pro/mappress_widget.php:113
536
msgid "Terrain"
537
msgstr ""
538
539
- #: languages/texts.php:131 pro/mappress_widget.php:111
540
msgid "Hybrid"
541
msgstr ""
542
543
- #: languages/texts.php:132 mappress_settings.php:202
544
msgid "Google"
545
msgstr ""
546
547
- #: languages/texts.php:133 mappress_settings.php:203
548
msgid "Inline"
549
msgstr ""
550
551
- #: languages/texts.php:134 mappress_settings.php:184 mappress_settings.php:204
552
msgid "None"
553
msgstr ""
554
@@ -572,27 +591,27 @@ msgstr ""
572
msgid "Default alignment"
573
msgstr ""
574
575
- #: languages/texts.php:140 mappress_settings.php:167
576
msgid "Center"
577
msgstr ""
578
579
- #: languages/texts.php:141 mappress_settings.php:168
580
msgid "Left"
581
msgstr ""
582
583
- #: languages/texts.php:142 mappress_settings.php:169
584
msgid "Right"
585
msgstr ""
586
587
- #: languages/texts.php:143 mappress_settings.php:237
588
msgid "Default zoom for POIs entered by lat/lng"
589
msgstr ""
590
591
- #: languages/texts.php:144 mappress_settings.php:182
592
msgid "Top of post"
593
msgstr ""
594
595
- #: languages/texts.php:145 mappress_settings.php:183
596
msgid "Bottom of post"
597
msgstr ""
598
@@ -604,7 +623,7 @@ msgstr ""
604
msgid "Load %s"
605
msgstr ""
606
607
- #: languages/texts.php:148 mappress_settings.php:247
608
msgid "Default size"
609
msgstr ""
610
@@ -632,7 +651,7 @@ msgstr ""
632
msgid "Thanks for your support!"
633
msgstr ""
634
635
- #: languages/texts.php:155 mappress_settings.php:280
636
msgid "Easy Google Maps"
637
msgstr ""
638
@@ -640,47 +659,48 @@ msgstr ""
640
msgid "Like this plugin?"
641
msgstr ""
642
643
- #: languages/texts.php:157 mappress_settings.php:292
644
msgid "Sample Map"
645
msgstr ""
646
647
- #: languages/texts.php:158 mappress_settings.php:314
648
msgid "Save Changes"
649
msgstr ""
650
651
- #: languages/texts.php:159 mappress_settings.php:315
652
msgid "Reset Defaults"
653
msgstr ""
654
655
- #: languages/texts.php:160 mappress.php:154
656
msgid "Settings"
657
msgstr ""
658
659
- #: languages/texts.php:161 pro/mappress_updater.php:150
660
msgid "download it now"
661
msgstr ""
662
663
- #: languages/texts.php:162 pro/mappress_updater.php:154
664
msgid "A PRO Version update is available for manual installation: %s"
665
msgstr ""
666
667
- #: languages/texts.php:163 pro/mappress_geocoder.php:24
668
msgid "Server API Key is missing - see MapPress Settings"
669
msgstr ""
670
671
- #: languages/texts.php:164 pro/mappress_geocoder.php:49
672
msgid "Invalid status: %s, %s Address: %s"
673
msgstr ""
674
675
- #: languages/texts.php:165 pro/mappress_geocoder.php:59
676
msgid "No results for address: %s"
677
msgstr ""
678
679
- #: languages/texts.php:166 pro/mappress_geocoder.php:87
680
msgid "Error: %s %s"
681
msgstr ""
682
683
- #: languages/texts.php:167 pro/mappress_geocoder.php:91
684
msgid "Invalid JSON from Google: %s"
685
msgstr ""
686
@@ -692,16 +712,15 @@ msgstr ""
692
msgid "Automatic"
693
msgstr ""
694
695
- #: languages/texts.php:170 pro/mappress_pro_settings.php:22
696
msgid "POI list"
697
msgstr ""
698
699
- #: languages/texts.php:171 pro/mappress_pro_settings.php:20
700
- #: pro/mappress_pro_settings.php:26
701
msgid "InfoWindow type"
702
msgstr ""
703
704
- #: languages/texts.php:172 pro/mappress_pro_settings.php:28
705
msgid "Default icon"
706
msgstr ""
707
@@ -709,7 +728,7 @@ msgstr ""
709
msgid "Custom icons directory"
710
msgstr ""
711
712
- #: languages/texts.php:174 pro/mappress_pro_settings.php:30
713
msgid "Icon scaling"
714
msgstr ""
715
@@ -737,23 +756,23 @@ msgstr ""
737
msgid "Thumbnail Size"
738
msgstr ""
739
740
- #: languages/texts.php:181 pro/mappress_pro_settings.php:31
741
msgid "Automatic icons"
742
msgstr ""
743
744
- #: languages/texts.php:182 pro/mappress_pro_settings.php:39
745
msgid "Styled maps"
746
msgstr ""
747
748
- #: languages/texts.php:183 pro/mappress_pro_settings.php:40
749
msgid "Default style"
750
msgstr ""
751
752
- #: languages/texts.php:184 pro/mappress_pro_settings.php:42
753
msgid "Geocoding fields"
754
msgstr ""
755
756
- #: languages/texts.php:185 pro/mappress_pro_settings.php:46
757
msgid "Force resize"
758
msgstr ""
759
@@ -761,8 +780,8 @@ msgstr ""
761
msgid "Optional - for geocoding only"
762
msgstr ""
763
764
- #: languages/texts.php:187 pro/mappress_filter.php:83
765
- #: pro/mappress_filter.php:131 pro/mappress_pro_settings.php:125
766
msgid "Post type"
767
msgstr ""
768
@@ -770,16 +789,16 @@ msgstr ""
770
msgid "Key"
771
msgstr ""
772
773
- #: languages/texts.php:189 pro/mappress_pro_settings.php:132
774
msgid "Value"
775
msgstr ""
776
777
- #: languages/texts.php:190 pro/mappress_pro_settings.php:132
778
#: pro/mappress_pro_settings.php:248
779
msgid "Icon"
780
msgstr ""
781
782
- #: languages/texts.php:191 pro/mappress_pro_settings.php:270
783
msgid "Show a list of POIs under each map"
784
msgstr ""
785
@@ -819,7 +838,7 @@ msgstr ""
819
msgid "Go directly to the post"
820
msgstr ""
821
822
- #: languages/texts.php:201 pro/mappress_pro_settings.php:202
823
msgid "Google InfoWindow"
824
msgstr ""
825
@@ -827,7 +846,7 @@ msgstr ""
827
msgid "InfoBox"
828
msgstr ""
829
830
- #: languages/texts.php:203 pro/mappress_pro_settings.php:319
831
msgid "Show featured image thumbnails in mashup POIs"
832
msgstr ""
833
@@ -851,11 +870,11 @@ msgstr ""
851
msgid "Enter JSON for %s from Google's %s"
852
msgstr ""
853
854
- #: languages/texts.php:209 pro/mappress_pro_settings.php:294
855
msgid "Style name"
856
msgstr ""
857
858
- #: languages/texts.php:210 pro/mappress_pro_settings.php:280
859
msgid "No styles have been defined yet"
860
msgstr ""
861
@@ -903,11 +922,11 @@ msgstr ""
903
msgid "Map Zoom"
904
msgstr ""
905
906
- #: languages/texts.php:222 mappress_map.php:452 pro/mappress_widget.php:110
907
msgid "Map"
908
msgstr ""
909
910
- #: languages/texts.php:223 pro/mappress_filter.php:118
911
#: pro/mappress_pro_settings.php:253
912
msgid "Custom Field"
913
msgstr ""
@@ -928,39 +947,39 @@ msgstr ""
928
msgid "Force Resize"
929
msgstr ""
930
931
- #: languages/texts.php:228 pro/mappress_widget.php:64
932
msgid "Widget title"
933
msgstr ""
934
935
- #: languages/texts.php:229 pro/mappress_widget.php:69
936
msgid "Map size"
937
msgstr ""
938
939
- #: languages/texts.php:230 pro/mappress_widget.php:75
940
msgid "Show"
941
msgstr ""
942
943
- #: languages/texts.php:231 pro/mappress_widget.php:76
944
msgid "Current posts"
945
msgstr ""
946
947
- #: languages/texts.php:232 pro/mappress_widget.php:77
948
msgid "Hide if empty"
949
msgstr ""
950
951
- #: languages/texts.php:233 pro/mappress_widget.php:79
952
msgid "All posts"
953
msgstr ""
954
955
- #: languages/texts.php:234 pro/mappress_widget.php:80
956
msgid "Custom query"
957
msgstr ""
958
959
- #: languages/texts.php:235 pro/mappress_widget.php:83
960
msgid "Learn about queries"
961
msgstr ""
962
963
- #: languages/texts.php:236 pro/mappress_widget.php:88
964
msgid "Show POI list"
965
msgstr ""
966
@@ -968,11 +987,11 @@ msgstr ""
968
msgid "Link POIs to posts"
969
msgstr ""
970
971
- #: languages/texts.php:238 pro/mappress_widget.php:107
972
msgid "Map type"
973
msgstr ""
974
975
- #: languages/texts.php:239 pro/mappress_widget.php:121
976
msgid "Other Settings"
977
msgstr ""
978
@@ -1013,7 +1032,7 @@ msgid "MapPress Easy Google Maps"
1013
msgstr ""
1014
1015
#: languages/texts.php:249 languages/texts.php:252
1016
- msgid "https://www.mappresspro.com"
1017
msgstr ""
1018
1019
#: languages/texts.php:250
@@ -1024,87 +1043,175 @@ msgstr ""
1024
msgid "Chris Richardson"
1025
msgstr ""
1026
1027
- #: mappress.php:616
1028
- msgid "Loading"
1029
msgstr ""
1030
1031
- #: mappress.php:617
1032
- msgid "%d results shown. Zoom in to see more."
1033
msgstr ""
1034
1035
- #: mappress.php:620
1036
msgid "Are you sure you want to delete?"
1037
msgstr ""
1038
1039
- #: mappress.php:622
1040
msgid "Save changes?"
1041
msgstr ""
1042
1043
- #: mappress_map.php:93 mappress_settings.php:297
1044
msgid "MapPress"
1045
msgstr ""
1046
1047
- #: mappress_map.php:424 pro/mappress_pro_settings.php:33
1048
msgid "Filter"
1049
msgstr ""
1050
1051
- #: mappress_map.php:453
1052
msgid "List"
1053
msgstr ""
1054
1055
- #: mappress_settings.php:80
1056
msgid "Google API key"
1057
msgstr ""
1058
1059
- #: mappress_settings.php:84
1060
msgid "License"
1061
msgstr ""
1062
1063
- #: mappress_settings.php:88
1064
msgid "Automatic display"
1065
msgstr ""
1066
1067
- #: mappress_settings.php:109
1068
msgid "Compatiblity"
1069
msgstr ""
1070
1071
- #: mappress_settings.php:191
1072
- msgid "Country code"
1073
msgstr ""
1074
1075
- #: mappress_settings.php:193
1076
- msgid "%s for searching"
1077
msgstr ""
1078
1079
- #: mappress_settings.php:197
1080
- msgid "Avoid conflicts with other plugins/themes that load the Google Maps API"
1081
msgstr ""
1082
1083
- #: mappress_settings.php:217
1084
msgid "Disabled because Jetpack Infinite Scroll is active"
1085
msgstr ""
1086
1087
- #: mappress_settings.php:220
1088
msgid "disable if maps are output using AJAX"
1089
msgstr ""
1090
1091
- #: mappress_settings.php:231
1092
- msgid "%s for map controls"
1093
msgstr ""
1094
1095
- #: mappress_settings.php:247
1096
msgid "Width (px or %)"
1097
msgstr ""
1098
1099
- #: mappress_settings.php:247
1100
msgid "Height (px)"
1101
msgstr ""
1102
1103
- #: pro/mappress_filter.php:118
1104
msgid "Taxonomy"
1105
msgstr ""
1106
1107
- #: pro/mappress_filter.php:118
1108
msgid "Post field"
1109
msgstr ""
1110
@@ -1116,54 +1223,58 @@ msgstr ""
1116
msgid "Beta versions"
1117
msgstr ""
1118
1119
- #: pro/mappress_pro_settings.php:23
1120
msgid "POI list layout"
1121
msgstr ""
1122
1123
- #: pro/mappress_pro_settings.php:24
1124
msgid "Sort"
1125
msgstr ""
1126
1127
- #: pro/mappress_pro_settings.php:29
1128
msgid "Icon directory"
1129
msgstr ""
1130
1131
- #: pro/mappress_pro_settings.php:34
1132
- msgid "POI content"
1133
msgstr ""
1134
1135
#: pro/mappress_pro_settings.php:35
1136
- msgid "POI click"
1137
msgstr ""
1138
1139
#: pro/mappress_pro_settings.php:36
1140
- msgid "Thumbnails"
1141
msgstr ""
1142
1143
#: pro/mappress_pro_settings.php:37
1144
msgid "Thumbnail size"
1145
msgstr ""
1146
1147
- #: pro/mappress_pro_settings.php:43
1148
msgid "Overwrite"
1149
msgstr ""
1150
1151
- #: pro/mappress_pro_settings.php:44
1152
msgid "Google Server API key"
1153
msgstr ""
1154
1155
- #: pro/mappress_pro_settings.php:47
1156
- msgid "Automatic updates"
1157
msgstr ""
1158
1159
- #: pro/mappress_pro_settings.php:113
1160
msgid "API key secured by IP address for geocoding (optional)"
1161
msgstr ""
1162
1163
- #: pro/mappress_pro_settings.php:147
1164
- msgid "Enable settings for automatic updates"
1165
- msgstr ""
1166
-
1167
#: pro/mappress_pro_settings.php:151
1168
msgid "Enable updates for beta versions"
1169
msgstr ""
@@ -1180,6 +1291,10 @@ msgstr ""
1180
msgid "Format"
1181
msgstr ""
1182
1183
#: pro/mappress_pro_settings.php:210
1184
msgid "Below map"
1185
msgstr ""
@@ -1236,46 +1351,82 @@ msgstr ""
1236
msgid "Overwrite maps when posts are saved"
1237
msgstr ""
1238
1239
#: pro/mappress_pro_settings.php:274
1240
msgid "Sort POI list by title"
1241
msgstr ""
1242
1243
- #: pro/mappress_pro_settings.php:289
1244
msgid "Styled Maps Wizard"
1245
msgstr ""
1246
1247
- #: pro/mappress_pro_settings.php:290
1248
msgid "JSON from Google's %s"
1249
msgstr ""
1250
1251
- #: pro/mappress_pro_settings.php:311
1252
msgid "or "
1253
msgstr ""
1254
1255
- #: pro/mappress_updater.php:118
1256
msgid "Communication error"
1257
msgstr ""
1258
1259
- #: pro/mappress_updater.php:124
1260
msgid "JSON error"
1261
msgstr ""
1262
1263
- #: pro/mappress_widget.php:124
1264
msgid "Example: initialopeninfo=\"true\""
1265
msgstr ""
1266
1267
- #: templates/map-controls.php:2
1268
msgid "Menu"
1269
msgstr ""
1270
1271
- #: templates/map-controls.php:5
1272
- msgid "Set center/zoom"
1273
- msgstr ""
1274
-
1275
- #: templates/map-controls.php:6
1276
- msgid "Clear center/zoom"
1277
- msgstr ""
1278
-
1279
#: templates/map-filters.php:9
1280
msgid "Done"
1281
msgstr ""
@@ -1283,16 +1434,24 @@ msgstr ""
1283
#: templates/map-filters.php:10
1284
msgid "Reset"
1285
msgstr ""
1286
#. Plugin Name of the plugin/theme
1287
- msgid "MapPress Easy Google Maps"
1288
msgstr ""
1289
1290
#. Plugin URI of the plugin/theme
1291
- msgid "https://www.mappresspro.com"
1292
msgstr ""
1293
1294
#. Description of the plugin/theme
1295
- msgid "MapPress makes it easy to insert Google Maps in WordPress posts and pages."
1296
msgstr ""
1297
1298
#. Author of the plugin/theme
@@ -1300,5 +1459,5 @@ msgid "Chris Richardson"
1300
msgstr ""
1301
1302
#. Author URI of the plugin/theme
1303
- msgid "https://www.mappresspro.com"
1304
msgstr ""
1
+ # Copyright (C) 2018 MapPress Maps for WordPress
2
+ # This file is distributed under the same license as the MapPress Maps for WordPress package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: MapPress Maps for WordPress 2.49\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
+ "POT-Creation-Date: 2018-07-06 21:17:24+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
15
+ #: forms/map_editor.php:11
16
+ msgid "Add KML"
17
msgstr ""
18
19
+ #: forms/map_editor.php:47 languages/texts.php:10
20
msgid "Visual"
21
msgstr ""
22
23
+ #: forms/map_editor.php:47 languages/texts.php:11
24
msgid "HTML"
25
msgstr ""
26
27
+ #: forms/map_editor.php:53 forms/map_media.php:42 forms/template_editor.php:41
28
+ #: languages/texts.php:12
29
msgid "Save"
30
msgstr ""
31
32
+ #: forms/map_editor.php:54 forms/map_media.php:43 forms/template_editor.php:42
33
+ #: languages/texts.php:13
34
msgid "Cancel"
35
msgstr ""
36
37
+ #: forms/map_editor.php:55 forms/template_editor.php:44 languages/texts.php:46
38
+ #: mappress_controls.php:102 mappress_map.php:613
39
msgid "Delete"
40
msgstr ""
41
55
msgid "Map Title"
56
msgstr ""
57
58
+ #: forms/map_media.php:20 languages/texts.php:51 mappress.php:644
59
+ #: mappress_map.php:618
60
msgid "Untitled"
61
msgstr ""
62
64
msgid "Display Size"
65
msgstr ""
66
67
+ #: forms/map_media.php:37
68
+ msgid "Save center / zoom"
69
+ msgstr ""
70
+
71
+ #: forms/map_media.php:44 languages/texts.php:19 mappress_map.php:612
72
msgid "Insert into post"
73
msgstr ""
74
75
+ #: forms/template_editor.php:4 forms/template_editor.php:18
76
+ #: languages/texts.php:54 mappress_map.php:611
77
+ msgid "Edit"
78
+ msgstr ""
7