Version Description
Download this release
Release Info
Developer | chrisvrichardson |
Plugin | ![]() |
Version | 2.45 |
Comparing to | |
See all releases |
Code changes from version 2.44.5 to 2.45
- css/mappress.css +132 -54
- css/mappress_admin.css +148 -134
- forms/map_editor.php +64 -28
- forms/map_editor_infobox.php +2 -2
- forms/map_media.php +28 -36
- images/close-2x.png +0 -0
- images/close.png +0 -0
- images/geolocate.png +0 -0
- images/icons.png +0 -0
- images/justify_center.png +0 -0
- images/justify_left.png +0 -0
- images/justify_right.png +0 -0
- images/menu-2x.png +0 -0
- js/mappress.min.js +1 -1
- js/mappress_editor.min.js +1 -1
- js/mappress_settings.min.js +1 -1
- languages/mappress-google-maps-for-wordpress.pot +390 -269
- languages/texts.php +40 -9
- mappress.php +162 -132
- mappress_controls.php +79 -115
- mappress_map.php +23 -62
- mappress_poi.php +22 -73
- mappress_settings.php +153 -512
- readme.txt +30 -10
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- screenshot-4.jpg +0 -0
- screenshot-5.jpg +0 -0
- screenshot-6.jpg +0 -0
- templates/map_controls.php +11 -0
css/mappress.css
CHANGED
@@ -85,7 +85,7 @@
|
|
85 |
.mapp-canvas {
|
86 |
overflow: hidden !important;
|
87 |
padding: 0px !important;
|
88 |
-
margin: 0px;
|
89 |
word-wrap: normal; /* 2013 sets break-word, which interferes w/Google copyright in IE only */
|
90 |
}
|
91 |
|
@@ -101,7 +101,6 @@
|
|
101 |
border-radius: 0px !important; /* 2012 adds border-radius to all images */
|
102 |
}
|
103 |
|
104 |
-
|
105 |
/*
|
106 |
-----------------------------------------------------------------------------------
|
107 |
InfoWindow
|
@@ -111,12 +110,10 @@
|
|
111 |
-----------------------------------------------------------------------------------
|
112 |
*/
|
113 |
|
114 |
-
/*
|
115 |
.mapp-iw * {
|
116 |
color: black;
|
117 |
line-height: normal; /* To support wpautop */
|
118 |
-
margin: 0px !important;
|
119 |
-
padding: 0px !important;
|
120 |
}
|
121 |
|
122 |
.mapp-iw p {
|
@@ -144,19 +141,18 @@
|
|
144 |
white-space: nowrap; /* Don't let links split in small infowindows */
|
145 |
margin: 0 !important; /* Margin causes scrollbars */
|
146 |
padding-top: 4px !important;
|
147 |
-
border-top: 1px solid lightgray ;
|
148 |
}
|
149 |
|
150 |
/* Override theme link styles */
|
151 |
-
.mapp-iw a, .mapp-iw a:link, .mapp-iw a:active, .mapp-iw a:visited{
|
152 |
border: none !important;
|
|
|
153 |
color: #4272db !important;
|
154 |
text-decoration: none !important;
|
155 |
}
|
156 |
|
157 |
.mapp-iw a:hover{
|
158 |
-
|
159 |
-
text-decoration:underline !important;
|
160 |
}
|
161 |
|
162 |
/*
|
@@ -169,37 +165,32 @@
|
|
169 |
background-color: white;
|
170 |
border: 1px solid lightgray;
|
171 |
border-collapse: separate; /* Without this, box shadow won't work on IE9 */
|
172 |
-
|
173 |
-
|
174 |
-
box-shadow: 5px 5px 5px #888;
|
175 |
display: none;
|
176 |
-
|
177 |
-
min-width: 200px;
|
178 |
overflow: auto;
|
179 |
-
padding:
|
180 |
position: absolute;
|
181 |
z-index: 100; /* WP thickbox has z-index 102, this keeps editor's IB below it */
|
182 |
}
|
183 |
|
184 |
-
|
185 |
-
.mapp-ib-close {
|
186 |
-
display: block;
|
187 |
position: absolute;
|
188 |
-
|
189 |
-
right: 5px;
|
190 |
-
top: 5px;
|
191 |
}
|
192 |
|
193 |
/* Triangular tip */
|
194 |
.mapp-ib-tip {
|
|
|
195 |
position: absolute;
|
196 |
-
top: -10px; /* Use -12 instead of -10, otherwise a line may appear above tip */
|
197 |
-
left: 20px;
|
198 |
-
margin: 0;
|
199 |
border-top: 10px solid white;
|
200 |
border-left: 10px solid transparent;
|
201 |
border-right: 10px solid transparent;
|
202 |
border-bottom: none;
|
|
|
|
|
|
|
203 |
padding: 0;
|
204 |
width: 0;
|
205 |
height: 0;
|
@@ -242,6 +233,50 @@
|
|
242 |
vertical-align: middle ;
|
243 |
}
|
244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
/*
|
246 |
-----------------------------------------------------------------------------------
|
247 |
Directions
|
@@ -343,36 +378,73 @@
|
|
343 |
|
344 |
/*
|
345 |
-----------------------------------------------------------------------------------
|
346 |
-
|
347 |
-
Note that some styling is in inline styles because the CSS may not be initially
|
348 |
-
loaded...
|
349 |
-----------------------------------------------------------------------------------
|
350 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
|
352 |
/*
|
353 |
-----------------------------------------------------------------------------------
|
354 |
-
Custom
|
355 |
-----------------------------------------------------------------------------------
|
356 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
|
358 |
-
.mapp-
|
359 |
-
border: black 1px solid;
|
360 |
-
margin: 5px 0px 0px 0px;
|
361 |
background-color: white;
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
366 |
cursor: pointer;
|
367 |
-
|
368 |
-
|
369 |
-
text-align: center;
|
370 |
}
|
371 |
|
372 |
-
.mapp-
|
373 |
-
|
374 |
-
|
375 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
}
|
377 |
|
378 |
/*
|
@@ -394,27 +466,33 @@
|
|
394 |
*/
|
395 |
|
396 |
.mapp-close {
|
397 |
-
|
398 |
cursor: pointer;
|
399 |
display: inline-block;
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
|
|
404 |
position: absolute;
|
405 |
-
|
406 |
-
top:
|
407 |
-
width:
|
|
|
|
|
|
|
|
|
|
|
408 |
}
|
409 |
|
410 |
.mapp-close:hover {
|
411 |
-
|
412 |
}
|
413 |
|
414 |
/* Icons */
|
415 |
-
.mapp-icon {
|
416 |
-
max-width:
|
417 |
-
max-height:
|
418 |
vertical-align: middle;
|
419 |
box-shadow: none !important; /* 2012 applies box shadow to all images */
|
420 |
}
|
85 |
.mapp-canvas {
|
86 |
overflow: hidden !important;
|
87 |
padding: 0px !important;
|
88 |
+
margin: 0px; /* Plugin overrides, for map alignment */
|
89 |
word-wrap: normal; /* 2013 sets break-word, which interferes w/Google copyright in IE only */
|
90 |
}
|
91 |
|
101 |
border-radius: 0px !important; /* 2012 adds border-radius to all images */
|
102 |
}
|
103 |
|
|
|
104 |
/*
|
105 |
-----------------------------------------------------------------------------------
|
106 |
InfoWindow
|
110 |
-----------------------------------------------------------------------------------
|
111 |
*/
|
112 |
|
113 |
+
/* Important is used to override common theme / user agent styles that interfere */
|
114 |
.mapp-iw * {
|
115 |
color: black;
|
116 |
line-height: normal; /* To support wpautop */
|
|
|
|
|
117 |
}
|
118 |
|
119 |
.mapp-iw p {
|
141 |
white-space: nowrap; /* Don't let links split in small infowindows */
|
142 |
margin: 0 !important; /* Margin causes scrollbars */
|
143 |
padding-top: 4px !important;
|
|
|
144 |
}
|
145 |
|
146 |
/* Override theme link styles */
|
147 |
+
.mapp-iw a, .mapp-iw a:link, .mapp-iw a:active, .mapp-iw a:visited, .mapp-iw a:hover {
|
148 |
border: none !important;
|
149 |
+
box-shadow: none; /* 2016 */
|
150 |
color: #4272db !important;
|
151 |
text-decoration: none !important;
|
152 |
}
|
153 |
|
154 |
.mapp-iw a:hover{
|
155 |
+
text-decoration: underline !important;
|
|
|
156 |
}
|
157 |
|
158 |
/*
|
165 |
background-color: white;
|
166 |
border: 1px solid lightgray;
|
167 |
border-collapse: separate; /* Without this, box shadow won't work on IE9 */
|
168 |
+
box-shadow: 1px 1px 1px #888;
|
169 |
+
box-sizing: border-box;
|
|
|
170 |
display: none;
|
171 |
+
outline: none;
|
|
|
172 |
overflow: auto;
|
173 |
+
padding: 5px 20px 5px 10px;
|
174 |
position: absolute;
|
175 |
z-index: 100; /* WP thickbox has z-index 102, this keeps editor's IB below it */
|
176 |
}
|
177 |
|
178 |
+
.mapp-ib .mapp-close {
|
|
|
|
|
179 |
position: absolute;
|
180 |
+
right: 0; top: 0;
|
|
|
|
|
181 |
}
|
182 |
|
183 |
/* Triangular tip */
|
184 |
.mapp-ib-tip {
|
185 |
+
display: none;
|
186 |
position: absolute;
|
|
|
|
|
|
|
187 |
border-top: 10px solid white;
|
188 |
border-left: 10px solid transparent;
|
189 |
border-right: 10px solid transparent;
|
190 |
border-bottom: none;
|
191 |
+
filter: drop-shadow(1px 1px 1px #888);
|
192 |
+
margin-left: -10px;
|
193 |
+
margin-top: -2px;
|
194 |
padding: 0;
|
195 |
width: 0;
|
196 |
height: 0;
|
233 |
vertical-align: middle ;
|
234 |
}
|
235 |
|
236 |
+
.mapp-poi-list tr {
|
237 |
+
cursor: pointer;
|
238 |
+
}
|
239 |
+
|
240 |
+
.mapp-poi-list tr:hover, .mapp-poi-list tr.mapp-selected {
|
241 |
+
background-color: #fafafa;
|
242 |
+
}
|
243 |
+
|
244 |
+
/*
|
245 |
+
-----------------------------------------------------------------------------------
|
246 |
+
POI List (new)
|
247 |
+
-----------------------------------------------------------------------------------
|
248 |
+
*/
|
249 |
+
|
250 |
+
.mapp-list {
|
251 |
+
background-color: white;
|
252 |
+
overflow: auto;
|
253 |
+
position: relative; /* Needed to scroll list for selection */
|
254 |
+
z-index: 1;
|
255 |
+
}
|
256 |
+
|
257 |
+
.mapp-list > div {
|
258 |
+
border-bottom: 1px solid lightgray;
|
259 |
+
overflow: hidden;
|
260 |
+
padding: 5px;
|
261 |
+
}
|
262 |
+
|
263 |
+
.mapp-list > div:hover, .mapp-list > div.mapp-selected {
|
264 |
+
background-color: #fafafa;
|
265 |
+
}
|
266 |
+
|
267 |
+
.mapp-list .mapp-title {
|
268 |
+
overflow: hidden;
|
269 |
+
vertical-align: middle;
|
270 |
+
}
|
271 |
+
|
272 |
+
.mapp-list .mapp-icon {
|
273 |
+
float: left;
|
274 |
+
margin-right: 5px;
|
275 |
+
max-width: 24px !important; /* 2012 tries to override */
|
276 |
+
max-height: 24px;
|
277 |
+
}
|
278 |
+
|
279 |
+
|
280 |
/*
|
281 |
-----------------------------------------------------------------------------------
|
282 |
Directions
|
378 |
|
379 |
/*
|
380 |
-----------------------------------------------------------------------------------
|
381 |
+
Layouts
|
|
|
|
|
382 |
-----------------------------------------------------------------------------------
|
383 |
*/
|
384 |
+
.mapp-left .mapp-list, .mapp-left .mapp-list {
|
385 |
+
border-right: 1px solid lightgray;
|
386 |
+
float: left;
|
387 |
+
height: 100%;
|
388 |
+
max-width: 250px;
|
389 |
+
width: 35%;
|
390 |
+
}
|
391 |
+
|
392 |
|
393 |
/*
|
394 |
-----------------------------------------------------------------------------------
|
395 |
+
Custom controls
|
396 |
-----------------------------------------------------------------------------------
|
397 |
*/
|
398 |
+
.mapp-controls {
|
399 |
+
display: none;
|
400 |
+
}
|
401 |
+
|
402 |
+
.mapp-menu-toggle {
|
403 |
+
background: white url('../images/menu-2x.png') no-repeat center center;
|
404 |
+
background-size: 24px 24px;
|
405 |
+
box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
|
406 |
+
color: #777;
|
407 |
+
cursor: pointer;
|
408 |
+
height: 29px;
|
409 |
+
margin: 10px 0 0 10px;
|
410 |
+
outline: none;
|
411 |
+
outline: none; /* Prevent focus outline */
|
412 |
+
width: 32px;
|
413 |
+
}
|
414 |
|
415 |
+
.mapp-menu {
|
|
|
|
|
416 |
background-color: white;
|
417 |
+
border: 1px solid lightgray;
|
418 |
+
color: #606060;
|
419 |
+
cursor: default;
|
420 |
+
display: none;
|
421 |
+
overflow: auto;
|
422 |
+
padding: 5px 0 5px 0;
|
423 |
+
position: absolute;
|
424 |
+
top: 0 !important; left: 0 !important; bottom: 0 !important;
|
425 |
+
width: 150px;
|
426 |
+
z-index: 10000000 !important;
|
427 |
+
}
|
428 |
+
|
429 |
+
.mapp-menu-item {
|
430 |
cursor: pointer;
|
431 |
+
line-height: 20px;
|
432 |
+
padding: 5px 10px 5px 10px;
|
|
|
433 |
}
|
434 |
|
435 |
+
.mapp-menu-item:hover {
|
436 |
+
background-color: #f8f8f8;
|
437 |
+
color: black;
|
438 |
+
}
|
439 |
+
.mapp-menu-item.mapp-active {
|
440 |
+
background-color: #f6f6f6;
|
441 |
+
color: black;
|
442 |
+
font-weight: bold;
|
443 |
+
}
|
444 |
+
|
445 |
+
.mapp-menu-separator {
|
446 |
+
padding: 0;
|
447 |
+
border-bottom: 1px solid lightgray;
|
448 |
}
|
449 |
|
450 |
/*
|
466 |
*/
|
467 |
|
468 |
.mapp-close {
|
469 |
+
color: gray;
|
470 |
cursor: pointer;
|
471 |
display: inline-block;
|
472 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
473 |
+
font-size: 18px;
|
474 |
+
font-weight: bold;
|
475 |
+
height: 20px;
|
476 |
+
line-height: 20px;
|
477 |
position: absolute;
|
478 |
+
text-align: center;
|
479 |
+
top: 0px; right: 0px;
|
480 |
+
width: 20px;
|
481 |
+
z-index: 1;
|
482 |
+
}
|
483 |
+
|
484 |
+
.mapp-close:after {
|
485 |
+
content: "x";
|
486 |
}
|
487 |
|
488 |
.mapp-close:hover {
|
489 |
+
color: black;
|
490 |
}
|
491 |
|
492 |
/* Icons */
|
493 |
+
img.mapp-icon {
|
494 |
+
max-width: 24px !important; /* 2012 tries to override */
|
495 |
+
max-height: 24px;
|
496 |
vertical-align: middle;
|
497 |
box-shadow: none !important; /* 2012 applies box shadow to all images */
|
498 |
}
|
css/mappress_admin.css
CHANGED
@@ -1,10 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*
|
2 |
-----------------------------------------------------------------------------------
|
3 |
Map list
|
4 |
-----------------------------------------------------------------------------------
|
5 |
*/
|
6 |
|
7 |
-
.mapp-m-panel
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
.mapp-m-panel hr {
|
10 |
background-color: lightgray; /* Some browsers used background color */
|
@@ -38,20 +54,9 @@ tr:hover > td > .mapp-m-actions {
|
|
38 |
-----------------------------------------------------------------------------------
|
39 |
*/
|
40 |
|
41 |
-
.mapp-e-edit-panel {
|
42 |
-
border-top: 1px solid lightgray;
|
43 |
-
margin-top: 5px;
|
44 |
-
white-space:nowrap;
|
45 |
-
}
|
46 |
-
|
47 |
-
table.mapp-e-editor {
|
48 |
-
border-collapse: collapse;
|
49 |
-
table-layout: fixed;
|
50 |
-
width: 100%;
|
51 |
-
}
|
52 |
-
|
53 |
.mapp-searchbox {
|
54 |
display: block;
|
|
|
55 |
width: 100%;
|
56 |
max-width: 500px;
|
57 |
}
|
@@ -82,86 +87,58 @@ table.mapp-e-editor {
|
|
82 |
background-size: 18px 18px !important;
|
83 |
}
|
84 |
|
85 |
-
.mapp-
|
86 |
-
vertical-align: top;
|
87 |
-
}
|
88 |
-
|
89 |
-
.mapp-e-top-toolbar {
|
90 |
-
font-size: 12px;
|
91 |
-
height: 20px;
|
92 |
-
}
|
93 |
-
|
94 |
-
.mapp-e-canvas {
|
95 |
-
width: 100%;
|
96 |
-
min-height: 200px;
|
97 |
border: 1px solid lightgray;
|
|
|
|
|
|
|
98 |
}
|
99 |
|
100 |
-
.mapp-
|
101 |
-
|
102 |
-
height: 370px;
|
103 |
-
overflow: auto;
|
104 |
-
}
|
105 |
-
|
106 |
-
.mapp-e-poi-list a {
|
107 |
-
text-decoration: none;
|
108 |
-
}
|
109 |
-
|
110 |
-
.mapp-e-poi-list td {
|
111 |
-
border-bottom: 1px solid lightgray;
|
112 |
}
|
113 |
|
114 |
-
.mapp-e-poi-list tr:nth-of-type(odd) {
|
115 |
-
background-color: rgb(252, 252, 252);
|
116 |
-
}
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
121 |
|
122 |
-
.
|
123 |
-
|
124 |
}
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
}
|
129 |
-
|
130 |
-
.mapp-e-icon {
|
131 |
-
vertical-align: top;
|
132 |
-
padding-right: 5px;
|
133 |
-
max-height: 24px;
|
134 |
-
max-width: 24px;
|
135 |
}
|
136 |
|
137 |
-
.mapp-
|
138 |
-
|
139 |
-
height: 325px;
|
140 |
}
|
141 |
|
142 |
-
|
143 |
-
width:
|
144 |
font-weight: bold;
|
|
|
145 |
}
|
146 |
|
147 |
-
|
148 |
-
#mapp_e_poi_body {
|
149 |
width: 100%;
|
150 |
-
height:
|
151 |
}
|
152 |
|
153 |
-
|
154 |
-
#mapp_e_visual, #mapp_e_html {
|
155 |
cursor: pointer;
|
156 |
}
|
157 |
|
158 |
/* Border around tinyMCE editor (WP removes it). mceLayout is for WP < 3.9 */
|
159 |
-
.mapp-
|
160 |
border: 1px solid lightgray !important;
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
width:
|
165 |
}
|
166 |
|
167 |
|
@@ -170,27 +147,36 @@ tr:hover > td > .mapp-e-actions {
|
|
170 |
Settings
|
171 |
-----------------------------------------------------------------------------------
|
172 |
*/
|
173 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
border-collapse: collapse;
|
175 |
-
width: auto;
|
176 |
height: auto;
|
177 |
-
|
|
|
178 |
}
|
179 |
|
180 |
-
|
|
|
181 |
font-weight: bold;
|
182 |
background-color: rgb(241, 241, 241);
|
183 |
width: auto;
|
184 |
height: auto;
|
185 |
border-bottom: 1px solid lightgray;
|
186 |
-
padding:
|
187 |
}
|
188 |
|
189 |
-
.form-table table td {
|
190 |
width: auto;
|
191 |
height: auto;
|
192 |
border-bottom: 1px solid lightgray;
|
193 |
-
|
|
|
194 |
padding: 5px;
|
195 |
}
|
196 |
|
@@ -207,37 +193,84 @@ tr:hover > td > .mapp-e-actions {
|
|
207 |
|
208 |
/*
|
209 |
-----------------------------------------------------------------------------------
|
210 |
-
|
211 |
-----------------------------------------------------------------------------------
|
212 |
*/
|
213 |
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
vertical-align: middle;
|
218 |
}
|
219 |
|
220 |
-
/*
|
221 |
-
.mapp-
|
|
|
|
|
|
|
|
|
222 |
background-color: white;
|
223 |
-
border: 1px solid
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
z-index:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
}
|
230 |
|
231 |
.mapp-iconpicker-wrapper {
|
232 |
-
height:
|
233 |
-
margin: 5px 20px 0 0;
|
234 |
overflow: auto;
|
235 |
padding: 5px;
|
236 |
user-select: none;
|
237 |
}
|
238 |
|
239 |
.mapp-iconpicker-toolbar {
|
240 |
-
padding: 5px;
|
241 |
border-top: 1px solid lightgray;
|
242 |
}
|
243 |
|
@@ -247,21 +280,24 @@ tr:hover > td > .mapp-e-actions {
|
|
247 |
margin: 0;
|
248 |
}
|
249 |
|
250 |
-
.mapp-iconpicker
|
251 |
border: 2px solid blue;
|
252 |
}
|
253 |
|
254 |
-
.mapp-iconpicker .mapp-icon {
|
255 |
-
.mapp-iconpicker .mapp-icon-sprite { display: inline-block; background: transparent url('../images/icons.png') no-repeat; width: 32px; height: 32px }
|
256 |
-
|
257 |
|
258 |
/*
|
259 |
-----------------------------------------------------------------------------------
|
260 |
-
Color
|
261 |
-----------------------------------------------------------------------------------
|
262 |
*/
|
263 |
|
264 |
-
.mapp-colorpicker
|
|
|
|
|
|
|
|
|
|
|
265 |
border: 1px solid lightgray;
|
266 |
cursor: pointer;
|
267 |
display: inline-block;
|
@@ -271,61 +307,39 @@ tr:hover > td > .mapp-e-actions {
|
|
271 |
width: 20px;
|
272 |
}
|
273 |
|
274 |
-
.mapp-colorpicker {
|
275 |
-
background-color: white;
|
276 |
-
border: 1px solid gray;
|
277 |
-
box-shadow: 5px 5px 10px #888;
|
278 |
-
display: none;
|
279 |
-
line-height: 1;
|
280 |
-
padding: 5px;
|
281 |
-
position: absolute;
|
282 |
-
width: 265px;
|
283 |
-
z-index: 100200;
|
284 |
-
}
|
285 |
-
|
286 |
-
.mapp-colorpicker span {
|
287 |
border: 2px solid lightgray;
|
288 |
display: inline-block;
|
289 |
height: 15px;
|
|
|
290 |
margin: 1px;
|
291 |
width: 15px;
|
292 |
}
|
293 |
|
294 |
-
.mapp-colorpicker
|
295 |
border: 2px solid black;
|
296 |
-
height: 15px;
|
297 |
-
width: 15px;
|
298 |
}
|
299 |
|
300 |
/*
|
301 |
-----------------------------------------------------------------------------------
|
302 |
-
|
303 |
-----------------------------------------------------------------------------------
|
304 |
*/
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
}
|
310 |
|
311 |
-
|
312 |
-
|
313 |
-
position: absolute;
|
314 |
-
z-index: 160000;
|
315 |
}
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
}
|
321 |
-
|
322 |
-
.mapp-dropdown-backdrop {
|
323 |
-
display: none;
|
324 |
-
position: fixed;
|
325 |
-
left: 0;
|
326 |
-
right: 0;
|
327 |
-
top: 0;
|
328 |
-
bottom: 0;
|
329 |
-
z-index: 159900;
|
330 |
}
|
331 |
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
-----------------------------------------------------------------------------------
|
3 |
+
Metaboxes
|
4 |
+
-----------------------------------------------------------------------------------
|
5 |
+
*/
|
6 |
+
#mappress.postbox h1 {
|
7 |
+
display: inline-block;
|
8 |
+
margin-right: 10px;
|
9 |
+
}
|
10 |
+
|
11 |
/*
|
12 |
-----------------------------------------------------------------------------------
|
13 |
Map list
|
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 */
|
54 |
-----------------------------------------------------------------------------------
|
55 |
*/
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
.mapp-searchbox {
|
58 |
display: block;
|
59 |
+
margin-top: 10px;
|
60 |
width: 100%;
|
61 |
max-width: 500px;
|
62 |
}
|
87 |
background-size: 18px 18px !important;
|
88 |
}
|
89 |
|
90 |
+
.mapp-edit .mapp-layout {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
border: 1px solid lightgray;
|
92 |
+
height: 325px;
|
93 |
+
margin: 5px 0 0 0;
|
94 |
+
width: 100%;
|
95 |
}
|
96 |
|
97 |
+
.mapp-edit .mapp-canvas {
|
98 |
+
height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
|
|
|
|
|
|
|
101 |
|
102 |
+
/*
|
103 |
+
-----------------------------------------------------------------------------------
|
104 |
+
POI editor
|
105 |
+
-----------------------------------------------------------------------------------
|
106 |
+
*/
|
107 |
|
108 |
+
.mapp-poi-edit {
|
109 |
+
width: 325px;
|
110 |
}
|
111 |
|
112 |
+
.mapp-poi-edit a {
|
113 |
+
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
+
.mapp-poi-toolbar {
|
117 |
+
margin-top: 5px;
|
|
|
118 |
}
|
119 |
|
120 |
+
.mapp-poi-title {
|
121 |
+
width: 250px;
|
122 |
font-weight: bold;
|
123 |
+
vertical-align: middle;
|
124 |
}
|
125 |
|
126 |
+
.mapp-poi-body {
|
|
|
127 |
width: 100%;
|
128 |
+
height: 143px;
|
129 |
}
|
130 |
|
131 |
+
.mapp-poi-visual, .mapp-poi-html {
|
|
|
132 |
cursor: pointer;
|
133 |
}
|
134 |
|
135 |
/* Border around tinyMCE editor (WP removes it). mceLayout is for WP < 3.9 */
|
136 |
+
.mapp-poi-edit .mce-panel, .mapp-poi-edit table.mceLayout {
|
137 |
border: 1px solid lightgray !important;
|
138 |
}
|
139 |
|
140 |
+
.mapp-poi-url {
|
141 |
+
width: 100%;
|
142 |
}
|
143 |
|
144 |
|
147 |
Settings
|
148 |
-----------------------------------------------------------------------------------
|
149 |
*/
|
150 |
+
.mapp-settings-screen label {
|
151 |
+
margin-right: 10px;
|
152 |
+
white-space: nowrap;
|
153 |
+
}
|
154 |
+
|
155 |
+
/* MapPress tables */
|
156 |
+
.mapp-settings-screen .form-table table {
|
157 |
+
border: 1px solid #dfdfdf;
|
158 |
border-collapse: collapse;
|
|
|
159 |
height: auto;
|
160 |
+
margin-top: 5px;
|
161 |
+
width: auto;
|
162 |
}
|
163 |
|
164 |
+
|
165 |
+
.mapp-settings-screen .form-table table th {
|
166 |
font-weight: bold;
|
167 |
background-color: rgb(241, 241, 241);
|
168 |
width: auto;
|
169 |
height: auto;
|
170 |
border-bottom: 1px solid lightgray;
|
171 |
+
padding: 5px;
|
172 |
}
|
173 |
|
174 |
+
.mapp-settings-screen .form-table table td {
|
175 |
width: auto;
|
176 |
height: auto;
|
177 |
border-bottom: 1px solid lightgray;
|
178 |
+
margin: 0;
|
179 |
+
vertical-align: middle;
|
180 |
padding: 5px;
|
181 |
}
|
182 |
|
193 |
|
194 |
/*
|
195 |
-----------------------------------------------------------------------------------
|
196 |
+
Popup
|
197 |
-----------------------------------------------------------------------------------
|
198 |
*/
|
199 |
|
200 |
+
/* Keep autocomplete above */
|
201 |
+
.pac-container {
|
202 |
+
z-index: 100002;
|
|
|
203 |
}
|
204 |
|
205 |
+
/* Prevent scrollbars on body when popup is open */
|
206 |
+
body.mapp-popup-open {
|
207 |
+
overflow: hidden;
|
208 |
+
}
|
209 |
+
|
210 |
+
.mapp-popup {
|
211 |
background-color: white;
|
212 |
+
border: 1px solid lightgray;
|
213 |
+
box-shadow: 5px 5px 10px #888;
|
214 |
+
box-sizing: content-box;
|
215 |
+
display: inline-block;
|
216 |
+
padding: 5px 20px 5px 5px;
|
217 |
+
z-index: 100001;
|
218 |
+
}
|
219 |
+
|
220 |
+
.mapp-popup-backdrop {
|
221 |
+
background-color: black;
|
222 |
+
opacity: 0.8;
|
223 |
+
overflow: hidden;
|
224 |
+
position: fixed;
|
225 |
+
top: 0; right: 0; bottom: 0; left : 0;
|
226 |
+
user-select: none;
|
227 |
+
z-index: 100000; /* WP adminbar is 99999 */
|
228 |
+
}
|
229 |
+
|
230 |
+
/* Max size */
|
231 |
+
.mapp-popup-max {
|
232 |
+
position: fixed;
|
233 |
+
top: 10%; bottom: 10%; left: 20%; right: 20%;
|
234 |
+
}
|
235 |
+
|
236 |
+
/* Max size on small screens */
|
237 |
+
@media screen and (max-width: 900px) {
|
238 |
+
.mapp-popup-max {
|
239 |
+
top: 10%; bottom: 10%; left: 10%; right: 10%;
|
240 |
+
}
|
241 |
+
}
|
242 |
+
@media screen and (max-width: 640px), screen and (max-height: 400px) {
|
243 |
+
.mapp-popup-max {
|
244 |
+
top: 0; bottom: 0; left: 0; right: 0;
|
245 |
+
}
|
246 |
+
}
|
247 |
+
|
248 |
+
|
249 |
+
|
250 |
+
/*
|
251 |
+
-----------------------------------------------------------------------------------
|
252 |
+
Icon Picker
|
253 |
+
-----------------------------------------------------------------------------------
|
254 |
+
*/
|
255 |
+
|
256 |
+
.mapp-iconpicker {
|
257 |
+
width: 260px;
|
258 |
+
}
|
259 |
+
|
260 |
+
img.mapp-iconpicker-toggle {
|
261 |
+
max-width: 24px !important;
|
262 |
+
max-height: 24px !important;
|
263 |
}
|
264 |
|
265 |
.mapp-iconpicker-wrapper {
|
266 |
+
height: 210px;
|
|
|
267 |
overflow: auto;
|
268 |
padding: 5px;
|
269 |
user-select: none;
|
270 |
}
|
271 |
|
272 |
.mapp-iconpicker-toolbar {
|
273 |
+
padding: 5px 5px 0 5px;
|
274 |
border-top: 1px solid lightgray;
|
275 |
}
|
276 |
|
280 |
margin: 0;
|
281 |
}
|
282 |
|
283 |
+
.mapp-iconpicker .mapp-icon:hover, .mapp-iconpicker .mapp-icon.mapp-selected, .mapp-iconpicker .mapp-icon-sprite:hover, .mapp-iconpicker .mapp-icon-sprite.mapp-selected {
|
284 |
border: 2px solid blue;
|
285 |
}
|
286 |
|
287 |
+
.mapp-iconpicker .mapp-icon-sprite { display: inline-block; background: transparent url('../images/icons.png') no-repeat; width: 24px; height: 24px; }
|
|
|
|
|
288 |
|
289 |
/*
|
290 |
-----------------------------------------------------------------------------------
|
291 |
+
Color Picker
|
292 |
-----------------------------------------------------------------------------------
|
293 |
*/
|
294 |
|
295 |
+
.mapp-colorpicker {
|
296 |
+
width: 260px;
|
297 |
+
max-height: 250px;
|
298 |
+
}
|
299 |
+
|
300 |
+
span.mapp-colorpicker-toggle {
|
301 |
border: 1px solid lightgray;
|
302 |
cursor: pointer;
|
303 |
display: inline-block;
|
307 |
width: 20px;
|
308 |
}
|
309 |
|
310 |
+
.mapp-colorpicker span[data-mapp-color] {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
border: 2px solid lightgray;
|
312 |
display: inline-block;
|
313 |
height: 15px;
|
314 |
+
line-height: 1;
|
315 |
margin: 1px;
|
316 |
width: 15px;
|
317 |
}
|
318 |
|
319 |
+
.mapp-colorpicker .mapp-color:hover, .mapp-colorpicker .mapp-color.mapp-selected {
|
320 |
border: 2px solid black;
|
|
|
|
|
321 |
}
|
322 |
|
323 |
/*
|
324 |
-----------------------------------------------------------------------------------
|
325 |
+
Misc
|
326 |
-----------------------------------------------------------------------------------
|
327 |
*/
|
328 |
+
#mappress .mapp-support {
|
329 |
+
border-bottom: 1px solid lightgray;
|
330 |
+
margin-bottom: 10px;
|
331 |
+
padding-bottom: 10px;
|
332 |
}
|
333 |
|
334 |
+
#mappress .mapp-support h1 {
|
335 |
+
padding: 0;
|
|
|
|
|
336 |
}
|
337 |
|
338 |
+
.mapp-support .button, .mapp-support .button:active {
|
339 |
+
margin-left: 10px;
|
340 |
+
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
}
|
342 |
|
343 |
+
.mapp-grid .mapp-close {
|
344 |
+
position: static;
|
345 |
+
}
|
forms/map_editor.php
CHANGED
@@ -1,34 +1,70 @@
|
|
1 |
-
|
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 |
-
<
|
9 |
-
|
10 |
-
|
11 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
</div>
|
13 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
</div>
|
15 |
-
|
16 |
-
|
17 |
-
<
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
</div>
|
|
|
33 |
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<div id='mapp0_layout' class='mapp-layout mapp-left'>
|
20 |
+
<div id='mapp0_controls'><?php echo Mappress::get_template('map_controls'); ?></div>
|
21 |
+
<div id='mapp0_poi_list' class='mapp-list'></div>
|
22 |
+
<div id='mapp0' class='mapp-canvas'></div>
|
23 |
+
</div>
|
24 |
+
|
25 |
+
<div>
|
26 |
+
<a href='#' id='mapp_e_recenter'><?php _e('Center map', 'mappress-google-maps-for-wordpress'); ?></a> |
|
27 |
+
<?php _e('Click map for lat/lng: ', 'mappress-google-maps-for-wordpress'); ?><span id='mapp_e_latlng'>0,0</span>
|
28 |
+
</div>
|
29 |
</div>
|
30 |
+
|
31 |
+
|
32 |
+
<script type='text/template' id='mapp-tmpl-poi-edit'>
|
33 |
+
<div class='mapp-poi-edit'>
|
34 |
+
<div>
|
35 |
+
<input class='mapp-poi-title' type='text' value='{{ poi.title }}'>
|
36 |
+
<# if (!poi.type) { #>
|
37 |
+
<img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'>
|
38 |
+
<# } else if (poi.isPoly()) { #>
|
39 |
+
<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>
|
40 |
+
<# } #>
|
41 |
+
</div>
|
42 |
+
|
43 |
+
<# if (poi.type == 'kml') { #>
|
44 |
+
<div class='mapp-poi-kml'>
|
45 |
+
<input class='mapp-poi-url' type='text' readonly='readonly' value='<# print( (poi.kml) ? poi.kml.url : '' );#>'/>
|
46 |
+
</div>
|
47 |
+
<# } #>
|
48 |
+
|
49 |
+
<div>
|
50 |
+
<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>
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<textarea id='mapp-poi-body' class='mapp-poi-body' rows='10'>{{ poi.body }}</textarea>
|
54 |
+
|
55 |
+
<div class='mapp-poi-toolbar'>
|
56 |
+
<button data-mapp-action='poi-save' class='button button-primary'><?php _e('Save', 'mappress-google-maps-for-wordpress'); ?></button>
|
57 |
+
<button data-mapp-action='poi-cancel' class='button'><?php _e('Cancel', 'mappress-google-maps-for-wordpress'); ?></button>
|
58 |
+
<a href='#' data-mapp-action='poi-remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
|
59 |
+
</div>
|
60 |
</div>
|
61 |
+
</script>
|
62 |
|
63 |
+
<script type='text/template' id='mapp-tmpl-poi-list'>
|
64 |
+
<# _.forEach(pois, function(poi, i) { #>
|
65 |
+
<div data-mapp-action='open' data-mapp-id='{{{i}}}'>
|
66 |
+
<img class='mapp-icon' src='<# print(mapp.Icons.getUrl(poi.iconid)); #>'>
|
67 |
+
<div class='mapp-title'>{{poi.title}}</div>
|
68 |
+
</div>
|
69 |
+
<# }); #>
|
70 |
+
</script>
|
forms/map_editor_infobox.php
CHANGED
@@ -20,9 +20,9 @@
|
|
20 |
<?php _e('Color', 'mappress-google-maps-for-wordpress'); ?>:
|
21 |
<span id='mapp_e_poi_color' class='mapp-colorpicker-toggle' tabindex="0"></span>
|
22 |
<?php _e('Opacity', 'mappress-google-maps-for-wordpress'); ?>:
|
23 |
-
<?php echo
|
24 |
<?php _e('Line', 'mappress-google-maps-for-wordpress'); ?>:
|
25 |
-
<?php echo
|
26 |
</div>
|
27 |
|
28 |
<div id='mapp_e_poi_kml_fields' style='display: none'>
|
20 |
<?php _e('Color', 'mappress-google-maps-for-wordpress'); ?>:
|
21 |
<span id='mapp_e_poi_color' class='mapp-colorpicker-toggle' tabindex="0"></span>
|
22 |
<?php _e('Opacity', 'mappress-google-maps-for-wordpress'); ?>:
|
23 |
+
<?php echo Mappress_Controls::select('', $opacities, '', array('id' => 'mapp_e_poi_opacity', 'title' => __('Opacity', 'mappress-google-maps-for-wordpress')) ); ?>
|
24 |
<?php _e('Line', 'mappress-google-maps-for-wordpress'); ?>:
|
25 |
+
<?php echo Mappress_Controls::select('', $weights, '', array('id' => 'mapp_e_poi_weight', 'title' => __('Weight', 'mappress-google-maps-for-wordpress')) ); ?>
|
26 |
</div>
|
27 |
|
28 |
<div id='mapp_e_poi_kml_fields' style='display: none'>
|
forms/map_media.php
CHANGED
@@ -1,12 +1,5 @@
|
|
1 |
<div class='mapp-m-panel'>
|
2 |
-
|
3 |
-
<a target='_blank' style='vertical-align: middle;text-decoration:none' href='http://wphostreviews.com/mappress'>
|
4 |
-
<img alt='MapPress' title='MapPress' src='<?php echo Mappress::$baseurl . '/images/mappress_logo_small.png'; ?>' />
|
5 |
-
</a>
|
6 |
-
<?php echo Mappress::get_support_links(); ?>
|
7 |
-
</div>
|
8 |
-
<hr/>
|
9 |
-
|
10 |
<div id='mapp_m_list_panel' style='display:none'>
|
11 |
<b><?php _e('Maps for This Post', 'mappress-google-maps-for-wordpress')?></b>
|
12 |
<input class='button' type='button' id='mapp_m_add_map' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
|
@@ -16,40 +9,39 @@
|
|
16 |
</div>
|
17 |
|
18 |
<div id='mapp_m_edit_panel' style='display:none'>
|
19 |
-
<
|
20 |
-
<
|
21 |
-
<
|
22 |
-
|
23 |
-
|
24 |
-
</tr>
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
45 |
<div>
|
46 |
<input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
|
47 |
<input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
|
48 |
<input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
|
49 |
</div>
|
50 |
-
|
51 |
-
<div id='mapp_m_editor'>
|
52 |
-
<?php require Mappress::$basedir . "/forms/map_editor.php"; ?>
|
53 |
-
</div>
|
54 |
</div>
|
55 |
</div>
|
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')?>' />
|
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' /></td>
|
21 |
+
</tr>
|
22 |
|
23 |
+
<tr>
|
24 |
+
<td><?php _e('Display Size', 'mappress-google-maps-for-wordpress');?>:</td>
|
25 |
+
<td>
|
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 |
+
<tr>
|
36 |
+
<td><?php _e('Viewport', 'mappress-google-maps-for-wordpress');?>:</td>
|
37 |
+
<td><label><input class='mapp-viewport' type='checkbox'/> <?php _e('Save center and zoom', 'mappress-google-maps-for-wordpress');?></label></td>
|
38 |
+
</tr>
|
39 |
+
</table>
|
40 |
<div>
|
41 |
<input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
|
42 |
<input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
|
43 |
<input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
|
44 |
</div>
|
45 |
+
<?php require Mappress::$basedir . "/forms/map_editor.php"; ?>
|
|
|
|
|
|
|
46 |
</div>
|
47 |
</div>
|
images/close-2x.png
DELETED
Binary file
|
images/close.png
DELETED
Binary file
|
images/geolocate.png
DELETED
Binary file
|
images/icons.png
CHANGED
Binary file
|
images/justify_center.png
DELETED
Binary file
|
images/justify_left.png
DELETED
Binary file
|
images/justify_right.png
DELETED
Binary file
|
images/menu-2x.png
ADDED
Binary file
|
js/mappress.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var mapp=window.mapp||{};+function(){mapp.Map=function(n){function ar(){var n,i,r;for(n in mappl10n.styles)i=mappl10n.styles[n],r=new google.maps.StyledMapType(i,{name:n}),t.mapTypes.set(n,r),fr==n&&t.setOptions({styles:i})}function vr(){sr&&et("traffic",mappl10n.traffic,si);dt&&et("bicycling",mappl10n.bike,ei);hr&&et("transit",mappl10n.transit,hi)}function et(n,i,r){var e=f+"_"+n,o=r?"checked='checked'":"",s="<div class='gmnoprint mapp-control'><input type='checkbox' id='"+e+"' "+o+" /> "+i+"<\/div>",u=jQuery(s).get(0);t.controls[google.maps.ControlPosition.TOP_RIGHT].push(u);r&&yt(n);google.maps.event.clearListeners(u,"click");google.maps.event.addDomListener(u,"click",function(){yt(n)})}function yt(n){var r=f+"_"+n,i;switch(n){case"transit":b=b?b:new google.maps.TransitLayer;i=b;break;case"traffic":w=w?w:new google.maps.TrafficLayer;i=w;break;case"bicycling":p=p?p:new google.maps.BicyclingLayer;i=p}i.getMap()?(jQuery("#"+r).prop("checked",!1),i.setMap(null)):(jQuery("#"+r).prop("checked",!0),i.setMap(t))}var o=n.center,v=n.height,s=n.mapid,pt=n.mapTypeId?n.mapTypeId:"roadmap",wt=n.metaKey,f=n.name,bt=n.options,nt=n.query,tt=n.title,y=n.width,it=parseInt(n.zoom,10),kt=n.options.adaptive,dt=n.options.bicycling,gt=n.options.bigHeight,ni=n.options.bigWidth,ti=n.options.country,ot=n.options.directions,ii=n.options.directionsServer,ri=n.options.directionsUnits,ui=n.options.draggable,fi=n.options.editable,st=n.options.from,ei=n.options.initialBicycling,oi=n.options.initialOpenDirections,rt=n.options.initialOpenInfo,si=n.options.initialTraffic,hi=n.options.initialTransit,h=n.options.iwType,ht=n.options.keyboardShortcuts,ci=n.options.language,li=n.options.mapTypeControl,ai=parseInt(n.options.mapTypeControlStyle,10),c=n.options.mapTypeIds,vi=n.options.mashupClick,yi=parseInt(n.options.maxZoom),pi=parseInt(n.options.minZoom),wi=n.options.overviewMapControl,bi=n.options.overviewMapControlOpened,ki=n.options.panControl,di=n.options.poiZoom,yr=n.options.radius,gi=n.options.rotateControl,nr=n.options.scaleControl,tr=n.options.scrollwheel,ct=n.options.search,ir=n.height,rr=n.width,ur=n.options.streetViewControl,fr=n.options.style,er=parseInt(n.options.tilt),lt=n.options.to,or=n.options.tooltips,sr=n.options.traffic,hr=n.options.transit,cr=n.options.zoomControl,lr=parseInt(n.options.zoomControlStyle,10),r=this,p,w,b,e=null,k,at,d,l,g,ut=null,t=null,u=null,ft,i=[],vt=!1,a;this.display=function(){var i,s;if(k=jQuery("#"+f+"_dialog"),at=jQuery("#"+f+"_directions"),d=jQuery("#"+f+"_layout"),l=document.getElementById(f),g=jQuery("#"+f+"_poi_list"),!l)return mapp.lib.log("MapPress: Missing map name or container for map: "+f);if(typeof google=="undefined")return mapp.lib.alert("MapPress: Google API not loaded");if(!mappl10n.options.apiKey)return mapp.lib.alert("MapPress: Google API Key missing, please check MapPress settings");if(t=new google.maps.Map(l,{mapTypeId:"roadmap",zoom:1}),a=google.maps.Marker.MAX_ZINDEX,at.append(jQuery("#"+f+"_directions_").contents()),g.append(jQuery("#"+f+"_poi_list_").contents()),ft=new mapp.Places(null,{gmap:t}),google.maps.event.addListener(ft,"search",function(n){r.search(n)}),!c&&(c=["roadmap","satellite","terrain","hybrid"],mappl10n.styles))for(i in mappl10n.styles)c.push(i);if(o=o?new google.maps.LatLng(n.center.lat,n.center.lng):null,s={backgroundColor:"transparent",draggable:ui,keyboardShortcuts:ht,mapTypeControl:li,mapTypeControlOptions:{style:ai,mapTypeIds:c},maxZoom:yi,minZoom:pi,overviewMapControl:wi,overviewMapControlOptions:{opened:bi},panControl:ki,rotateControl:gi,scaleControl:nr,scrollwheel:tr,streetViewControl:ur,tilt:er,zoomControl:cr,zoomControlOptions:{style:lr}},t.setOptions(s),ar(),r.setMapTypeId(pt),vr(),h=="ib"?(mapp.InfoBox.prototype=new google.maps.OverlayView,u=new mapp.InfoBox):u=new google.maps.InfoWindow,h=="ib"&&(ht=!1),ut=new mapp.Geocoder(r,ci,ti),ot!="none"&&(e=new mapp.Directions(r,ot,ut,ii,ri)),kt&&jQuery(window).resize(function(){r.resize()}),nt){ct?ft.parse(ct):this.ajaxQuery();return}google.maps.event.addListenerOnce(t,"idle",function(){r.initCenter()});this.setPois(n.pois)};this.getQuery=function(){return nt};this.setQuery=function(n){nt=n};this.setDialog=function(n){n=n?n:'<span class="mapp-spinner"><\/span>'+mappl10n.loading;n='<div class="mapp-dialog-inner">'+n+"<\/div>";jQuery(k).html(n);jQuery(k).show()};this.hideDialog=function(){jQuery(k).hide()};this.setPoiList=function(n){typeof n=="string"?g.html(n):g.append(n)};this.getOptions=function(){return bt};this.getResized=function(){return vt};this.show=function(){d.show();this.display()};this.closeInfoWindow=function(){u.close()};this.openDirections=function(n,t,i){var r,u;typeof n=="object"?(r=n.address?n.address:n.getPosition().toUrlValue(),n.open()):r=n;typeof t=="object"?(u=t.address?t.address:t.getPosition().toUrlValue(),t.open()):u=t;e.open(r,u,i)};this.setMapTypeId=function(n){n=n&&jQuery.inArray(n,c)!=-1?n:c[0];t.setMapTypeId(n)};this.setCenter=function(n,i){t.setCenter(new google.maps.LatLng(n,i))};this.setZoom=function(n){t.setZoom(n)};this.getPoiZoom=function(){return parseInt(di)};this.poiToFront=function(n){a++;n.setZIndex(a)};this.getMap=function(){return t};this.getGeocoder=function(){return ut};this.getName=function(){return f};this.setName=function(n){f=n};this.getMapid=function(){return s};this.setMapid=function(n){s=n};this.getTitle=function(){return tt};this.setTitle=function(n){tt=n};this.getWidth=function(){return y};this.setWidth=function(n){y=n};this.getHeight=function(){return v};this.setHeight=function(n){v=n};this.getInfoWindow=function(){return u};this.getEditable=function(){return fi};this.getTooltips=function(){return or};this.getPoi=function(n){return typeof n=="string"&&(n=parseInt(n,10)),i[n]};this.getPoiById=function(n){for(var t=0;t<i.length;t++)if(i[t].postid==n)return i[t];return null};this.getPois=function(){return i};this.insertPoi=function(n){i.unshift(n);n.setMap(this)};this.addPoi=function(n){i.push(n);n.setMap(this)};this.removePoi=function(n){var t=jQuery.inArray(n,i);t!=-1&&(i[t].setMap(null),i.splice(t,1))};this.setPois=function(n){for(var r,t=0;t<i.length;t++)i[t].setMap(null);for(i=[],t=0;t<n.length;t++)r=new mapp.Poi,r.fromJSON(n[t]),i.push(r),r.setMap(this),r.setZIndex(a+n.length-1-t);a+=n.length-1};this.showPois=function(){for(var n=0;n<i.length;n++)i[n].setVisible(!0)};this.hidePois=function(){for(var n=0;n<i.length;n++)i[n].setVisible(!1)};this.sortPois=function(n){for(var u,t=Array(),r=0;r<n.length;r++){if(u=parseInt(n[r]),isNaN(u))return!1;t.push(i[u])}return t.length!=i.length?!1:(i=t,!0)};this.openPoi=function(n,t){var u,i;if(h&&h!="none"){if(vi=="post"&&n.postid&&n.url){window.location.assign(n.url);return}i={html:null};google.maps.event.trigger(r,"poicontent",n,i);u=i.content?i.content:t&&typeof t.featureData!="undefined"?t.featureData.infoWindowHtml:n.html;this.openInfoWindow(n,u,t)}};this.openInfoWindow=function(n,i,f){(e&&e.close(),h&&h!="none")&&(this.poiToFront(n),u.close(),u.setContent(i),google.maps.event.addListenerOnce(u,"domready",function(){google.maps.event.trigger(r,"poidomready",n)}),n.type=="kml"&&f?(u.setOptions({pixelOffset:f.pixelOffset,position:f.latLng}),u.open(t)):n.type?(u.setOptions({position:n.getPosition()}),u.open(t)):u.open(t,n.overlay))};this.closeInfoWindow=function(){u.close()};this.resize=function(n,i){var r=t.getCenter();n&&i&&(jQuery(l).width(n),jQuery(l).height(i),y=n,v=i);google.maps.event.trigger(t,"resize");t.setCenter(r);vt=!0;return};this.initCenter=function(){if(this.closeInfoWindow(),google.maps.event.addListenerOnce(t,"idle",function(){r.initWindows()}),o&&o.lat()&&o.lng())t.setCenter(o),t.setZoom(it);else{var n=it?it:!0;r.autoCenter(n)}};this.initWindows=function(){var i,n,t;e&&oi?(n=jQuery.trim(st),t=st==null&<==null?"0":jQuery.trim(lt),n=jQuery.isNumeric(n)?this.getPoi(n):n,t=jQuery.isNumeric(t)?this.getPoi(t):t,typeof n=="object"?n.center(!1):typeof t=="object"&&t.center(!1),r.openDirections(n,t,!1)):rt&&(i=jQuery.isNumeric(rt)?r.getPoi(rt):r.getPoi(0),i&&i.open())};this.autoCenter=function(n){var r,u,f;if(i.length==0){this.setCenter(0,0);typeof n=="number"?t.setZoom(n):t.setZoom(1);return}if(i.length==1){i[0].center(n);return}for(r=new google.maps.LatLngBounds,u=0;u<i.length;u++)f=i[u].getBounds(),r=f?r.union(f):r.extend(i[u].getPosition());if(n===!1){t.setCenter(r.getCenter());return}if(typeof n=="number"){t.setCenter(r.getCenter());t.setZoom(n);return}t.fitBounds(r)};this.reset=function(){this.initCenter()};this.bigger=function(n,t,i){e&&e.close();this.closeInfoWindow();jQuery(n).text()==t?(jQuery(n).text(i),jQuery(d).width(ni),this.resize("100%",gt)):(jQuery(n).text(t),jQuery(d).width(rr),this.resize("100%",ir))};this.toJSON=function(){return{center:{lat:t.getCenter().lat(),lng:t.getCenter().lng()},height:v,mapid:s,mapTypeId:t.getMapTypeId(),metaKey:wt,pois:i,title:tt,width:y,zoom:t.getZoom()}};this.ajaxSave=function(n){var t,i;t=typeof Prototype!="undefined"&&typeof Object.toJSON!="undefined"?Object.toJSON(r):t=JSON.stringify(r);i={action:"mapp_save",map:t,postid:mappl10n.options.postid};mapp.Ajax("POST",i,function(t){t.status=="OK"&&(s=t.data.mapid,n(t.data))})};this.ajaxDelete=function(n){s||n();var t={action:"mapp_delete",mapid:s};mapp.Ajax("POST",t,function(t){t.status=="OK"&&n()})}};mapp.Map.ajaxCreate=function(n,t,i){mapp.Ajax("GET",{action:"mapp_create"},function(r){if(r.status=="OK"){jQuery.extend(r.data.map.options,t);r.data.map.name=n;var u=new mapp.Map(r.data.map);i(u)}})};mapp.Map.ajaxGet=function(n,t,i,r){var u={action:"mapp_get",mapid:n};mapp.Ajax("GET",u,function(n){if(n.status=="OK"){jQuery.extend(n.data.map.options,i);n.data.map.name=t;var u=new mapp.Map(n.data.map);r(u)}})};mapp.Map.ajaxDelete=function(n,t){var i={action:"mapp_delete",mapid:n};mapp.Ajax("POST",i,function(n){n.status=="OK"&&t&&t()})};mapp.Ajax=function(n,t,i){jQuery.ajax({type:n,cache:!1,url:mappl10n.options.ajaxurl,data:t,success:function(n){if(n.output&&(mappl10n.options.admin||mappl10n.options.debug)&&alert("AJAX Error\r\n"+n.output),n.status=="OK"){i(n);return}(mappl10n.options.admin||mappl10n.options.debug)&&(typeof n=="object"?alert("AJAX Error\r\n"+n.status):alert("AJAX Error\r\n"+n))},error:function(n,t,i){typeof i!="undefined"&&i!=""&&mappl10n.ajaxErrors&&alert("AJAX ERROR\r\nStatus="+t+"\r\nError="+i+"\r\nResponseText="+n.responseText)}})}}(jQuery);mapp=window.mapp||{};mapp.Directions=function(n,t,i,r,u){function p(){jQuery(".mapp-dir-swap",f).click(function(){var n=jQuery(".mapp-dir-daddr",f).val(),t=jQuery(".mapp-dir-saddr",f).val();return jQuery(".mapp-dir-saddr",f).val(n),jQuery(".mapp-dir-daddr",f).val(t),jQuery(".mapp-dir-get",f).click(),!1});jQuery(".mapp-dir-get",f).click(function(){return s.getDirections(),!1});jQuery(".mapp-dir-print",f).click(function(){s.printDirections()});jQuery(".mapp-dir-close",f).click(function(){return s.close(),!1});jQuery(".mapp-travelmode",f).click(function(){return jQuery(".mapp-travelmode",f).removeClass("mapp-travelmode-on"),jQuery(this).addClass("mapp-travelmode-on"),s.getDirections(),!1});jQuery(".mapp-myloc",f).click(function(){return c.geolocate(function(n){n?(jQuery(".mapp-dir-saddr",f).val("("+n.coords.latitude+", "+n.coords.longitude+")"),jQuery(".mapp-dir-get",f).click()):alert(mappl10n.no_geolocate)}),!1})}function w(n,t,i){var u=jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-walk")?google.maps.DirectionsTravelMode.WALKING:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-transit")?google.maps.DirectionsTravelMode.TRANSIT:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-bike")?google.maps.DirectionsTravelMode.BICYCLING:google.maps.DirectionsTravelMode.DRIVING;var o={travelMode:u,transitOptions:{departureTime:null},provideRouteAlternatives:!0,origin:n,destination:t,unitSystem:y},r=jQuery(".mapp-dir-renderer",f).get(0);jQuery(".mapp-dir-renderer",f).empty();l||(l=new google.maps.DirectionsService);l.route(o,function(n,t){switch(t){case google.maps.DirectionsStatus.OK:h.hidePois();e?(e.setDirections(n),e.setMap(a),e.setPanel(r)):e=new google.maps.DirectionsRenderer({map:a,panel:r,directions:n,hideRouteList:!1,draggable:!0});break;case google.maps.DirectionsStatus.NOT_FOUND:alert(mappl10n.dir_not_found);break;case google.maps.DirectionsStatus.ZERO_RESULTS:alert(mappl10n.dir_zero_results);break;default:alert(mappl10n.dir_default+t)}i()})}var h=n,v=t,c=i,o=r,y=u,f=jQuery("#"+n.getName()+"_directions"),e,l,a=n.getMap(),s=this;o.toLowerCase().indexOf("http")==-1&&(o="https://"+o);p();this.open=function(n,t,i){if(v=="google"){this.openGoogle(n,t);return}jQuery(f).show();jQuery(".mapp-dir-saddr",f).val(n);jQuery(".mapp-dir-daddr",f).val(t);(i||typeof i=="undefined")&&(jQuery(".mapp-dir-get",f).focus(),jQuery(".mapp-dir-saddr",f).focus())};this.close=function(){jQuery(f).hide();e&&(e.setPanel(null),e.getMap()&&(e.setMap(null),h.showPois()))};this.getDirections=function(){h.closeInfoWindow();jQuery(".mapp-spinner",f).show();var n=jQuery(".mapp-dir-saddr",f),t=jQuery(".mapp-dir-daddr",f),i=jQuery(".mapp-dir-saddr-err",f),r=jQuery(".mapp-dir-daddr-err",f);c.geocodeField(n,i,function(n){c.geocodeField(t,r,function(t){n&&t?w(n,t,function(){jQuery(".mapp-spinner",f).hide();return}):jQuery(".mapp-spinner",f).hide()})})};this.printDirections=function(){var t,n=jQuery(".mapp-travelmode-on > span",f);t=n.hasClass("mapp-dir-walk")?"w":n.hasClass("mapp-dir-bike")?"b":n.hasClass("mapp-dir-transit")?"r":"d";this.openGoogle(jQuery(".mapp-dir-saddr",f).val(),jQuery(".mapp-dir-daddr",f).val(),t)};this.openGoogle=function(n,t,i){var r=o;r+="?saddr="+encodeURIComponent(n);r+="&daddr="+encodeURIComponent(t);i&&(r+="&dirflg="+i);window.open(r)}};mapp=window.mapp||{};mapp.Geocoder=function(n,t,i){function f(n,t){jQuery(n).removeClass("mapp-error");jQuery(t).hide()}function e(n,t,i){jQuery(n).addClass("mapp-error");jQuery(t).html(i);jQuery(t).show()}var o,u,s,c,h,r;o=i;c=t;h=n;s=h.getMap();r=this;this.geocode=function(n,t){typeof n=="string"&&n.substring(0,1)=="("&&(split=n.replace(/\(|\)/g,"").split(","),n=new google.maps.LatLng(split[0],split[1]));var i=n instanceof google.maps.LatLng?{location:n}:{address:n,region:o,bounds:s.getBounds()};u||(u=new google.maps.Geocoder);u.geocode(i,function(n,i){if(n){for(var r=0;r<n.length;r++)n[r].formatted_address==""&&n.splice(r,1);t(n[0],i)}else t(null,i)})};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){f(n,t);checkAddress(n,t,jQuery(n).val(),function(r){if(!r){e(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,i,u,o){jQuery(n).keypress(function(i){i.which==13&&(checkAddress(n,t,jQuery(n).val(),o),i.preventDefault())});jQuery(i).click(function(){return checkAddress(n,t,jQuery(n).val(),o),!1});jQuery(u).click(function(){return f(n,t),r.geolocate(function(i){if(i){var r="("+i.coords.latitude+", "+i.coords.longitude+")";jQuery(n).val("");checkAddress(n,t,r,o)}else e(n,t,mappl10n.no_geolocate);return}),!1})};checkAddress=function(n,t,i,u){if(f(n,t),i=jQuery.trim(i),i==""){u(null);return}var o=r.stringToLatLng(i);if(o){u(o);return}if(i.substring(0,4)=="http"){u(i);return}r.geocode(i,function(i,r){if(!i||r!=google.maps.GeocoderStatus.OK){e(n,t,mappl10n.no_address);u(null);return}u(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||{};mapp.InfoBox=function(){var u,f,n,i,t,r=this;this.setContent=function(n){u=n};this.onAdd=function(){n=jQuery("<div class='mapp-ib'><div class='mapp-ib-close'>X<\/div><\/div>");t=jQuery("<div class='mapp-ib-tip'><\/div>");typeof u=="string"?jQuery(n).append(u):jQuery(n).append(jQuery(u));jQuery("body").append(n);jQuery("body").append(t);jQuery(".mapp-ib-close",n).click(function(){r.close()});jQuery(window).resize(function(){r.close()})};this.draw=function(){var c=jQuery(n).is(":visible"),u=r.getProjection().fromLatLngToContainerPixel(i),f,o,s;if(u.x=parseInt(u.x),u.y=parseInt(u.y),f=jQuery(this.getMap().getDiv()),u.x>f.width()||u.x<0||u.y>f.height()||u.y<0){jQuery(n).hide();jQuery(t).hide();return}jQuery(n).show();jQuery(t).show();o=f.offset().left+u.x;s=f.offset().top+u.y-32;jQuery(t).offset({top:s-t.outerHeight()-2,left:o-parseInt(t.outerWidth()/2)});var e=o-parseInt(n.outerWidth()/2),l=s-n.outerHeight()-t.outerHeight(),h=jQuery(document).width();e+n.outerWidth()>h&&(e=Math.max(h-n.outerWidth(),o-n.outerWidth()+parseInt(t.outerWidth()/2)));e<0&&(e=0);jQuery(n).offset({top:l,left:e});c||google.maps.event.trigger(this,"domready")};this.onRemove=function(){jQuery(n).remove();jQuery(t).remove()};this.setPosition=function(n){i=n};this.open=function(n,t){f=n;t&&(i=typeof t.getPosition=="function"?t.getPosition():t.getBounds().getCenter());this.setMap(f);this.disableAutoPan&&n.getBounds().contains(i)||f.panTo(i);google.maps.event.addListenerOnce(n,"drag",function(){r.close()});google.maps.event.addListenerOnce(n,"click",function(){r.close()})};this.close=function(){google.maps.event.trigger(this,"closeclick");this.setMap(null)}};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}t.spinner&&mapp.lib.spinner(t.spinner,!0);n.ajax({type:t.type,cache:!1,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,i,u){if(mapp.lib.spinner(t.spinner,!1),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){mapp.lib.spinner(t.spinner,!1);typeof u!="undefined"&&u!=""&&r.alert("AJAX ERROR\r\nTextStatus="+i+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},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},alert:function(n){mappl10n.options.admin||mappl10n.options.debug?alert(n):window.console&&console.log(n)},log:function(n){window.console&&console.log(n)},spinner:function(t,i){return i=typeof i=="undefined"?t.hasClass("mapp-spinner"):i,i?(n(t).addClass("mapp-spinner"),n(t).prepend('<div class="mapp-spinner-overlay"><\/div><div class="mapp-spinner-icon"><\/div>')):(n(t).removeClass("mapp-spinner"),n(".mapp-spinner-overlay, .mapp-spinner-icon",t).remove()),t},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var r=n.scrollTop(),i=t.position().top,u=i+t.height();i<r?n.scrollTop(i):u>r&&n.scrollTop(u)}}};mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("$ version is too old: "+n.fn.$);n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-canvas",r).each(function(){var i=n(this).attr("id"),t=window[i];t.getResized()||(t.resize(),t.initCenter())})})}(jQuery);mapp=window.mapp||{};+function(n){mapp.Places=function(t,i){var u=this,r;(this.sel=n(t),this.opts=n.extend({gmap:null,types:[]},i),r=n('<div style="display:none">').appendTo("body"),this.placesService=new google.maps.places.PlacesService(r.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.gmap),google.maps.event.addListener(this.autocomplete,"place_changed",function(){u.parse(this.getPlace())}))};mapp.Places.prototype={parse:function(t){var i,u,r=this;if(i=t&&t.name?n.trim(t.name):n.trim(t),this.error(!1),this.sel.blur(),!i)return this.error(!0);if(t&&t.geometry)return google.maps.event.trigger(r,"search",t);if(u=this.parseLatLng(t))return google.maps.event.trigger(r,"search",u);if(i=="geolocate")return this.geolocate();if(i.substring(0,4)=="http")return u=i=="kml"?"http://kml-samples.googlecode.com/svn/trunk/kml/Placemark/placemark.kml":i,google.maps.event.trigger(r,"search",u);this.autocompleteService.getPlacePredictions({input:i,types:this.opts.types,bounds:this.opts.gmap.getBounds()},function(n,t){if(t!="OK"||n==null||n.length==0)return r.error(!0);r.placesService.getDetails({placeId:n[0].place_id},function(n,t){if(t!="OK"||!n||!n.geometry)return r.error(!0);google.maps.event.trigger(r,"search",n)})})},parseLatLng:function(t){var i,r;return t instanceof google.maps.LatLng?i=t:t&&t.lat&&t.lng?i=new google.maps.LatLng(t.lat,t.lng):(name=t&&t.name?n.trim(t.name):n.trim(t),r=name.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(){var n=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){var i=new google.maps.LatLng(t.coords.latitude,t.coords.longitude),r={name:i.toUrlValue(),geometry:{location:i}};n.set("");google.maps.event.trigger(n,"search",r)},function(){alert(mappl10n.no_geolocate)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})},set:function(n){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);this.focus()}}}(jQuery);mapp=window.mapp||{};mapp.Poi=function(){this.address=null;this.body=null;this.html=null;this.iconid=null;this.map=null;this.overlay=null;this.postid=null;this.title="";this.url=null;this.type=null;this.viewport=null;for(var n in arguments[0])typeof arguments[0][n]!="undefined"&&(this[n]=arguments[0][n])};mapp.Poi.prototype={fromJSON:function(n){var u,f,i,o,t,r,s,e;this.address=n.correctedAddress;this.body=n.body;this.correctedAddress=n.correctedAddress;this.html=n.html;this.iconid=n.iconid;this.postid=n.postid;this.title=n.title;this.type=n.type;this.url=n.url;n.viewport&&n.viewport.sw&&n.viewport.ne&&(u=new google.maps.LatLng(n.viewport.sw.lat,n.viewport.sw.lng),f=new google.maps.LatLng(n.viewport.ne.lat,n.viewport.ne.lng),this.viewport=u.lat()==0&&u.lng()==0&&f.lat()==0&&f.lng()==0?null:new google.maps.LatLngBounds(u,f));i=[];o=[];switch(this.type){case"polygon":if(n.poly&&n.poly.paths)for(t=0;t<n.poly.paths.length;t++){for(i=[],r=0;r<n.poly.paths[t].length;r++)i.push(new google.maps.LatLng(n.poly.paths[t][r].lat,n.poly.paths[t][r].lng));o.push(new google.maps.MVCArray(i))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(n.poly);break;case"polyline":if(n.poly&&n.poly.path)for(t=0;t<n.poly.path.length;t++)i.push(new google.maps.LatLng(n.poly.path[t].lat,n.poly.path[t].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(i)});this.setColors(n.poly);break;case"circle":e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Circle({center:e,radius:parseFloat(n.poly.radius)});this.setColors(n.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(n.poly);break;case"kml":s=n.kml&&n.kml.url?n.kml.url:"";this.overlay=new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Marker({position:e})}},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},setTooltip:function(n){this.map.getTooltips()&&(this.type||(n?this.overlay.setTitle(n):this.overlay.setTitle(jQuery("<div>").html(this.title).text())))},setMap:function(n){var t=this;if(google.maps.event.clearInstanceListeners(this.overlay),n==null){this.overlay.setMap(null);return}this.type=="kml"&&(google.maps.event.addListener(this.overlay,"defaultviewport_changed",function(){t.viewport=t.overlay.getDefaultViewport()}),google.maps.event.addListener(this.overlay,"status_changed",function(){var n=t.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)}));this.map=n;this.overlay.setMap(n.getMap());this.setEditable(this.map.getEditable());this.setIcon(this.iconid);this.setTooltip();google.maps.event.addListener(this.overlay,"click",function(n){t.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)})))},getZIndex:function(){return this.type?this.overlay.zIndex:this.overlay.getZIndex()},setZIndex:function(n){this.type?this.overlay.zIndex=n:this.overlay.setZIndex(n)},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(n){var t=this.map.getMap(),i;if(!n){t.setCenter(this.getPosition());return}if(typeof n=="number"){t.setCenter(this.getPosition());t.setZoom(n);return}i=this.getBounds();i?(t.fitBounds(i),t.setCenter(this.getPosition())):(t.setCenter(this.getPosition()),t.setZoom(this.map.getPoiZoom()))},open:function(n){this.map.openPoi(this,n)},zoomIn:function(){var n=this.map.getMap(),r=n.getZoom(),t=this.getBounds(),i=Math.min(r+2,21);t&&n.fitBounds(t);i>n.getZoom()&&n.setZoom(i);n.setCenter(this.getPosition())},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;if(!this.map.getEditable()&&this.viewport)return this.viewport;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?this.viewport:null}return n},getPosition:function(){if(this.type){var n=this.getBounds();return n?n.getCenter():new google.maps.LatLng(0,0)}return this.overlay.getPosition()},click:function(){google.maps.event.trigger(this.overlay,"click")}};+function(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop(),t=new mapp.Map(n);window[n.name]=t;t.display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappEditor=new mapp.Media:mapp.load()
|
1 |
+
var mapp=window.mapp||{};+function(n){mapp.Map=function(t){function et(n,t){n=n.split(" ");for(var i=0;i<n.length;i++)google.maps.event.addListener(u,n[i],t)}function tt(t,i){i=typeof i!="undefined"?i:!(u.getMapTypeId()==t);this.editable&&i&&(n.inArray(t,["roadmap","satellite","terrain","hybrid"])!=-1||typeof mappl10n.options.styles[t]!="undefined")||(t="roadmap");u.setMapTypeId(t)}function c(t){var e,r;if(i.menu.toggle(t),i.menu.is(":visible")){n("[data-mapp-type]",i.menu).removeClass("mapp-active");n('[data-mapp-type="'+u.getMapTypeId()+'"]',i.menu).addClass("mapp-active");for(layer in o)e=!!o[layer].getMap(),n('[data-mapp-layer="'+layer+'"]',i.menu).toggleClass("mapp-active",e);r=!!(f.center&&f.zoom);n('[data-mapp-action="viewport-set"]',i.menu).toggle(!r);n('[data-mapp-action="viewport-reset"]',i.menu).toggle(r)}}function ot(){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[v]!="undefined"&&u.setOptions({styles:n[v]})}function st(){var t;i.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))});i.menu.on("mouseleave",function(){t=setTimeout(function(){c(!1)},700)});i.menu.on("mouseenter",function(){clearTimeout(t)})}function ht(){var i,t,r;for(o={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer},f.layers=n.makeArray(f.layers),i=0;i<f.layers.length;i++)t=n.trim(f.layers[i]),r=t.split(".").pop(),o[t]?it(t):r=="kml"||r=="kmz"?o[t]=new google.maps.KmlLayer({map:u,preserveViewport:!0,url:t}):r=="json"&&(o[t]=new google.maps.Data({map:u}).loadGeoJson(t))}function it(t,i){i=typeof i!="undefined"?i:o[t].getMap()==null;n.each(["traffic","bicycling","transit"],function(n,t){o[t].setMap(null)});t&&o[t].setMap(i?u:null)}var l=t.height,a=t.mapid,v=t.mapTypeId?t.mapTypeId:"roadmap",rt=t.metaKey,e=t.name,ct=t.options,k=t.query,y=t.title,p=t.width,lt=t.options.adaptive,d=t.options.from,ut=t.options.initialOpenDirections,w=t.options.initialOpenInfo,at=t.options.mashupClick,vt=t.options.radius,g=t.options.search,nt=t.options.to;this.center=t.center;this.editable=t.options.editable;this.iw=null;this.layers=t.options.layers;this.places=null;this.poi;this.zoom=t.zoom?parseInt(t.zoom,10):null;var f=this,i={},o={},s=null,b=null,u=null,r=[],ft=!1,h;this.display=function(){if(i.layout=n("#"+e+"_layout"),i.canvas=n("#"+e),i.dir=n("#"+e+"_directions"),i.list=n("#"+e+"_poi_list"),i.dialog=n("#"+e+"_dialog"),i.controls=n(".mapp-controls","#"+e+"_controls"),i.menu=n(".mapp-menu",i.controls),!i.canvas.length)return mapp.lib.log("MapPress: Missing map name or container for map: "+e);u=new google.maps.Map(i.canvas.get(0),{mapTypeId:"roadmap",zoom:1});h=google.maps.Marker.MAX_ZINDEX;i.dir.append(n("#"+e+"_directions_").contents());i.list.append(n("#"+e+"_poi_list_").contents());this.places=new mapp.Places(null,{gmap:u});google.maps.event.addListener(this.places,"search",function(n){f.search(n)});var o={backgroundColor:"transparent",fullscreenControl:!1,keyboardShortcuts:!1,mapTypeControl:!0,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},scaleControl:!0,scrollwheel:!1,streetViewControl:!(this.editable||k)};u.setOptions(o);ot();st();ht();tt(v,!0);i.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))});i.list.on("click","tr",function(t){if(!n(t.target).is("a")){var u=n("tr",i.list).index(n(this));f.openInfoWindow(r[u])}});if(et("click drag",function(){f.closeInfoWindow()}),mappl10n.options.iwType=="ib"||this.editable?this.iw=new mapp.InfoBox(this):mappl10n.options.iwType=="iw"&&(this.iw=new google.maps.InfoWindow),b=new mapp.Geocoder(f.getMap()),mappl10n.options.directions!="none"&&(s=new mapp.Directions(f,mappl10n.options.directions,b,mappl10n.options.directionsServer,mappl10n.options.directionsUnits)),k){g?this.places.parse(g):this.ajaxQuery();return}google.maps.event.addListenerOnce(u,"idle",function(){f.initCenter()});this.setPois(t.pois);this.renderList()};this.action=function(n,t,i){switch(n){case"center":c(!1);this.closeInfoWindow();this.recenter();break;case"geolocate":this.places.geolocate();break;case"layer":it(t);c(!1);break;case"menu":c(t);break;case"open":var f=i.attr("data-mapp-id");this.openInfoWindow(r[f]);break;case"type":tt(t);break;case"viewport-set":this.center=u.getCenter();this.zoom=u.getZoom();break;case"viewport-reset":this.center=this.zoom=null;this.recenter();break;default:return!0}};this.setDialog=function(n){n=n?n:'<span class="mapp-spinner"><\/span>'+mappl10n.loading;n='<div class="mapp-dialog-inner">'+n+"<\/div>";i.dialog.html(n);i.dialog.show()};this.hideDialog=function(){i.dialog.hide()};this.show=function(){i.layout.show();this.display()};this.closeInfoWindow=function(){this.iw.close()};this.openDirections=function(n,t,i){var r,u;typeof n=="object"?(r=n.address?n.address:n.getPosition().toUrlValue(),n.open()):r=n;typeof t=="object"?(u=t.address?t.address:t.getPosition().toUrlValue(),t.open()):u=t;s.open(r,u,i)};this.poiSelect=function(t){if(this.poi=t,n("[data-mapp-id]",i.list).removeClass("mapp-selected"),t){var f=n.inArray(t,r),u=n('[data-mapp-id="'+f+'"]',i.list);u.addClass("mapp-selected");mapp.lib.scrollTo(i.list,u);h++;t.setZIndex(h)}};this.getMap=function(){return u};this.getGeocoder=function(){return b};this.getName=function(){return e};this.getMapid=function(){return a};this.getTitle=function(){return y};this.setTitle=function(n){y=n};this.getWidth=function(){return p};this.getHeight=function(){return l};this.renderList=function(){this.editable&&(i.list.html(mapp.lib.template("poi-list",{pois:r})),google.maps.event.trigger(this,"rendered"))};this.getPoi=function(n){return typeof n=="string"&&(n=parseInt(n,10)),r[n]};this.getPoiById=function(n){for(var t=0;t<r.length;t++)if(r[t].postid==n)return r[t];return null};this.getPois=function(){return r};this.addPoi=function(n){r.unshift(n);n.setMap(this);f.renderList();this.poiSelect(n)};this.removePoi=function(t){var i=n.inArray(t,r);i!=-1&&(r[i].setMap(null),r.splice(i,1),f.renderList())};this.setPois=function(n){for(var i,t=0;t<r.length;t++)r[t].setMap(null);for(r=[],t=0;t<n.length;t++)i=new mapp.Poi,i.fromJSON(n[t]),r.push(i),i.setMap(this),i.setZIndex(h+n.length-1-t);h+=n.length-1};this.showPois=function(){for(var n=0;n<r.length;n++)r[n].setVisible(!0)};this.hidePois=function(){for(var n=0;n<r.length;n++)r[n].setVisible(!1)};this.sortPois=function(n){for(var u,t=Array(),i=0;i<n.length;i++){if(u=parseInt(n[i]),isNaN(u))return!1;t.push(r[u])}if(t.length!=r.length)return!1;r=t;this.renderList()};this.openInfoWindow=function(n,t){if(this.iw){if(s&&s.close(),this.iw.close(),this.poiSelect(n),!this.editable){if(mappl10n.options.mashupClick=="post"&&n.postid&&n.url){window.location.assign(n.url);return}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.resize=function(n,t){var r=u.getCenter();n&&t&&(i.canvas.width(n),i.canvas.height(t),p=n,l=t);google.maps.event.trigger(u,"resize");u.setCenter(r);ft=!0;return};this.initCenter=function(){this.closeInfoWindow();google.maps.event.addListenerOnce(u,"idle",function(){f.initWindows()});this.recenter()};this.initWindows=function(){var r,t,i;s&&ut?(t=n.trim(d),i=d==null&&nt==null?"0":n.trim(nt),t=n.isNumeric(t)?this.getPoi(t):t,i=n.isNumeric(i)?this.getPoi(i):i,typeof t=="object"?t.center(!1):typeof i=="object"&&i.center(!1),f.openDirections(t,i,!1)):w&&(r=n.isNumeric(w)?f.getPoi(w):f.getPoi(0),r&&r.open())};this.recenter=function(){var f=this.center?new google.maps.LatLng(this.center.lat,this.center.lng):null,t=this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null,n,i;if(f){u.setCenter(f);u.setZoom(t?t:1);return}if(r.length==0){u.setCenter(new google.maps.LatLng(0,0));u.setZoom(1);return}if(r.length==1){r[0].center(t);return}for(bounds=new google.maps.LatLngBounds,n=0;n<r.length;n++)i=r[n].getBounds(),bounds=i?bounds.union(i):bounds.extend(r[n].getPosition());u.fitBounds(bounds)};this.toJSON=function(){for(var t={center:this.center,height:l,mapid:a,mapTypeId:u.getMapTypeId(),metaKey:rt,pois:[],title:y,width:p,zoom:this.zoom},n=0;n<r.length;n++)t.pois.push(r[n].toJSON());return t};this.ajaxSave=function(n){mapp.lib.ajax({type:"POST",data:{action:"mapp_save",map:this.toJSON(),postid:mappl10n.options.postid},callback:function(t){t.status=="OK"&&(a=t.data.mapid,n(t.data))}})}};mapp.Map.ajaxCreate=function(t,i,r){mapp.lib.ajax({type:"GET",data:{action:"mapp_create"},callback:function(u){if(u.status=="OK"){n.extend(u.data.map.options,i);u.data.map.name=t;var f=new mapp.Map(u.data.map);r(f)}}})};mapp.Map.ajaxGet=function(t,i,r,u){mapp.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:t},callback:function(t){if(t.status=="OK"){n.extend(t.data.map.options,r);t.data.map.name=i;var f=new mapp.Map(t.data.map);u(f)}}})};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||{};mapp.Directions=function(n,t,i,r,u){function p(){jQuery(".mapp-dir-swap",f).click(function(){var n=jQuery(".mapp-dir-daddr",f).val(),t=jQuery(".mapp-dir-saddr",f).val();return jQuery(".mapp-dir-saddr",f).val(n),jQuery(".mapp-dir-daddr",f).val(t),jQuery(".mapp-dir-get",f).click(),!1});jQuery(".mapp-dir-get",f).click(function(){return s.getDirections(),!1});jQuery(".mapp-dir-print",f).click(function(){s.printDirections()});jQuery(".mapp-dir-close",f).click(function(){return s.close(),!1});jQuery(".mapp-travelmode",f).click(function(){return jQuery(".mapp-travelmode",f).removeClass("mapp-travelmode-on"),jQuery(this).addClass("mapp-travelmode-on"),s.getDirections(),!1});jQuery(".mapp-myloc",f).click(function(){return c.geolocate(function(n){n?(jQuery(".mapp-dir-saddr",f).val("("+n.coords.latitude+", "+n.coords.longitude+")"),jQuery(".mapp-dir-get",f).click()):alert(mappl10n.no_geolocate)}),!1})}function w(n,t,i){var u=jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-walk")?google.maps.DirectionsTravelMode.WALKING:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-transit")?google.maps.DirectionsTravelMode.TRANSIT:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-bike")?google.maps.DirectionsTravelMode.BICYCLING:google.maps.DirectionsTravelMode.DRIVING;var o={travelMode:u,transitOptions:{departureTime:null},provideRouteAlternatives:!0,origin:n,destination:t,unitSystem:y},r=jQuery(".mapp-dir-renderer",f).get(0);jQuery(".mapp-dir-renderer",f).empty();l||(l=new google.maps.DirectionsService);l.route(o,function(n,t){switch(t){case google.maps.DirectionsStatus.OK:h.hidePois();e?(e.setDirections(n),e.setMap(a),e.setPanel(r)):e=new google.maps.DirectionsRenderer({map:a,panel:r,directions:n,hideRouteList:!1,draggable:!0});break;case google.maps.DirectionsStatus.NOT_FOUND:alert(mappl10n.dir_not_found);break;case google.maps.DirectionsStatus.ZERO_RESULTS:alert(mappl10n.dir_zero_results);break;default:alert(mappl10n.dir_default+t)}i()})}var h=n,v=t,c=i,o=r,y=u,f=jQuery("#"+n.getName()+"_directions"),e,l,a=n.getMap(),s=this;o.toLowerCase().indexOf("http")==-1&&(o="https://"+o);p();this.open=function(n,t,i){if(v=="google"){this.openGoogle(n,t);return}jQuery(f).show();jQuery(".mapp-dir-saddr",f).val(n);jQuery(".mapp-dir-daddr",f).val(t);(i||typeof i=="undefined")&&(jQuery(".mapp-dir-get",f).focus(),jQuery(".mapp-dir-saddr",f).focus())};this.close=function(){jQuery(f).hide();e&&(e.setPanel(null),e.getMap()&&(e.setMap(null),h.showPois()))};this.getDirections=function(){h.closeInfoWindow();jQuery(".mapp-spinner",f).show();var n=jQuery(".mapp-dir-saddr",f),t=jQuery(".mapp-dir-daddr",f),i=jQuery(".mapp-dir-saddr-err",f),r=jQuery(".mapp-dir-daddr-err",f);c.geocodeField(n,i,function(n){c.geocodeField(t,r,function(t){n&&t?w(n,t,function(){jQuery(".mapp-spinner",f).hide();return}):jQuery(".mapp-spinner",f).hide()})})};this.printDirections=function(){var t,n=jQuery(".mapp-travelmode-on > span",f);t=n.hasClass("mapp-dir-walk")?"w":n.hasClass("mapp-dir-bike")?"b":n.hasClass("mapp-dir-transit")?"r":"d";this.openGoogle(jQuery(".mapp-dir-saddr",f).val(),jQuery(".mapp-dir-daddr",f).val(),t)};this.openGoogle=function(n,t,i){var r=o;r+="?saddr="+encodeURIComponent(n);r+="&daddr="+encodeURIComponent(t);i&&(r+="&dirflg="+i);window.open(r)}};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 u=n.extend({disableAutoPan:!1,border:20},i),f=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){f=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(f.position),t={width:n(l.getDiv()).width(),height:n(l.getDiv()).height()},v=n(".mapp-ib-body",r);if(!u.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-u.border&&(i=t.width-u.border-s/2);i-s/2<u.border&&(i=s/2+u.border);o-h+f.anchorPoint.y-a<u.border&&(o=h-f.anchorPoint.y+u.border+a);o>t.height&&(o=t.height);l.panBy(c.x-i,c.y-o);h>t.height+f.anchorPoint.y-2*u.border&&(h=t.height+f.anchorPoint.y-2*u.border,r.css({"max-height":h}));r.css({left:i-s/2,bottom:t.height-o-f.anchorPoint.y+a});e.css({left:i,bottom:t.height-o-f.anchorPoint.y})}};this.close=function(){r.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))};this.onRemove=function(){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}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();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.log(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.log(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(n.trim(r),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(){var t=0;n("script").each(function(i,r){n(r).attr("src")=="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=AIzaSyAEPgklOaWW2F_KkSifR_JuYIsM6ONdlCM"&&t++});t>1&&mapp.lib.alert("ERROR: Google Maps API key loaded multiple times, 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-canvas",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 u=this,r;if(this.sel=n(t),this.opts=n.extend({map:null,types:[]},i),r=n('<div style="display:none">').appendTo("body"),this.placesService=new google.maps.places.PlacesService(r.get(0)),this.autocompleteService=new google.maps.places.AutocompleteService,this.sel.length){this.opts.types||(this.opts.types=[]);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){if(n.which==13)return!1});google.maps.event.addListener(this.autocomplete,"place_changed",function(){u.parse(this.getPlace())})}};mapp.Places.prototype={parse:function(t){var u,i=this,r;if(this.error(!1),r=t&&t.name?n.trim(t.name):n.trim(t),!r)return this.error(!0);if(r=="geolocate")return this.geolocate();if(r.substring(0,4)=="http"||r.substring(0,3)=="kml"&&typeof typenow!="undefined"&&typenow=="mappress_map"){google.maps.event.trigger(i,"search",r=="kml"?"http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml":r);return}if(t&&t.geometry){t.formatted_address&&this.set(t.formatted_address);google.maps.event.trigger(i,"search",t);return}if(latLngLoc=this.parseLatLng(t)){google.maps.event.trigger(i,"search",latLngLoc);return}this.autocompleteService.getPlacePredictions({input:r,types:this.opts.types,bounds:this.opts.map.getMap().getBounds()},function(n,t){if(t!="OK"||n==null||n.length==0)return i.error(!0);u=typeof n[0].description!="undefined"?n[0].description:null;i.placesService.getDetails({placeId:n[0].place_id},function(n,t){if(t!="OK"||!n||!n.geometry)return i.error(!0);u=u?u:n.formatted_address;i.set(u);google.maps.event.trigger(i,"search",n)})})},parseLatLng:function(t){var i,r;return t instanceof google.maps.LatLng?i=t:t&&t.lat&&t.lng?i=new google.maps.LatLng(t.lat,t.lng):(name=t&&t.name?n.trim(t.name):n.trim(t),r=name.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(){var n=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){n.set("");var i=new google.maps.LatLng(t.coords.latitude,t.coords.longitude),r={name:i.toUrlValue(),geometry:{location:i}};google.maps.event.trigger(n,"search",r)},function(){alert(mappl10n.no_geolocate)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})},set:function(n){n=n.replace(", United States of America","").replace(", USA","").replace(", United States","");this.sel.blur();this.sel.val(n);this.sel.blur();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)}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Poi=function(){this.address=null;this.body=null;this.html=null;this.iconid=null;this.kml=null;this.map=null;this.overlay=null;this.postid=null;this.title="";this.url=null;this.type=null;this.viewport=null;for(var n in arguments[0])typeof arguments[0][n]!="undefined"&&(this[n]=arguments[0][n])};mapp.Poi.prototype={fromJSON:function(n){var u,f,i,o,t,r,s,e;this.address=n.correctedAddress;this.body=n.body;this.correctedAddress=n.correctedAddress;this.html=n.html;this.iconid=n.iconid;this.kml=n.kml;this.postid=n.postid;this.title=n.title;this.type=n.type;this.url=n.url;n.viewport&&n.viewport.sw&&n.viewport.ne&&(u=new google.maps.LatLng(n.viewport.sw.lat,n.viewport.sw.lng),f=new google.maps.LatLng(n.viewport.ne.lat,n.viewport.ne.lng),this.viewport=u.lat()==0&&u.lng()==0&&f.lat()==0&&f.lng()==0?null:new google.maps.LatLngBounds(u,f));i=[];o=[];switch(this.type){case"polygon":if(n.poly&&n.poly.paths)for(t=0;t<n.poly.paths.length;t++){for(i=[],r=0;r<n.poly.paths[t].length;r++)i.push(new google.maps.LatLng(n.poly.paths[t][r].lat,n.poly.paths[t][r].lng));o.push(new google.maps.MVCArray(i))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(n.poly);break;case"polyline":if(n.poly&&n.poly.path)for(t=0;t<n.poly.path.length;t++)i.push(new google.maps.LatLng(n.poly.path[t].lat,n.poly.path[t].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(i)});this.setColors(n.poly);break;case"circle":e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Circle({center:e,radius:parseFloat(n.poly.radius)});this.setColors(n.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(n.poly);break;case"kml":s=n.kml&&n.kml.url?n.kml.url:"";this.overlay=new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Marker({position:e})}},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)})))},getZIndex:function(){return this.type?this.overlay.zIndex:this.overlay.getZIndex()},setZIndex:function(n){this.type?this.overlay.zIndex=n:this.overlay.setZIndex(n)},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(n){var t=this.map.getMap(),i;if(!n){t.setCenter(this.getPosition());return}if(typeof n=="number"){t.setCenter(this.getPosition());t.setZoom(n);return}i=this.getBounds();i?(t.fitBounds(i),t.setCenter(this.getPosition())):(t.setCenter(this.getPosition()),t.setZoom(parseInt(mappl10n.options.poiZoom)))},open:function(n){this.map.openInfoWindow(this,n)},zoomIn:function(){var n=this.map.getMap(),r=n.getZoom(),t=this.getBounds(),i=Math.min(r+2,21);t&&n.fitBounds(t);i>n.getZoom()&&n.setZoom(i);n.setCenter(this.getPosition())},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;if(!this.map.editable&&this.viewport)return this.viewport;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?this.viewport:null}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")},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(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop(),t=new mapp.Map(n);window[n.name]=t;t.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
|
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.getMapid();f?n("#mapp_m_mapid").text(f):n("#mapp_m_mapid").text("");n("#mapp_m_title").val(t.getTitle());n("#mapp_m_width").val(t.getWidth());n("#mapp_m_height").val(t.getHeight());n(".mapp-viewport").prop("checked",!!(t.center&&t.zoom));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("mapp0",r,function(n){f(n)})}function h(n){mapp.Map.ajaxGet(n,"mapp0",r,function(n){f(n)})}function c(n){var t='[mappress mapid="'+n+'"]';send_to_editor(t)}function o(){if(t){var i=n.trim(n("#mapp_m_title").val());i=i!=""?i:mappl10n.untitled;t.setTitle(i);n(".mapp-viewport").prop("checked")?(t.center=t.getMap().getCenter().toJSON(),t.zoom=t.getMap().getZoom()):t.center=t.zoom=null;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};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("#mapp_m_width, #mapp_m_height").change(function(t){var i=n("#mapp_m_width").val(),r=n("#mapp_m_height").val();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.getMapid(),r='[mappress mapid="'+t.getMapid()+'"]';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(){i.display();r=new mapp.PoiEditor(i);google.maps.event.addListener(i,"rendered",function(){n(".mapp-list",e).toggle(!!i.getPois().length);i.resize()});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()});n(".mapp-list",e).sortable({axis:"y",cursor:"move",delay:200,update:function(){i.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-id"}))}});_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(){tinyMCE.get("mapp-poi-body")&&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(){tinyMCE.execCommand("mceAddEditor",!1,"mapp-poi-body")}function s(){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(){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)
|
js/mappress_settings.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
+function(n){function t(
|
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(){new mapp.widgets.IconPicker;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-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
@@ -2,9 +2,9 @@
|
|
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.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
|
7 |
-
"POT-Creation-Date: 2017-08-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -16,26 +16,51 @@ msgstr ""
|
|
16 |
msgid "Add POI"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: forms/map_editor.php:
|
20 |
#: templates/map_directions.php:11
|
21 |
msgid "My location"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: forms/map_editor.php:
|
25 |
-
#:
|
26 |
msgid "Center map"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: forms/map_editor.php:
|
30 |
msgid "Click map for lat/lng: "
|
31 |
msgstr ""
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
#: forms/map_editor_infobox.php:20 languages/texts.php:6
|
34 |
msgid "Color"
|
35 |
msgstr ""
|
36 |
|
37 |
#: forms/map_editor_infobox.php:22 forms/map_editor_infobox.php:23
|
38 |
-
#: languages/texts.php:7
|
39 |
msgid "Opacity"
|
40 |
msgstr ""
|
41 |
|
@@ -44,228 +69,218 @@ msgid "Line"
|
|
44 |
msgstr ""
|
45 |
|
46 |
#: forms/map_editor_infobox.php:25 languages/texts.php:9
|
|
|
47 |
msgid "Weight"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: forms/
|
51 |
-
msgid "
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: forms/
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: forms/
|
59 |
-
|
60 |
-
msgid "Save"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: forms/
|
64 |
-
|
65 |
-
msgid "Cancel"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: forms/map_media.php:
|
69 |
-
msgid "
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: forms/map_media.php:
|
73 |
-
msgid "
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: forms/map_media.php:
|
77 |
-
msgid "
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: forms/map_media.php:
|
81 |
-
msgid "
|
82 |
msgstr ""
|
83 |
|
84 |
-
#:
|
85 |
msgid "Size"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#:
|
89 |
-
msgid "Insert into post"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: languages/texts.php:20 mappress.php:127
|
93 |
msgid "Version"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: languages/texts.php:21 mappress.php:
|
97 |
msgid "Documentation"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: languages/texts.php:22 mappress.php:
|
101 |
msgid "Support"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: languages/texts.php:23 mappress.php:
|
105 |
msgid "Upgrade to MapPress Pro"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: languages/texts.php:24 mappress.php:
|
109 |
msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: languages/texts.php:25 mappress.php:
|
113 |
msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: languages/texts.php:26 mappress.php:
|
117 |
msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: languages/texts.php:27 mappress.php:
|
121 |
msgid "A Google Maps API key is required"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: languages/texts.php:28 mappress.php:
|
125 |
msgid "Please update your"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: languages/texts.php:29 mappress.php:
|
129 |
msgid "MapPress Settings"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: languages/texts.php:30
|
|
|
133 |
msgid "Bicycling"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: languages/texts.php:31
|
137 |
msgid "Bike"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: languages/texts.php:32 mappress.php:
|
141 |
msgid "One of the addresses could not be found."
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: languages/texts.php:33 mappress.php:
|
145 |
msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: languages/texts.php:34 mappress.php:
|
149 |
msgid "Unknown error, unable to return directions. Status code = "
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: languages/texts.php:35 mappress.php:
|
153 |
-
#:
|
154 |
msgid "Directions"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: languages/texts.php:36 mappress.php:
|
158 |
msgid "Error reading KML file"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: languages/texts.php:37 mappress.php:
|
162 |
msgid "Loading..."
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: languages/texts.php:38 mappress.php:
|
166 |
msgid "No matching address"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: languages/texts.php:39 mappress.php:
|
170 |
msgid "Unable to get your location"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: languages/texts.php:40
|
174 |
msgid "Traffic"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: languages/texts.php:41
|
178 |
msgid "Transit"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: languages/texts.php:42 mappress.php:
|
182 |
-
#:
|
183 |
-
#: pro/mappress_widget.php:120
|
184 |
msgid "Zoom"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: languages/texts.php:43 mappress.php:
|
188 |
msgid "Add"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: languages/texts.php:44 mappress.php:
|
192 |
msgid "Click & drag to move"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: languages/texts.php:45 mappress.php:
|
196 |
msgid "Click to change"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: languages/texts.php:
|
200 |
-
#: mappress_map.php:496
|
201 |
-
msgid "Delete"
|
202 |
-
msgstr ""
|
203 |
-
|
204 |
-
#: languages/texts.php:47 mappress.php:545
|
205 |
msgid "Delete this POI?"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: languages/texts.php:48 mappress.php:
|
209 |
msgid "Delete this map?"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: languages/texts.php:49 mappress.php:
|
213 |
msgid "Please save the map first"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: languages/texts.php:50 mappress.php:
|
217 |
msgid "Shape"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: languages/texts.php:51 mappress.php:
|
221 |
msgid "Untitled"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: languages/texts.php:52
|
225 |
msgid "New"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: languages/texts.php:53 mappress_map.php:
|
229 |
msgid "Map not found"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: languages/texts.php:54 mappress_map.php:
|
233 |
msgid "Edit"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: languages/texts.php:55 mappress_map.php:
|
237 |
msgid "Show map"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: languages/texts.php:56 mappress_map.php:
|
241 |
msgid "Reset map"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: languages/texts.php:57 mappress_map.php:
|
245 |
msgid "Bigger map"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: languages/texts.php:58 mappress_map.php:
|
249 |
msgid "Smaller map"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: languages/texts.php:59
|
253 |
msgid "Directions to"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: languages/texts.php:60
|
257 |
msgid "Directions from"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: languages/texts.php:61 mappress_settings.php:
|
261 |
msgid "Basic Settings"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: languages/texts.php:62 mappress_settings.php:
|
265 |
msgid "Post types"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: languages/texts.php:63
|
269 |
msgid "Automatic map display"
|
270 |
msgstr ""
|
271 |
|
@@ -277,392 +292,384 @@ msgstr ""
|
|
277 |
msgid "Server API key"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: languages/texts.php:66
|
281 |
msgid "Map Controls"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: languages/texts.php:67
|
285 |
msgid "Draggable"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: languages/texts.php:68
|
289 |
msgid "Keyboard shortcuts"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: languages/texts.php:69
|
293 |
msgid "Scroll wheel zoom"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: languages/texts.php:70
|
297 |
msgid "Map Types"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: languages/texts.php:71
|
301 |
msgid "Map controls"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: languages/texts.php:72 mappress_settings.php:
|
305 |
msgid "Map Settings"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: languages/texts.php:73
|
309 |
msgid "Map links"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: languages/texts.php:74 mappress_settings.php:
|
313 |
msgid "Map alignment"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: languages/texts.php:75 mappress_settings.php:
|
317 |
msgid "Open first POI"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: languages/texts.php:76 mappress_settings.php:
|
321 |
msgid "POI Settings"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: languages/texts.php:77 mappress_settings.php:
|
325 |
msgid "POI links"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: languages/texts.php:78
|
329 |
msgid "Tooltips"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: languages/texts.php:79 mappress_settings.php:
|
333 |
msgid "Default zoom"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: languages/texts.php:80 mappress_settings.php:
|
337 |
msgid "Mashups"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: languages/texts.php:81 mappress_settings.php:
|
341 |
msgid "Icons"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: languages/texts.php:82 mappress_settings.php:
|
345 |
msgid "Styled Maps"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: languages/texts.php:83 mappress_settings.php:
|
349 |
msgid "Geocoding"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: languages/texts.php:84 mappress_settings.php:
|
353 |
msgid "Localization"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: languages/texts.php:85 mappress_settings.php:
|
357 |
msgid "Language"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: languages/texts.php:86 mappress_settings.php:
|
361 |
msgid "Country"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: languages/texts.php:87 mappress_settings.php:
|
365 |
msgid "Directions server"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: languages/texts.php:88
|
369 |
msgid "Directions units"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: languages/texts.php:89 mappress_settings.php:
|
373 |
msgid "Miscellaneous"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: languages/texts.php:90 mappress_settings.php:
|
377 |
msgid "Map sizes"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: languages/texts.php:91 mappress_settings.php:
|
381 |
msgid "Scripts"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: languages/texts.php:92 mappress_settings.php:
|
385 |
msgid "Adaptive display"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: languages/texts.php:93
|
389 |
msgid "CSS"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: languages/texts.php:94
|
393 |
msgid "Use the settings below to automatically create maps from custom fields."
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: languages/texts.php:95 mappress_settings.php:
|
397 |
msgid "Recenter maps when window is resized"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: languages/texts.php:96 mappress_settings.php:
|
401 |
-
#: pro/mappress_pro_settings.php:
|
402 |
msgid "more info"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: languages/texts.php:97 mappress_settings.php:
|
406 |
msgid "Required to display maps"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: languages/texts.php:98 mappress_settings.php:
|
410 |
msgid "Output scripts in footer"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: languages/texts.php:99
|
414 |
msgid "country code"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: languages/texts.php:100
|
418 |
msgid "Enter a %s to use when searching (leave blank for USA)"
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: languages/texts.php:101
|
422 |
msgid "Enter a google server URL for directions/printing"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: languages/texts.php:102
|
426 |
msgid "(Default)"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: languages/texts.php:103
|
430 |
msgid "Metric (kilometers)"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: languages/texts.php:104
|
434 |
msgid "Imperial (miles)"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: languages/texts.php:105
|
438 |
msgid "Enable map dragging with the mouse"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: languages/texts.php:106
|
442 |
msgid "Enable zoom with the mouse scroll wheel"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: languages/texts.php:107
|
446 |
msgid "Enable keyboard panning and zooming"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: languages/texts.php:108
|
450 |
msgid "language"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: languages/texts.php:109
|
454 |
msgid "Use a specific %s for map controls and geocoding"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: languages/texts.php:110 mappress_settings.php:
|
458 |
msgid "Default"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: languages/texts.php:111
|
462 |
msgid "Horizontal"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: languages/texts.php:112
|
466 |
msgid "Dropdown"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: languages/texts.php:113
|
470 |
msgid "Small"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: languages/texts.php:114
|
474 |
msgid "Large"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: languages/texts.php:115
|
478 |
msgid "Android"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: languages/texts.php:116
|
482 |
msgid "Open initially"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: languages/texts.php:117
|
486 |
-
#: mappress_settings.php:323
|
487 |
msgid "Checked initially"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: languages/texts.php:118
|
491 |
msgid "Control"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: languages/texts.php:119
|
495 |
msgid "Enable"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: languages/texts.php:120
|
499 |
msgid "Style"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: languages/texts.php:121
|
503 |
msgid "Map types"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: languages/texts.php:122
|
507 |
msgid "Pan"
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: languages/texts.php:123
|
511 |
msgid "Street view"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: languages/texts.php:124
|
515 |
msgid "Scale"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: languages/texts.php:125
|
519 |
msgid "Overview map"
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: languages/texts.php:126
|
523 |
msgid "Public transit"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: languages/texts.php:127
|
527 |
msgid "Bike routes"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: languages/texts.php:128
|
531 |
msgid "Road map"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: languages/texts.php:129
|
535 |
-
#: pro/mappress_widget.php:138
|
536 |
msgid "Satellite"
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: languages/texts.php:130
|
540 |
-
#: pro/mappress_widget.php:139
|
541 |
msgid "Terrain"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: languages/texts.php:131
|
545 |
-
#: pro/mappress_widget.php:137
|
546 |
msgid "Hybrid"
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: languages/texts.php:132 mappress_settings.php:
|
550 |
-
#: pro/mappress_widget.php:106
|
551 |
msgid "Google"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: languages/texts.php:133 mappress_settings.php:
|
555 |
-
#: pro/mappress_widget.php:105
|
556 |
msgid "Inline"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: languages/texts.php:134 mappress_settings.php:
|
560 |
-
#: pro/mappress_widget.php:107
|
561 |
msgid "None"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: languages/texts.php:135
|
565 |
msgid "Automatically open the first POI when a map is displayed"
|
566 |
msgstr ""
|
567 |
|
568 |
-
#: languages/texts.php:136
|
569 |
msgid "Show control"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: languages/texts.php:137
|
573 |
msgid "Enabled by default"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: languages/texts.php:138
|
577 |
msgid "Show POI titles as a \"tooltip\" on mouse-over"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: languages/texts.php:139
|
581 |
msgid "Default alignment"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: languages/texts.php:140 mappress_settings.php:
|
585 |
-
#: pro/mappress_widget.php:112
|
586 |
msgid "Center"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: languages/texts.php:141 mappress_settings.php:
|
590 |
msgid "Left"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: languages/texts.php:142 mappress_settings.php:
|
594 |
msgid "Right"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: languages/texts.php:143
|
598 |
msgid "Default zoom for POIs entered by lat/lng"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: languages/texts.php:144 mappress_settings.php:
|
602 |
msgid "Top of post"
|
603 |
msgstr ""
|
604 |
|
605 |
-
#: languages/texts.php:145 mappress_settings.php:
|
606 |
msgid "Bottom of post"
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: languages/texts.php:146
|
610 |
msgid "No automatic display"
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: languages/texts.php:147
|
614 |
msgid "Load %s"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: languages/texts.php:148 mappress_settings.php:
|
618 |
msgid "Default size"
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: languages/texts.php:149
|
622 |
msgid "Width"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: languages/texts.php:150
|
626 |
msgid "Height"
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: languages/texts.php:151
|
630 |
msgid "Enter sizes in px or %"
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: languages/texts.php:152
|
634 |
msgid "Rate it 5 Stars"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: languages/texts.php:153
|
638 |
msgid "%s on WordPress.org"
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: languages/texts.php:154 mappress_settings.php:
|
642 |
msgid "Thanks for your support!"
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: languages/texts.php:155 mappress_settings.php:
|
646 |
msgid "Easy Google Maps"
|
647 |
msgstr ""
|
648 |
|
649 |
-
#: languages/texts.php:156
|
650 |
msgid "Like this plugin?"
|
651 |
msgstr ""
|
652 |
|
653 |
-
#: languages/texts.php:157 mappress_settings.php:
|
654 |
msgid "Sample Map"
|
655 |
msgstr ""
|
656 |
|
657 |
-
#: languages/texts.php:158 mappress_settings.php:
|
658 |
msgid "Save Changes"
|
659 |
msgstr ""
|
660 |
|
661 |
-
#: languages/texts.php:159 mappress_settings.php:
|
662 |
msgid "Reset Defaults"
|
663 |
msgstr ""
|
664 |
|
665 |
-
#: languages/texts.php:160 mappress.php:
|
666 |
msgid "Settings"
|
667 |
msgstr ""
|
668 |
|
@@ -694,75 +701,76 @@ msgstr ""
|
|
694 |
msgid "Invalid JSON from Google: %s"
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: languages/texts.php:168 pro/mappress_icons.php:
|
698 |
msgid "Use default icon"
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: languages/texts.php:169 pro/
|
702 |
msgid "Automatic"
|
703 |
msgstr ""
|
704 |
|
705 |
-
#: languages/texts.php:170 pro/mappress_pro_settings.php:
|
706 |
msgid "POI list"
|
707 |
msgstr ""
|
708 |
|
709 |
-
#: languages/texts.php:171 pro/mappress_pro_settings.php:
|
|
|
710 |
msgid "InfoWindow type"
|
711 |
msgstr ""
|
712 |
|
713 |
-
#: languages/texts.php:172 pro/mappress_pro_settings.php:
|
714 |
msgid "Default icon"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: languages/texts.php:173
|
718 |
msgid "Custom icons directory"
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: languages/texts.php:174 pro/mappress_pro_settings.php:
|
722 |
msgid "Icon scaling"
|
723 |
msgstr ""
|
724 |
|
725 |
-
#: languages/texts.php:175
|
726 |
msgid "Mashup POI title"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: languages/texts.php:176
|
730 |
msgid "Mashup POI body"
|
731 |
msgstr ""
|
732 |
|
733 |
-
#: languages/texts.php:177
|
734 |
msgid "Mashup POI click"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#: languages/texts.php:178
|
738 |
msgid "Link title"
|
739 |
msgstr ""
|
740 |
|
741 |
-
#: languages/texts.php:179
|
742 |
msgid "Mashup Thumbnails"
|
743 |
msgstr ""
|
744 |
|
745 |
-
#: languages/texts.php:180
|
746 |
msgid "Thumbnail Size"
|
747 |
msgstr ""
|
748 |
|
749 |
-
#: languages/texts.php:181 pro/mappress_pro_settings.php:
|
750 |
msgid "Automatic icons"
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: languages/texts.php:182 pro/mappress_pro_settings.php:
|
754 |
msgid "Styled maps"
|
755 |
msgstr ""
|
756 |
|
757 |
-
#: languages/texts.php:183 pro/mappress_pro_settings.php:
|
758 |
msgid "Default style"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: languages/texts.php:184 pro/mappress_pro_settings.php:
|
762 |
msgid "Geocoding fields"
|
763 |
msgstr ""
|
764 |
|
765 |
-
#: languages/texts.php:185 pro/mappress_pro_settings.php:
|
766 |
msgid "Force resize"
|
767 |
msgstr ""
|
768 |
|
@@ -774,217 +782,218 @@ msgstr ""
|
|
774 |
msgid "Post type"
|
775 |
msgstr ""
|
776 |
|
777 |
-
#: languages/texts.php:188
|
778 |
msgid "Key"
|
779 |
msgstr ""
|
780 |
|
781 |
-
#: languages/texts.php:189 pro/mappress_pro_settings.php:
|
782 |
msgid "Value"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: languages/texts.php:190 pro/mappress_pro_settings.php:
|
786 |
-
#: pro/mappress_pro_settings.php:
|
787 |
msgid "Icon"
|
788 |
msgstr ""
|
789 |
|
790 |
-
#: languages/texts.php:191 pro/mappress_pro_settings.php:
|
791 |
msgid "Show a list of POIs under each map"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: languages/texts.php:192
|
795 |
msgid "Show the POI list as a sortable %s"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: languages/texts.php:193 pro/mappress_pro_settings.php:
|
|
|
799 |
msgid "POI title"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: languages/texts.php:194 pro/mappress_pro_settings.php:
|
803 |
msgid "Post title"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: languages/texts.php:195 pro/mappress_pro_settings.php:
|
|
|
807 |
msgid "POI body"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: languages/texts.php:196
|
811 |
msgid "Address"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: languages/texts.php:197 pro/mappress_pro_settings.php:
|
815 |
msgid "Post excerpt"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: languages/texts.php:198
|
819 |
msgid "Link POI titles to the underlying post"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: languages/texts.php:199
|
823 |
msgid "Open the POI"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: languages/texts.php:200
|
827 |
msgid "Go directly to the post"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: languages/texts.php:201 pro/mappress_pro_settings.php:
|
831 |
msgid "Google InfoWindow"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: languages/texts.php:202 pro/mappress_pro_settings.php:
|
835 |
msgid "InfoBox"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: languages/texts.php:203 pro/mappress_pro_settings.php:
|
839 |
msgid "Show featured image thumbnails in mashup POIs"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: languages/texts.php:204
|
843 |
msgid "Use existing size: "
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: languages/texts.php:205
|
847 |
msgid "or resize to (px): "
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: languages/texts.php:206
|
851 |
msgid "styled maps"
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: languages/texts.php:207
|
855 |
msgid "styled maps wizard"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: languages/texts.php:208
|
859 |
msgid "Enter JSON for %s from Google's %s"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: languages/texts.php:209 pro/mappress_pro_settings.php:
|
863 |
msgid "Style name"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: languages/texts.php:210 pro/mappress_pro_settings.php:
|
867 |
msgid "No styles have been defined yet"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: languages/texts.php:211
|
871 |
msgid "Address Line 1"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: languages/texts.php:212
|
875 |
msgid "Address Line 2"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: languages/texts.php:213
|
879 |
msgid "Address Line 3"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: languages/texts.php:214
|
883 |
msgid "Address Line 4"
|
884 |
msgstr ""
|
885 |
|
886 |
-
#: languages/texts.php:215
|
887 |
msgid "Address Line 5"
|
888 |
msgstr ""
|
889 |
|
890 |
-
#: languages/texts.php:216
|
891 |
msgid "Address Line 6"
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: languages/texts.php:217 pro/mappress_pro_settings.php:
|
895 |
msgid "Latitude"
|
896 |
msgstr ""
|
897 |
|
898 |
-
#: languages/texts.php:218 pro/mappress_pro_settings.php:
|
899 |
msgid "Longitude"
|
900 |
msgstr ""
|
901 |
|
902 |
-
#: languages/texts.php:219 pro/mappress_pro_settings.php:
|
903 |
msgid "Title"
|
904 |
msgstr ""
|
905 |
|
906 |
-
#: languages/texts.php:220 pro/mappress_pro_settings.php:
|
907 |
msgid "Body"
|
908 |
msgstr ""
|
909 |
|
910 |
-
#: languages/texts.php:221
|
911 |
msgid "Map Zoom"
|
912 |
msgstr ""
|
913 |
|
914 |
-
#: languages/texts.php:222 pro/
|
915 |
-
#: pro/mappress_widget.php:136
|
916 |
msgid "Map"
|
917 |
msgstr ""
|
918 |
|
919 |
-
#: languages/texts.php:223 pro/mappress_pro_settings.php:
|
920 |
msgid "Custom Field"
|
921 |
msgstr ""
|
922 |
|
923 |
-
#: languages/texts.php:224
|
924 |
msgid "Overwrite existing maps when updating"
|
925 |
msgstr ""
|
926 |
|
927 |
-
#: languages/texts.php:225 pro/mappress_pro_settings.php:
|
928 |
msgid "Permanently resize existing maps"
|
929 |
msgstr ""
|
930 |
|
931 |
-
#: languages/texts.php:226 pro/mappress_pro_settings.php:
|
932 |
msgid "from %s to %s"
|
933 |
msgstr ""
|
934 |
|
935 |
-
#: languages/texts.php:227 pro/mappress_pro_settings.php:
|
936 |
msgid "Force Resize"
|
937 |
msgstr ""
|
938 |
|
939 |
-
#: languages/texts.php:228 pro/mappress_widget.php:
|
940 |
msgid "Widget title"
|
941 |
msgstr ""
|
942 |
|
943 |
-
#: languages/texts.php:229 pro/mappress_widget.php:
|
944 |
msgid "Map size"
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: languages/texts.php:230 pro/mappress_widget.php:
|
948 |
msgid "Show"
|
949 |
msgstr ""
|
950 |
|
951 |
-
#: languages/texts.php:231 pro/mappress_widget.php:
|
952 |
msgid "Current posts"
|
953 |
msgstr ""
|
954 |
|
955 |
-
#: languages/texts.php:232 pro/mappress_widget.php:
|
956 |
msgid "Hide if empty"
|
957 |
msgstr ""
|
958 |
|
959 |
-
#: languages/texts.php:233 pro/mappress_widget.php:
|
960 |
msgid "All posts"
|
961 |
msgstr ""
|
962 |
|
963 |
-
#: languages/texts.php:234 pro/mappress_widget.php:
|
964 |
msgid "Custom query"
|
965 |
msgstr ""
|
966 |
|
967 |
-
#: languages/texts.php:235 pro/mappress_widget.php:
|
968 |
msgid "Learn about queries"
|
969 |
msgstr ""
|
970 |
|
971 |
-
#: languages/texts.php:236 pro/mappress_widget.php:
|
972 |
msgid "Show POI list"
|
973 |
msgstr ""
|
974 |
|
975 |
-
#: languages/texts.php:237
|
976 |
msgid "Link POIs to posts"
|
977 |
msgstr ""
|
978 |
|
979 |
-
#: languages/texts.php:238 pro/mappress_widget.php:
|
980 |
msgid "Map type"
|
981 |
msgstr ""
|
982 |
|
983 |
-
#: languages/texts.php:239 pro/mappress_widget.php:
|
984 |
msgid "Other Settings"
|
985 |
msgstr ""
|
986 |
|
987 |
-
#: languages/texts.php:240
|
988 |
msgid "Example: traffic=\"false\" maplinks=\"\""
|
989 |
msgstr ""
|
990 |
|
@@ -1032,14 +1041,54 @@ msgstr ""
|
|
1032 |
msgid "Chris Richardson"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
-
#: mappress_settings.php:
|
1036 |
-
msgid "
|
1037 |
msgstr ""
|
1038 |
|
1039 |
-
#: mappress_settings.php:
|
1040 |
msgid "Google API key"
|
1041 |
msgstr ""
|
1042 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1043 |
#: pro/mappress_pro_settings.php:16
|
1044 |
msgid "MapPress license key"
|
1045 |
msgstr ""
|
@@ -1048,33 +1097,105 @@ msgstr ""
|
|
1048 |
msgid "Beta versions"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
-
#: pro/mappress_pro_settings.php:
|
1052 |
-
msgid "
|
1053 |
msgstr ""
|
1054 |
|
1055 |
-
#: pro/mappress_pro_settings.php:
|
1056 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1057 |
msgstr ""
|
1058 |
|
1059 |
#: pro/mappress_pro_settings.php:165
|
|
|
|
|
|
|
|
|
1060 |
msgid "Enable automatic updates for beta versions"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: pro/mappress_pro_settings.php:
|
1064 |
msgid "Enter your license key"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: pro/mappress_pro_settings.php:
|
1068 |
msgid "Communication error, please try again later"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: pro/mappress_pro_settings.php:
|
1072 |
msgid "Active"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
-
#: pro/mappress_pro_settings.php:
|
1076 |
msgid "License is invalid or expired"
|
1077 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1078 |
#. Plugin Name of the plugin/theme
|
1079 |
msgid "MapPress Easy Google Maps"
|
1080 |
msgstr ""
|
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.45\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
|
7 |
+
"POT-Creation-Date: 2017-08-23 18:11:11+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
msgid "Add POI"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: forms/map_editor.php:12 languages/texts.php:3
|
20 |
#: templates/map_directions.php:11
|
21 |
msgid "My location"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: forms/map_editor.php:26 languages/texts.php:4 mappress_map.php:503
|
25 |
+
#: templates/map_controls.php:4
|
26 |
msgid "Center map"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: forms/map_editor.php:27 languages/texts.php:5
|
30 |
msgid "Click map for lat/lng: "
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: forms/map_editor.php:50 forms/map_editor_infobox.php:33
|
34 |
+
#: languages/texts.php:10
|
35 |
+
msgid "Visual"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: forms/map_editor.php:50 forms/map_editor_infobox.php:33
|
39 |
+
#: languages/texts.php:11
|
40 |
+
msgid "HTML"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: forms/map_editor.php:56 forms/map_editor_infobox.php:38
|
44 |
+
#: forms/map_media.php:41 languages/texts.php:12
|
45 |
+
msgid "Save"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: forms/map_editor.php:57 forms/map_editor_infobox.php:39
|
49 |
+
#: forms/map_media.php:42 languages/texts.php:13
|
50 |
+
msgid "Cancel"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: forms/map_editor.php:58 languages/texts.php:46 mappress.php:586
|
54 |
+
#: mappress_controls.php:88 mappress_map.php:469
|
55 |
+
msgid "Delete"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
#: forms/map_editor_infobox.php:20 languages/texts.php:6
|
59 |
msgid "Color"
|
60 |
msgstr ""
|
61 |
|
62 |
#: forms/map_editor_infobox.php:22 forms/map_editor_infobox.php:23
|
63 |
+
#: languages/texts.php:7 pro/mappress_icons.php:57
|
64 |
msgid "Opacity"
|
65 |
msgstr ""
|
66 |
|
69 |
msgstr ""
|
70 |
|
71 |
#: forms/map_editor_infobox.php:25 languages/texts.php:9
|
72 |
+
#: pro/mappress_icons.php:58
|
73 |
msgid "Weight"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: forms/map_media.php:4 languages/texts.php:14
|
77 |
+
msgid "Maps for This Post"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: forms/map_media.php:5 languages/texts.php:15
|
81 |
+
msgid "New Map"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: forms/map_media.php:14 languages/texts.php:16
|
85 |
+
msgid "Map ID"
|
|
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: forms/map_media.php:19 languages/texts.php:17
|
89 |
+
msgid "Map Title"
|
|
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: forms/map_media.php:24
|
93 |
+
msgid "Display Size"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: forms/map_media.php:36
|
97 |
+
msgid "Viewport"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: forms/map_media.php:37
|
101 |
+
msgid "Save center and zoom"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: forms/map_media.php:43 languages/texts.php:19 mappress_map.php:468
|
105 |
+
msgid "Insert into post"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: languages/texts.php:18
|
109 |
msgid "Size"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: languages/texts.php:20 mappress.php:130
|
|
|
|
|
|
|
|
|
113 |
msgid "Version"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: languages/texts.php:21 mappress.php:138
|
117 |
msgid "Documentation"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: languages/texts.php:22 mappress.php:139
|
121 |
msgid "Support"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: languages/texts.php:23 mappress.php:141
|
125 |
msgid "Upgrade to MapPress Pro"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: languages/texts.php:24 mappress.php:415
|
129 |
msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: languages/texts.php:25 mappress.php:420
|
133 |
msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: languages/texts.php:26 mappress.php:425
|
137 |
msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: languages/texts.php:27 mappress.php:432
|
141 |
msgid "A Google Maps API key is required"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: languages/texts.php:28 mappress.php:432
|
145 |
msgid "Please update your"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: languages/texts.php:29 mappress.php:432
|
149 |
msgid "MapPress Settings"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: languages/texts.php:30 templates/map_controls.php:8
|
153 |
+
#: templates/map_directions.php:6
|
154 |
msgid "Bicycling"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: languages/texts.php:31
|
158 |
msgid "Bike"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: languages/texts.php:32 mappress.php:570
|
162 |
msgid "One of the addresses could not be found."
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: languages/texts.php:33 mappress.php:571
|
166 |
msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: languages/texts.php:34 mappress.php:572
|
170 |
msgid "Unknown error, unable to return directions. Status code = "
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: languages/texts.php:35 mappress.php:573 mappress_poi.php:180
|
174 |
+
#: mappress_poi.php:201 mappress_settings.php:105
|
175 |
msgid "Directions"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: languages/texts.php:36 mappress.php:574
|
179 |
msgid "Error reading KML file"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: languages/texts.php:37 mappress.php:575
|
183 |
msgid "Loading..."
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: languages/texts.php:38 mappress.php:576
|
187 |
msgid "No matching address"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: languages/texts.php:39 mappress.php:577
|
191 |
msgid "Unable to get your location"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: languages/texts.php:40 templates/map_controls.php:7
|
195 |
msgid "Traffic"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: languages/texts.php:41 templates/map_controls.php:9
|
199 |
msgid "Transit"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: languages/texts.php:42 mappress.php:578 mappress_settings.php:250
|
203 |
+
#: pro/mappress_pro_settings.php:244 pro/mappress_widget.php:96
|
|
|
204 |
msgid "Zoom"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: languages/texts.php:43 mappress.php:583 mappress_controls.php:81
|
208 |
msgid "Add"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: languages/texts.php:44 mappress.php:584
|
212 |
msgid "Click & drag to move"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: languages/texts.php:45 mappress.php:585
|
216 |
msgid "Click to change"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: languages/texts.php:47 mappress.php:587
|
|
|
|
|
|
|
|
|
|
|
220 |
msgid "Delete this POI?"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: languages/texts.php:48 mappress.php:588
|
224 |
msgid "Delete this map?"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: languages/texts.php:49 mappress.php:589
|
228 |
msgid "Please save the map first"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: languages/texts.php:50 mappress.php:590
|
232 |
msgid "Shape"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: languages/texts.php:51 mappress.php:591
|
236 |
msgid "Untitled"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: languages/texts.php:52
|
240 |
msgid "New"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: languages/texts.php:53 mappress_map.php:114
|
244 |
msgid "Map not found"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: languages/texts.php:54 mappress_map.php:467
|
248 |
msgid "Edit"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: languages/texts.php:55 mappress_map.php:493
|
252 |
msgid "Show map"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: languages/texts.php:56 mappress_map.php:509
|
256 |
msgid "Reset map"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: languages/texts.php:57 mappress_map.php:515
|
260 |
msgid "Bigger map"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: languages/texts.php:58 mappress_map.php:516
|
264 |
msgid "Smaller map"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: languages/texts.php:59 mappress_settings.php:251
|
268 |
msgid "Directions to"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: languages/texts.php:60 mappress_settings.php:252
|
272 |
msgid "Directions from"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: languages/texts.php:61 mappress_settings.php:98
|
276 |
msgid "Basic Settings"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: languages/texts.php:62 mappress_settings.php:100
|
280 |
msgid "Post types"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: languages/texts.php:63
|
284 |
msgid "Automatic map display"
|
285 |
msgstr ""
|
286 |
|
292 |
msgid "Server API key"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: languages/texts.php:66
|
296 |
msgid "Map Controls"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: languages/texts.php:67
|
300 |
msgid "Draggable"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: languages/texts.php:68
|
304 |
msgid "Keyboard shortcuts"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: languages/texts.php:69
|
308 |
msgid "Scroll wheel zoom"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: languages/texts.php:70
|
312 |
msgid "Map Types"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: languages/texts.php:71
|
316 |
msgid "Map controls"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: languages/texts.php:72 mappress_settings.php:103
|
320 |
msgid "Map Settings"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: languages/texts.php:73
|
324 |
msgid "Map links"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: languages/texts.php:74 mappress_settings.php:104
|
328 |
msgid "Map alignment"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: languages/texts.php:75 mappress_settings.php:110 mappress_settings.php:239
|
332 |
msgid "Open first POI"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: languages/texts.php:76 mappress_settings.php:107
|
336 |
msgid "POI Settings"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: languages/texts.php:77 mappress_settings.php:108
|
340 |
msgid "POI links"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: languages/texts.php:78
|
344 |
msgid "Tooltips"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: languages/texts.php:79 mappress_settings.php:109
|
348 |
msgid "Default zoom"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: languages/texts.php:80 mappress_settings.php:113
|
352 |
msgid "Mashups"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: languages/texts.php:81 mappress_settings.php:114
|
356 |
msgid "Icons"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: languages/texts.php:82 mappress_settings.php:115
|
360 |
msgid "Styled Maps"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: languages/texts.php:83 mappress_settings.php:116
|
364 |
msgid "Geocoding"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: languages/texts.php:84 mappress_settings.php:120
|
368 |
msgid "Localization"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: languages/texts.php:85 mappress_settings.php:121 mappress_settings.php:243
|
372 |
msgid "Language"
|
373 |
msgstr ""
|
374 |
|
375 |