MapPress Easy Google Maps - Version 2.43.2

Version Description

Download this release

Release Info

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

Code changes from version 2.42.1 to 2.43.2

LICENSE.txt CHANGED
@@ -1,76 +1,340 @@
1
- MAPPRESS PRO LICENSE
2
-
3
- The PRO version of MapPress is governed by the license described in this document.
4
-
5
- You may use the PRO version of MapPress on up to 3 WordPress blogs per license you have purchased. A "blog" is a single blog or a single WordPress multisite installation. If you have purchased the PRO developer edition, you may use the plugin on an unlimited number of sites provided they are your own web sites or projects for your direct client(s).
6
-
7
- SOFTWARE LICENSE AGREEMENT AND CONDITIONS FOR USE
8
-
9
- PLEASE READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY BEFORE DOWNLOADING OR USING THE SOFTWARE. BY DOWNLOADING OR USING THE SOFTWARE YOU ARE CONSENTING TO BE BOUND BY THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, DO NOT DOWNLOAD
10
- OR USE THE PRODUCT.
11
-
12
-
13
- 1. Definitions.
14
-
15
- "License" shall mean the terms and conditions for use, reproduction,
16
- and distribution as defined by Sections 1 through 4 of this document.
17
-
18
- "Licensor" shall mean the software author or copyright owner
19
- that is granting the License.
20
-
21
- "You" (or "Your") shall mean an individual or Legal Entity
22
- exercising permissions granted by this License.
23
-
24
- "Source" form shall mean the preferred form for making modifications,
25
- including but not limited to software source code, documentation
26
- source, and configuration files.
27
-
28
- "Object" form shall mean any form resulting from mechanical
29
- transformation or translation of a Source form, including but
30
- not limited to compiled object code, generated documentation,
31
- and conversions to other media types.
32
-
33
- "Work" shall mean the work of authorship, whether in Source or
34
- Object form, made available under the License, as indicated by a
35
- copyright notice that is included in or attached to the work
36
- (an example is provided in the Appendix below).
37
-
38
- 2. Trademarks. This License does not grant permission to use the trade
39
- names, trademarks, service marks, or product names of the Licensor,
40
- except as required for reasonable and customary use in describing the
41
- origin of the Work and reproducing the content of the NOTICE file.
42
-
43
- 3. Disclaimer of Warranty. Unless required by applicable law or
44
- agreed to in writing, Licensor provides the Work on an "AS IS" BASIS,
45
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
46
- implied, including, without limitation, any warranties or conditions
47
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
48
- PARTICULAR PURPOSE. You are solely responsible for determining the
49
- appropriateness of using or redistributing the Work and assume any
50
- risks associated with Your exercise of permissions under this License.
51
-
52
- 4. Limitation of Liability. In no event and under no legal theory,
53
- whether in tort (including negligence), contract, or otherwise,
54
- unless required by applicable law shall the Licensor be
55
- liable to You for damages, including any direct, indirect, special,
56
- incidental, or consequential damages of any character arising as a
57
- result of this License or out of the use or inability to use the
58
- Work (including but not limited to damages for loss of goodwill,
59
- work stoppage, computer failure or malfunction, or any and all
60
- other commercial damages or losses), even if such Licensor
61
- has been advised of the possibility of such damages. You agree to
62
- indemnify, and hold Licensor harmless for any liability
63
- incurred by, or claims asserted against, Licensor for any reason.
64
-
65
- 5. Licensee shall not modify, copy, duplicate, reproduce, license or sublicense
66
- the Work, or transfer or convey the Work or any right in the Work to
67
- anyone else without the prior written consent of Developer; provided that Licensee
68
- may make one copy of the Work for backup or archival purposes.
69
-
70
- 6. Licensee shall not sell, redistribute or re-sell the Work, a modified version of the Work,
71
- or any portion of the Work form.
72
-
73
- 7. EXCEPT AS EXPRESSLY AUTHORIZED ABOVE, CUSTOMER SHALL NOT: COPY, IN WHOLE OR IN
74
- PART, SOFTWARE OR DOCUMENTATION; MODIFY THE SOFTWARE; REVERSE COMPILE OR REVERSE
75
- ASSEMBLE ALL OR ANY PORTION OF THE SOFTWARE; OR RENT, LEASE, DISTRIBUTE, SELL, OR
76
- CREATE DERIVATIVE WORKS OF THE SOFTWARE.
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
340
+
css/mappress.css CHANGED
@@ -29,6 +29,7 @@
29
*/
30
31
.mapp-layout {
32
margin: 5px ;
33
padding: 0px ;
34
}
@@ -112,18 +113,9 @@
112
113
/* Override common theme / user agent styles that interfere */
114
.mapp-iw * {
115
- color: black !important;
116
margin: 0px !important;
117
padding: 0px !important;
118
- line-height: normal !important;
119
- }
120
-
121
- /* Override Google font bug (roboto webfont is loaded with a delay, making the IW size wrong on first open in Chrome) */
122
- .mapp-iw, .mapp-iw * {
123
- font-family: sans-serif !important; /* Needed for Chrome, override roboto font */
124
- font-weight: normal;
125
- font-size: 13px;
126
- text-align: left;
127
}
128
129
.mapp-iw .mapp-title {
@@ -148,8 +140,9 @@
148
border-top: 1px solid lightgray ;
149
}
150
151
- /* Style links */
152
- .mapp-iw a:link, .mapp-iw a:visited{
153
color: #4272db !important;
154
text-decoration: none !important;
155
}
@@ -219,7 +212,7 @@
219
.mapp-poi-list {
220
overflow-y: auto ;
221
overflow-x: hidden ;
222
- max-height: 300px; /* To show all entries put this in your styles.css: max-height: auto; */
223
}
224
225
.mapp-poi-list table {
@@ -227,6 +220,7 @@
227
width: 100% ;
228
line-height: normal !important; /* 2012 sets to 2 */
229
border-collapse: collapse ;
230
}
231
232
.mapp-poi-list th {
@@ -254,9 +248,14 @@
254
margin: 10px 0 0 0 ;
255
}
256
257
/* Directions travel mode buttons */
258
.mapp-travelmode {
259
- border: 1px solid lightgray ;
260
display: inline-block ;
261
text-align: center ;
262
vertical-align: middle ;
@@ -274,25 +273,19 @@
274
275
.mapp-dir-swap {
276
display:inline-block;
277
- border: 1px solid lightgray ;
278
text-align: center ;
279
vertical-align: middle ;
280
width: 24px ;
281
height: 24px ;
282
line-height: 24px ;
283
- background-color: rgb(245, 245, 245) ;
284
padding: 0px ;
285
margin: 0px ;
286
position: relative;
287
vertical-align: bottom;
288
}
289
290
- /* Put a border around the route options returned from Google */
291
- .adp-list {
292
- border: 1px solid lightgray ;
293
- cursor: pointer ;
294
- }
295
-
296
.mapp-route {
297
margin: 10px 0 0px 0 ;
298
}
@@ -306,9 +299,35 @@
306
padding: 2px ;
307
}
308
309
- .mapp-dir-icon { cursor: pointer; display: inline-block; vertical-align: middle; margin: 0; padding: 0; background: transparent url('../images/directions.png') no-repeat; }
310
.mapp-dir-car { width: 15px; height: 12px; background-position: 0px -96px; }
311
- .mapp-dir-bus { width: 13px; height: 15px; background-position: 0px -426px; }
312
.mapp-dir-walk { width: 10px; height: 16px; background-position: 0px -489px; }
313
.mapp-dir-bike { width: 17px; height: 14px; background-position: 0px -340px; }
314
.mapp-dir-transit { width: 17px; height: 14px; background-position: 0px -425px; }
@@ -317,7 +336,7 @@
317
318
.mapp-dir-letter { cursor: move; display: inline-block; vertical-align: middle; margin: 0; padding: 0; background: transparent url('../images/directions.png') no-repeat; }
319
.mapp-dir-a { width: 24px; height: 24px; background-position: 0px -140px; }
320
- .mapp-dir-b { width: 24px; height: 24px; background-position: 0px -72px; }
321
.mapp-dir-dot { width: 9px; height: 10px; background-position: 0px -108px; }
322
323
/*
@@ -354,40 +373,48 @@
354
vertical-align: baseline;
355
}
356
357
/*
358
-----------------------------------------------------------------------------------
359
Misc
360
-----------------------------------------------------------------------------------
361
*/
362
363
- /* Icons, e.g. in poi list */
364
- .mapp-icon {
365
- max-width: 32px !important; /* 2012 tries to override */
366
- max-height: 32px;
367
- vertical-align: middle;
368
- box-shadow: none !important; /* 2012 applies box shadow to all images */
369
}
370
371
- /* Medium icon */
372
- .mapp-icon-medium {
373
- width: 24px !important;
374
- height: 24px;
375
- vertical-align: middle;
376
}
377
378
- /* Small icon */
379
- .mapp-icon-small {
380
- width: 16px !important;
381
- height: 16px;
382
vertical-align: middle;
383
- }
384
-
385
-
386
- /* Icons, aligned 'top' */
387
- .mapp-icon-top {
388
- max-width: 32px;
389
- height: 32px;
390
- vertical-align: top;
391
}
392
393
/* Error messages, e.g. invalid address */
@@ -399,36 +426,6 @@
399
border: 1px solid red !important;
400
}
401
402
- /* Table for options settings */
403
- .mapp-table {
404
- width: auto;
405
- height: auto;
406
- background-color: rgb(249, 249, 249);
407
- border: 1px solid #dfdfdf;
408
- border-radius: 3px;
409
- }
410
-
411
- .mapp-table th {
412
- font-weight: bold;
413
- background-color: rgb(241, 241, 241);
414
- width: auto;
415
- height: auto;
416
- border-bottom: 1px solid lightgray;
417
- padding: 7px;
418
- }
419
-
420
- .mapp-table td {
421
- width: auto;
422
- height: auto;
423
- border-bottom: 1px solid lightgray;
424
- vertical-align: top;
425
- padding: 5px;
426
- }
427
-
428
- .mapp-table tfoot {
429
- background-color: rgb(241, 241, 241);
430
- }
431
-
432
.mapp-spinner {
433
display: inline-block;
434
height:16px;
@@ -438,29 +435,12 @@
438
background: transparent url(../images/loading.gif) no-repeat center center;
439
}
440
441
- .mapp-spinner-center {
442
- display: inline-block;
443
- height:16px;
444
- width: 16px;
445
- position: relative;
446
- left: 50%;
447
- top: 50%;
448
- margin-left: -8px;
449
- margin-top: -8px;
450
- background: transparent url(../images/loading.gif) no-repeat center center;
451
}
452
453
- .mapp-poi-list-nav {
454
- background-color: #F0F0F0;
455
- border-top: 1px solid lightgray;
456
- border-bottom: 1px solid lightgray;
457
- padding-left: 5px;
458
- text-align: center;
459
- color: #777;
460
}
461
462
- .mapp-search-button { display: inline-block; vertical-align: middle; margin-left: 5px; margin-right: 5px; margin-top: 0px; margin-bottom: 0px; padding: 0; background: transparent url('../images/search.png') no-repeat center; width: 13px; height: 13px; }
463
- .mapp-next { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 0; background: transparent url('../images/next.png') no-repeat; width: 22px; height: 22px; }
464
- .mapp-next-off { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 0; background: transparent url('../images/next-off.png') no-repeat; width: 22px; height: 22px; }
465
- .mapp-prev { display: inline-block; vertical-align: middle; margin-right: 10px; padding: 0; background: transparent url('../images/prev.png') no-repeat; width: 22px; height: 22px; }
466
- .mapp-prev-off { display: inline-block; vertical-align: middle; margin-right: 10px; padding: 0; background: transparent url('../images/prev-off.png') no-repeat; width: 22px; height: 22px; }
29
*/
30
31
.mapp-layout {
32
+ border: 1px solid black;
33
margin: 5px ;
34
padding: 0px ;
35
}
113
114
/* Override common theme / user agent styles that interfere */
115
.mapp-iw * {
116
+ color: black;
117
margin: 0px !important;
118
padding: 0px !important;
119
}
120
121
.mapp-iw .mapp-title {
140
border-top: 1px solid lightgray ;
141
}
142
143
+ /* Override theme link styles */
144
+ .mapp-iw a, .mapp-iw a:link, .mapp-iw a:active, .mapp-iw a:visited{
145
+ border: none !important;
146
color: #4272db !important;
147
text-decoration: none !important;
148
}
212
.mapp-poi-list {
213
overflow-y: auto ;
214
overflow-x: hidden ;
215
+ max-height: 300px; /* To show all entries put this in your styles.css: max-height: auto; */
216
}
217
218
.mapp-poi-list table {
220
width: 100% ;
221
line-height: normal !important; /* 2012 sets to 2 */
222
border-collapse: collapse ;
223
+ table-layout: auto; /* 2015 */
224
}
225
226
.mapp-poi-list th {
248
margin: 10px 0 0 0 ;
249
}
250
251
+ /* Hide print button in mobile - new Google URL parameters don't allow print mode */
252
+ .mobile .mapp-directions .mapp-dir-print {
253
+ display: none;
254
+ }
255
+
256
/* Directions travel mode buttons */
257
.mapp-travelmode {
258
+ border: 1px solid lightgray !important; /* 2015 */
259
display: inline-block ;
260
text-align: center ;
261
vertical-align: middle ;
273
274
.mapp-dir-swap {
275
display:inline-block;
276
+ border: none !important; /* 2015 */
277
text-align: center ;
278
vertical-align: middle ;
279
width: 24px ;
280
height: 24px ;
281
line-height: 24px ;
282
+ background-color: transparent;
283
padding: 0px ;
284
margin: 0px ;
285
position: relative;
286
vertical-align: bottom;
287
}
288
289
.mapp-route {
290
margin: 10px 0 0px 0 ;
291
}
299
padding: 2px ;
300
}
301
302
+ /* Put a border around route options */
303
+ .adp-list {
304
+ border: 1px solid lightgray ;
305
+ cursor: pointer ;
306
+ }
307
+
308
+ /* Override theme styles that interfere with rendered directions table */
309
+ .mapp-dir-renderer table {
310
+ table-layout: auto; /* 2015 */
311
+ }
312
+
313
+ .mapp-dir-renderer td {
314
+ border: none;
315
+ border-top: 1px solid #cdcdcd;
316
+ margin: 0;
317
+ padding: 0;
318
+ }
319
+
320
+ .mapp-dir-renderer img {
321
+ max-width: none;
322
+ }
323
+
324
+ .mapp-dir-renderer .adp-marker {
325
+ margin: 5px;
326
+ }
327
+
328
+ .mapp-dir-icon { cursor: pointer; display: inline-block; vertical-align: middle; margin: 0; padding: 0; background: transparent url('../images/directions.png') no-repeat center center; }
329
.mapp-dir-car { width: 15px; height: 12px; background-position: 0px -96px; }
330
+ .mapp-dir-bus { width: 10px; height: 15px; background-position: 0px -426px; }
331
.mapp-dir-walk { width: 10px; height: 16px; background-position: 0px -489px; }
332
.mapp-dir-bike { width: 17px; height: 14px; background-position: 0px -340px; }
333
.mapp-dir-transit { width: 17px; height: 14px; background-position: 0px -425px; }
336
337
.mapp-dir-letter { cursor: move; display: inline-block; vertical-align: middle; margin: 0; padding: 0; background: transparent url('../images/directions.png') no-repeat; }
338
.mapp-dir-a { width: 24px; height: 24px; background-position: 0px -140px; }
339
+ .mapp-dir-b { width: 24px; height: 24px; background-position: 0px -71px; }
340
.mapp-dir-dot { width: 9px; height: 10px; background-position: 0px -108px; }
341
342
/*
373
vertical-align: baseline;
374
}
375
376
+ /*
377
+ -----------------------------------------------------------------------------------
378
+ CSS tables
379
+ -----------------------------------------------------------------------------------
380
+ */
381
+ .mapp-table {
382
+ display: table;
383
+ }
384
+
385
+ .mapp-table > div { display: table-row; }
386
+ .mapp-table > div > div, .mapp-table > div > label { display: table-cell; }
387
+
388
/*
389
-----------------------------------------------------------------------------------
390
Misc
391
-----------------------------------------------------------------------------------
392
*/
393
394
+ .mapp-close {
395
+ background: transparent url("../images/close.png") no-repeat;
396
+ cursor: pointer;
397
+ display: inline-block;
398
+ height: 15px;
399
+ margin: 0;
400
+ opacity: 0.6;
401
+ padding: 0;
402
+ position: absolute;
403
+ right: 5px;
404
+ top: 5px;
405
+ width: 15px;
406
}
407
408
+ .mapp-close:hover {
409
+ opacity: 1;
410
}
411
412
+ /* Icons */
413
+ .mapp-icon {
414
+ max-width: 32px !important; /* 2012 tries to override */
415
+ max-height: 32px;
416
vertical-align: middle;
417
+ box-shadow: none !important; /* 2012 applies box shadow to all images */
418
}
419
420
/* Error messages, e.g. invalid address */
426
border: 1px solid red !important;
427
}
428
429
.mapp-spinner {
430
display: inline-block;
431
height:16px;
435
background: transparent url(../images/loading.gif) no-repeat center center;
436
}
437
438
+ *[data-mapp-action] {
439
+ cursor: pointer;
440
}
441
442
+ /* Max-size element */
443
+ .mapp-max {
444
+ width: 100%;
445
}
446
css/mappress_admin.css CHANGED
@@ -24,6 +24,10 @@
24
visibility: hidden;
25
}
26
27
tr:hover > td > .mapp-m-actions {
28
visibility: visible;
29
}
@@ -46,6 +50,38 @@ table.mapp-e-editor {
46
width: 100%;
47
}
48
49
.mapp-e-editor td {
50
vertical-align: top;
51
}
@@ -83,6 +119,10 @@ table.mapp-e-editor {
83
visibility: hidden;
84
}
85
86
tr:hover > td > .mapp-e-actions {
87
visibility: visible;
88
}
@@ -90,8 +130,8 @@ tr:hover > td > .mapp-e-actions {
90
.mapp-e-icon {
91
vertical-align: top;
92
padding-right: 5px;
93
- max-height: 32px;
94
- max-width: 32px;
95
}
96
97
.mapp-e-infobox {
@@ -124,13 +164,35 @@ tr:hover > td > .mapp-e-actions {
124
width: 350px;
125
}
126
127
- #mapp_e_poi_icon_picker .mapp-icon-picker-body {
128
- max-height: 250px;
129
- width: 400px;
130
- overflow: auto;
131
}
132
133
134
135
/*
136
-----------------------------------------------------------------------------------
@@ -138,134 +200,121 @@ tr:hover > td > .mapp-e-actions {
138
-----------------------------------------------------------------------------------
139
*/
140
141
- #mapp_icon_picker_dialog {
142
- border: 1px solid gray;
143
- width: 350px;
144
- position: absolute;
145
}
146
147
- .mapp-icon-picker {
148
background-color: white;
149
- padding: 5px;
150
- }
151
-
152
- .mapp-icon-picker-menu {
153
- padding-bottom: 5px;
154
}
155
156
- .mapp-icon-picker-body {
157
- max-height: 200px;
158
overflow: auto;
159
}
160
161
- .mapp-icon-picker ul {
162
- list-style-type: none;
163
- margin: 0px;
164
- line-height: normal;
165
- user-select: none;
166
}
167
168
- .mapp-icon-picker li {
169
border: 2px solid white;
170
- display: inline-block;
171
user-select: none;
172
- margin: 0px;
173
}
174
175
- .mapp-icon-picker li:hover {
176
border: 2px solid blue;
177
}
178
179
- /* Default icon appears as an empty dotted box */
180
- li.mapp-default-icon {
181
- width: 32px;
182
- height: 32px;
183
- border: 1px dotted black;
184
- }
185
186
- .mapp-icon-sprite { background: transparent url('../images/icons.png') no-repeat; width: 32px; height: 32px }
187
188
/*
189
-----------------------------------------------------------------------------------
190
Color picker
191
-----------------------------------------------------------------------------------
192
*/
193
- #mapp_colorpicker:before {
194
- position: absolute;
195
- top: -7px;
196
- left: 9px;
197
display: inline-block;
198
- border-right: 7px solid transparent;
199
- border-bottom: 7px solid #ccc;
200
- border-left: 7px solid transparent;
201
- border-bottom-color: rgba(0, 0, 0, 0.2);
202
- content: '';
203
}
204
205
- #mapp_colorpicker:after {
206
position: absolute;
207
- top: -6px;
208
- left: 10px;
209
display: inline-block;
210
- border-right: 6px solid transparent;
211
- border-bottom: 6px solid #ffffff;
212
- border-left: 6px solid transparent;
213
- content: '';
214
}
215
216
- #mapp_colorpicker {
217
- position: absolute;
218
- top: 100%;
219
- left: 0;
220
- z-index: 10000;
221
- display: none;
222
- float: left;
223
- min-width: 160px;
224
- max-width: 209px;
225
- padding: 4px 0px 0px 4px;
226
- margin: 1px 0 0;
227
- list-style: none;
228
- background-color: #ffffff;
229
- border: 1px solid #ccc;
230
- border: 1px solid rgba(0, 0, 0, 0.2);
231
- *border-right-width: 2px;
232
- *border-bottom-width: 2px;
233
-
234
- -webkit-border-radius: 5px;
235
- -moz-border-radius: 5px;
236
- border-radius: 5px;
237
-
238
- -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
239
- -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
240
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
241
-
242
- -webkit-background-clip: padding-box;
243
- -moz-background-clip: padding;
244
- background-clip: padding-box;
245
- }
246
-
247
- #mapp_colorpicker ul {
248
- margin: 0;
249
- padding: 0;
250
- list-style-type: none;
251
}
252
253
- #mapp_colorpicker ul li {
254
- float: left;
255
- margin: 0 4px 4px 0;
256
}
257
258
- #mapp_colorpicker ul li a {
259
- display: block;
260
- width: 15px;
261
- height: 15px;
262
263
- text-indent: -100000px;
264
}
265
266
- #mapp_colorpicker ul li a:hover {
267
- width: 13px;
268
- height: 13px;
269
270
- border: 1px solid black;
271
- }
24
visibility: hidden;
25
}
26
27
+ .mobile .mapp-m-actions {
28
+ visibility: visible;
29
+ }
30
+
31
tr:hover > td > .mapp-m-actions {
32
visibility: visible;
33
}
50
width: 100%;
51
}
52
53
+ .mapp-searchbox {
54
+ display: block;
55
+ width: 100%;
56
+ max-width: 500px;
57
+ }
58
+
59
+ .mapp-searchbox input {
60
+ vertical-align: middle;
61
+ width: 100%;
62
+ }
63
+
64
+ .mapp-search-button, .mapp-geolocate-button {
65
+ background-repeat: no-repeat !important;
66
+ background-position: center center !important;
67
+ margin: 0 !important;
68
+ vertical-align: middle !important;
69
+ }
70
+
71
+ .mapp-search-button:before, #mappress .mapp-geolocate-button:before {
72
+ content: "XX";
73
+ visibility: hidden;
74
+ }
75
+
76
+ .mapp-search-button, .mapp-search-button:hover, .mapp-search-button:focus {
77
+ background-image: url('../images/search.png') !important;
78
+ }
79
+
80
+ .mapp-geolocate-button, .mapp-geolocate-button:hover, .mapp-geolocate-button:focus {
81
+ background-image: url('../images/geolocate-2x.png') !important;
82
+ background-size: 18px 18px !important;
83
+ }
84
+
85
.mapp-e-editor td {
86
vertical-align: top;
87
}
119
visibility: hidden;
120
}
121
122
+ .mobile .mapp-e-actions {
123
+ visibility: visible;
124
+ }
125
+
126
tr:hover > td > .mapp-e-actions {
127
visibility: visible;
128
}
130
.mapp-e-icon {
131
vertical-align: top;
132
padding-right: 5px;
133
+ max-height: 24px;
134
+ max-width: 24px;
135
}
136
137
.mapp-e-infobox {
164
width: 350px;
165
}
166
167
+
168
+ /*
169
+ -----------------------------------------------------------------------------------
170
+ Settings
171
+ -----------------------------------------------------------------------------------
172
+ */
173
+ .form-table table {
174
+ border-collapse: collapse;
175
+ width: auto;
176
+ height: auto;
177
+ border: 1px solid #dfdfdf;
178
}
179
180
+ .form-table table th {
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: 7px;
187
+ }
188
189
+ .form-table table td {
190
+ width: auto;
191
+ height: auto;
192
+ border-bottom: 1px solid lightgray;
193
+ vertical-align: top;
194
+ padding: 5px;
195
+ }
196
197
/*
198
-----------------------------------------------------------------------------------
200
-----------------------------------------------------------------------------------
201
*/
202
203
+ .mapp-iconpicker-toggle {
204
+ max-width: 24px;
205
+ max-height: 24px;
206
+ vertical-align: middle;
207
}
208
209
+ /* Panel */
210
+ .mapp-iconpicker {
211
background-color: white;
212
+ border: 1px solid gray;
213
+ display: none;
214
+ height: 330px;
215
+ position: absolute;
216
+ width: 350px;
217
+ z-index: 100300;
218
}
219
220
+ .mapp-iconpicker-wrapper {
221
+ height: 275px;
222
+ margin: 5px 20px 0 0;
223
overflow: auto;
224
+ padding: 5px;
225
+ user-select: none;
226
}
227
228
+ .mapp-iconpicker-toolbar {
229
+ padding: 5px;
230
+ border-top: 1px solid lightgray;
231
}
232
233
+ .mapp-iconpicker .mapp-icon, .mapp-iconpicker .mapp-icon-sprite {
234
border: 2px solid white;
235
user-select: none;
236
+ margin: 0;
237
}
238
239
+ .mapp-iconpicker img.mapp-icon:hover, .mapp-iconpicker span.mapp-icon-sprite:hover {
240
border: 2px solid blue;
241
}
242
243
+ .mapp-iconpicker .mapp-icon { max-width: 32px; }
244
+ .mapp-iconpicker .mapp-icon-sprite { display: inline-block; background: transparent url('../images/icons.png') no-repeat; width: 32px; height: 32px }
245
246
247
/*
248
-----------------------------------------------------------------------------------
249
Color picker
250
-----------------------------------------------------------------------------------
251
*/
252
+
253
+ .mapp-colorpicker-toggle {
254
+ border: 1px solid lightgray;
255
+ cursor: pointer;
256
display: inline-block;
257
+ height: 20px;
258
+ margin: 1px;
259
+ vertical-align: middle;
260
+ width: 20px;
261
}
262
263
+ .mapp-colorpicker {
264
+ background-color: white;
265
+ border: 1px solid gray;
266
+ box-shadow: 5px 5px 10px #888;
267
+ display: none;
268
+ line-height: 1;
269
+ padding: 5px;
270
position: absolute;
271
+ width: 265px;
272
+ z-index: 100200;
273
+ }
274
+
275
+ .mapp-colorpicker span {
276
+ border: 2px solid lightgray;
277
display: inline-block;
278
+ height: 15px;
279
+ margin: 1px;
280
+ width: 15px;
281
}
282
283
+ .mapp-colorpicker span:hover {
284
+ border: 2px solid black;
285
+ height: 15px;
286
+ width: 15px;
287
+ }
288
+
289
+ /*
290
+ -----------------------------------------------------------------------------------
291
+ Dropdown
292
+ -----------------------------------------------------------------------------------
293
+ */
294
+
295
+ .mapp-dropdown {
296
+ display: inline-block;
297
+ position: relative;
298
}
299
300
+ .mapp-dropdown .mapp-dropdown-panel {
301
+ display: none;
302
+ position: absolute;
303
+ z-index: 160000;
304
}
305
306
307
+ .mapp-dropdown.mapp-open .mapp-dropdown-panel {
308
+ display: block;
309
}
310
311
+ .mapp-dropdown-backdrop {
312
+ display: none;
313
+ position: fixed;
314
+ left: 0;
315
+ right: 0;
316
+ top: 0;
317
+ bottom: 0;
318
+ z-index: 159900;
319
+ }
320
forms/map_editor.php CHANGED
@@ -1,11 +1,19 @@
1
- <div>
2
- <?php _e('Add POI', 'mappress'); ?>:
3
- <input size='60' type='text' id='mapp_e_saddr' />
4
- <button id='mapp_e_search' class='button-primary'><span class='mapp-search-button'></span></button>
5
- <a href='#' id='mapp_e_myloc'><?php _e('My location', 'mappress'); ?></a>
6
- <div id='mapp_e_saddr_err' style='display:none'></div>
7
</div>
8
-
9
<div class='mapp-e-edit-panel'>
10
<table class='mapp-e-editor'>
11
<tr>
@@ -21,6 +29,6 @@
21
</td>
22
</tr>
23
</table>
24
- </div>
25
-
26
<?php require Mappress::$basedir . "/forms/map_editor_infobox.php"; ?>
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'); ?>'/>
6
+ </div>
7
+ <div>
8
+ <button id='mapp_e_search' class='button button-primary mapp-search-button'></button>
9
+ </div>
10
+ <div>
11
+ <button id='mapp_e_myloc' class='button mapp-geolocate-button' title='<?php _e('My location', 'mappress');?>'></button>
12
+ </div>
13
+ </div>
14
</div>
15
+ <div id='mapp_e_saddr_err' style='display:none'></div>
16
+
17
<div class='mapp-e-edit-panel'>
18
<table class='mapp-e-editor'>
19
<tr>
29
</td>
30
</tr>
31
</table>
32
+ </div>
33
+
34
<?php require Mappress::$basedir . "/forms/map_editor_infobox.php"; ?>
forms/map_editor_infobox.php CHANGED
@@ -14,22 +14,15 @@
14
<div>
15
<input id='mapp_e_poi_title' type='text' />
16
<input id='mapp_e_poi_iconid' type='hidden' />
17
- <img id='mapp_e_poi_icon' class='mapp-icon' src='<?php echo Mappress::$baseurl . '/images/cleardot.gif';?>' />
18
</div>
19
20
- <div>
21
- <span id='mapp_e_poi_polyline_fields' style='display: none;'>
22
- <?php _e("Line: ", 'mappress'); ?>
23
- <input type='text' size='7' id='mapp_stroke_color' class='color'/>
24
- <?php echo Mappress_Settings::dropdown($weights, '', '', array('id' => 'mapp_stroke_weight', 'title' => __('Weight', 'mappress')) ); ?>
25
- <?php echo Mappress_Settings::dropdown($opacities, '', '', array('id' => 'mapp_stroke_opacity', 'title' => __('Opacity', 'mappress')) ); ?>
26
- </span>
27
-
28
- <span id='mapp_e_poi_polygon_fields' style='display: none;'>
29
- <?php _e("Fill: ", 'mappress'); ?>
30
- <input type='text' size='7' id='mapp_fill_color' />
31
- <?php echo Mappress_Settings::dropdown($opacities, '', '', array('id' => 'mapp_fill_opacity', 'title' => __('Opacity', 'mappress')) ); ?>
32
- </span>
33
</div>
34
35
<div id='mapp_e_poi_kml_fields' style='display: none'>
@@ -42,12 +35,8 @@
42
</div>
43
44
<div>
45
- <input id='mapp_e_save_poi' class='button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress'); ?>' />
46
<input id='mapp_e_cancel_poi' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress'); ?>' />
47
</div>
48
</div>
49
-
50
- <div id='mapp_e_poi_icon_picker'></div>
51
- </div>
52
-
53
- <?php if (class_exists('Mappress_Pro')) : echo Mappress_Icons::get_icon_picker(); endif; ?>
14
<div>
15
<input id='mapp_e_poi_title' type='text' />
16
<input id='mapp_e_poi_iconid' type='hidden' />
17
</div>
18
19
+ <div id='mapp_e_poi_poly_fields' style='display: none;'>
20
+ <?php _e('Color', 'mappress'); ?>:
21
+ <span id='mapp_e_poi_color' class='mapp-colorpicker-toggle' tabindex="0"></span>
22
+ <?php _e('Opacity', 'mappress'); ?>:
23
+ <?php echo Mappress_Settings::dropdown($opacities, '', '', array('id' => 'mapp_e_poi_opacity', 'title' => __('Opacity', 'mappress')) ); ?>
24
+ <?php _e('Line', 'mappress'); ?>:
25
+ <?php echo Mappress_Settings::dropdown($weights, '', '', array('id' => 'mapp_e_poi_weight', 'title' => __('Weight', 'mappress')) ); ?>
26
</div>
27
28
<div id='mapp_e_poi_kml_fields' style='display: none'>
35
</div>
36
37
<div>
38
+ <input id='mapp_e_save_poi' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress'); ?>' />
39
<input id='mapp_e_cancel_poi' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress'); ?>' />
40
</div>
41
</div>
42
+ </div>
forms/map_media.php CHANGED
@@ -22,18 +22,18 @@
22
<td><?php _e('Map ID', 'mappress');?>:</td>
23
<td><span id='mapp_m_mapid'></span></td>
24
</tr>
25
-
26
<tr>
27
<td><?php _e('Map Title', 'mappress');?>:</td>
28
<td><input id='mapp_m_title' type='text' size='40' /></td>
29
</tr>
30
-
31
<tr>
32
<td><?php _e('Size', 'mappress');?>:</td>
33
<td>
34
<?php
35
$sizes = array();
36
- foreach(Mappress::$options->sizes as $i => $size)
37
$sizes[] = "<a href='#' class='mapp-m-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
38
echo implode(' | ', $sizes);
39
?>
@@ -43,8 +43,8 @@
43
</table>
44
</div>
45
<div>
46
- <input class='button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress'); ?>' />
47
- <input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress'); ?>' />
48
<input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress'); ?>' />
49
</div>
50
<hr/>
22
<td><?php _e('Map ID', 'mappress');?>:</td>
23
<td><span id='mapp_m_mapid'></span></td>
24
</tr>
25
+
26
<tr>
27
<td><?php _e('Map Title', 'mappress');?>:</td>
28
<td><input id='mapp_m_title' type='text' size='40' /></td>
29
</tr>
30
+
31
<tr>
32
<td><?php _e('Size', 'mappress');?>:</td>
33
<td>
34
<?php
35
$sizes = array();
36
+ foreach(Mappress::$options->sizes as $i => $size)
37
$sizes[] = "<a href='#' class='mapp-m-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
38
echo implode(' | ', $sizes);
39
?>
43
</table>
44
</div>
45
<div>
46
+ <input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress'); ?>' />
47
+ <input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress'); ?>' />
48
<input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress'); ?>' />
49
</div>
50
<hr/>
images/close-2x.png ADDED
Binary file
images/close.png ADDED
Binary file
images/delete.png DELETED
Binary file
images/geolocate-2x.png ADDED
Binary file
images/icons.png CHANGED
Binary file
images/news.png DELETED
Binary file
images/next-off.png DELETED
Binary file
images/next.png DELETED
Binary file
images/prev-off.png DELETED
Binary file
images/prev.png DELETED
Binary file
images/remove.png DELETED
Binary file
images/rss.png DELETED
Binary file
images/swap.png DELETED
Binary file
js/mappress.min.js CHANGED
@@ -1 +1 @@
1
- var 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&&(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()},i=this.overlay.getDefaultViewport(),n.viewport={sw:{lat:i.getSouthWest().lat(),lng:i.getSouthWest().lng()},ne:{lat:i.getNorthEast().lat(),lng:i.getNorthEast().lng()}}),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)})}}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.setZIndex(0);this.setTooltip();google.maps.event.addListener(this.overlay,"click",function(n){t.open(n)})},setEditable:function(n){var t=this;if(this.isPoly()){t.overlay.setEditable(n);n&&(google.maps.event.addListener(this.overlay,"click",function(){t.overlay.setEditable(!0)}),google.maps.event.addListener(this.overlay,"mouseover",function(){t.overlay.setEditable(!0)}),(this.type=="polyline"||this.type=="polygon")&&google.maps.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)}));return}this.type!="kml"&&(this.overlay.setDraggable(n),n?(this.setTooltip(mappl10n.click_and_drag),google.maps.event.addListener(this.overlay,"dragstart",function(){t.map.closeInfoWindow()}),google.maps.event.addListener(this.overlay,"dragend",function(n){t.viewport=null;t.map.openPoi(t);google.maps.event.trigger(t.map,"dragend",t,n)})):this.setTooltip())},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){if(!this.type){this.overlay.setIcon(null);this.overlay.setShadow(null);var t=mapp.Icons.get(n);t&&(t.anchor?(this.overlay.setIcon(new google.maps.MarkerImage(t.url,null,null,t.anchor,null)),this.overlay.setShadow(new google.maps.MarkerImage(t.shadowUrl,null,null,t.anchor,null))):(this.overlay.setIcon(t.url),this.overlay.setShadow(t.shadowUrl)))}},getImage:function(n){var t=mapp.Icons.getUrl(this.iconid);return n=n?n:"","<img class='"+n+"' src='"+t+"' />"},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();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")}};mapp=window.mapp||{};mapp.Map=function(n){function pt(){var h,v,f;if(!c&&(c=["roadmap","satellite","terrain","hybrid"],mapp.Styles))for(h in mapp.Styles)c.push(h);for(o=o?new google.maps.LatLng(n.center.lat,n.center.lng):new google.maps.LatLng(0,0),v={backgroundColor:"transparent",center:o,draggable:fi,keyboardShortcuts:at,mapTypeControl:vi,mapTypeControlOptions:{style:yi,mapTypeIds:c},maxZoom:wi,minZoom:bi,overviewMapControl:ki,overviewMapControlOptions:{opened:di},panControl:gi,rotateControl:tr,scaleControl:ir,scrollwheel:rr,streetViewControl:er,tilt:sr,zoom:a?a:0,zoomControl:ar,zoomControlOptions:{style:vr}},i=new google.maps.Map(l,v),f=0;f<t.length;f++)t[f].setMap(r);yr();r.setMapTypeId(bt);pr();s=="ib"?(mapp.InfoBox.prototype=new google.maps.OverlayView,u=new mapp.InfoBox):u=new google.maps.InfoWindow;s=="ib"&&(at=!1);ot=new mapp.Geocoder(r,ai,ii);ct!="none"&&(e=new mapp.Directions(r,ct,ot,ri,ui));r.initCenter();dt&&jQuery(window).resize(function(){r.resize()})}function yr(){var n,t,r;for(n in mapp.Styles)t=mapp.Styles[n],r=new google.maps.StyledMapType(t,{name:n}),i.mapTypes.set(n,r),or==n&&i.setOptions({styles:t})}function pr(){cr&&st("traffic",mappl10n.traffic,hi);gt&&st("bicycling",mappl10n.bike,oi);lr&&st("transit",mappl10n.transit,ci)}function st(n,t,r){var e=f+"_"+n,o=r?"checked='checked'":"",s="<div class='gmnoprint mapp-control'><input type='checkbox' id='"+e+"' "+o+" /> "+t+"<\/div>",u=jQuery(s).get(0);i.controls[google.maps.ControlPosition.TOP_RIGHT].push(u);r&&wt(n);google.maps.event.clearListeners(u,"click");google.maps.event.addDomListener(u,"click",function(){wt(n)})}function wt(n){var r=f+"_"+n,t;switch(n){case"transit":d=d?d:new google.maps.TransitLayer;t=d;break;case"traffic":k=k?k:new google.maps.TrafficLayer;t=k;break;case"bicycling":b=b?b:new google.maps.BicyclingLayer;t=b}t.getMap()?(jQuery("#"+r).prop("checked",!1),t.setMap(null)):(jQuery("#"+r).prop("checked",!0),t.setMap(i))}var o=n.center,y=n.height,h=n.mapid,bt=n.mapTypeId?n.mapTypeId:"roadmap",kt=n.metaKey,f=n.name,ht=n.options,p=n.query,it=n.title,w=n.width,a=parseInt(n.zoom,10),dt=n.options.adaptive,gt=n.options.bicycling,ni=n.options.bigHeight,ti=n.options.bigWidth,ii=n.options.country,rt=n.options.dataTables,ct=n.options.directions,ri=n.options.directionsServer,ui=n.options.directionsUnits,fi=n.options.draggable,ei=n.options.editable,ut=n.options.from,oi=n.options.initialBicycling,si=n.options.initialOpenDirections,ft=n.options.initialOpenInfo,hi=n.options.initialTraffic,ci=n.options.initialTransit,li=n.options.iwFix,s=n.options.iwType,lt=n.options.iwDisableAutoPan,at=n.options.keyboardShortcuts,ai=n.options.language,vi=n.options.mapTypeControl,yi=parseInt(n.options.mapTypeControlStyle,10),c=n.options.mapTypeIds,pi=n.options.mashupClick,wi=parseInt(n.options.maxZoom),bi=parseInt(n.options.minZoom),ki=n.options.overviewMapControl,di=n.options.overviewMapControlOpened,gi=n.options.panControl,nr=n.options.poiZoom,tr=n.options.rotateControl,ir=n.options.scaleControl,rr=n.options.scrollwheel,ur=n.height,fr=n.width,er=n.options.streetViewControl,or=n.options.style,sr=parseInt(n.options.tilt),et=n.options.to,hr=n.options.tooltips,cr=n.options.traffic,lr=n.options.transit,ar=n.options.zoomControl,vr=parseInt(n.options.zoomControlStyle,10),r=this,b,k,d,e=null,g,vt,nt,l,v,ot=null,i=null,u=null,t=[],yt=!1,tt=0;this.display=function(){if(g=jQuery("#"+f+"_dialog"),vt=jQuery("#"+f+"_directions"),nt=jQuery("#"+f+"_layout"),l=document.getElementById(f),v=jQuery("#"+f+"_poi_list"),!l){typeof console!="undefined"&&console.log("MapPress: Missing map name or container for map: "+f);return}if(typeof google=="undefined"){typeof console!="undefined"&&console.log("MapPress: Google API not loaded");return}if(vt.append(jQuery("#"+f+"_directions_").contents()),v.append(jQuery("#"+f+"_poi_list_").contents()),this.setDataTables(),p){this.ajaxQuery(function(){pt()});return}r.setPois(n.pois,!1);pt()};this.ajaxQuery=function(n,t){e&&e.close();u&&r.closeInfoWindow();r.setDialog();t=t?t:1;var i={action:"mapp_query",name:f,query:p,options:ht};mapp.Ajax("POST",i,function(t){t.status=="OK"&&(r.hideDialog(),r.setPois(t.data.pois,!0),r.setPoiList(t.data.poiList),n&&n())})};this.getQuery=function(){return p};this.setQuery=function(n){p=n};this.setDialog=function(n){n=n?n:'<span class="mapp-spinner"><\/span>'+mappl10n.loading;n='<div class="mapp-dialog-inner">'+n+"<\/div>";jQuery(g).html(n);jQuery(g).show()};this.hideDialog=function(){jQuery(g).hide()};this.setPoiList=function(n){typeof n=="string"?v.html(n):v.append(n);this.setDataTables()};this.setDataTables=function(){if(rt&&typeof jQuery.fn.dataTable!="undefined"){var n=rt==!0?{bFilter:!1,bPaginate:!1}:rt;jQuery("table",v).dataTable(n)}};this.getOptions=function(){return ht};this.getResized=function(){return yt};this.show=function(){nt.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];i.setMapTypeId(n)};this.setCenter=function(n,t){i.setCenter(new google.maps.LatLng(n,t))};this.setZoom=function(n){i.setZoom(n)};this.getPoiZoom=function(){return parseInt(nr)};this.poiToFront=function(n){if(tt++,tt>google.maps.Marker.MAX_ZINDEX){tt=1;for(var i=0;i<t.length;i++)t[i].setZIndex(0)}n.setZIndex(tt)};this.getMap=function(){return i};this.getGeocoder=function(){return ot};this.getName=function(){return f};this.setName=function(n){f=n};this.getMapid=function(){return h};this.setMapid=function(n){h=n};this.getTitle=function(){return it};this.setTitle=function(n){it=n};this.getWidth=function(){return w};this.setWidth=function(n){w=n};this.getHeight=function(){return y};this.setHeight=function(n){y=n};this.getInfoWindow=function(){return u};this.getEditable=function(){return ei};this.getTooltips=function(){return hr};this.getPoi=function(n){return typeof n=="string"&&(n=parseInt(n,10)),t[n]};this.getPoiById=function(n){for(var i=0;i<t.length;i++)if(t[i].postid==n)return t[i];return null};this.getPois=function(){return t};this.insertPoi=function(n){t.unshift(n);n.setMap(this)};this.addPoi=function(n){t.push(n);n.setMap(this)};this.removePoi=function(n){var i=jQuery.inArray(n,t);i!=-1&&(t[i].setMap(null),t.splice(i,1))};this.setPois=function(n,i){for(var u,r=0;r<t.length;r++)t[r].setMap(null);for(t=[],r=0;r<n.length;r++)u=new mapp.Poi,u.fromJSON(n[r]),t.push(u),i&&u.setMap(this)};this.showPois=function(){for(var n=0;n<t.length;n++)t[n].setVisible(!0)};this.hidePois=function(){for(var n=0;n<t.length;n++)t[n].setVisible(!1)};this.sortPois=function(n){for(var u,i=Array(),r=0;r<n.length;r++){if(u=parseInt(n[r]),isNaN(u))return!1;i.push(t[u])}return i.length!=t.length?!1:(t=i,!0)};this.openPoi=function(n,t){var u,i;if(s&&s!="none"){if(pi=="post"&&n.postid){window.location.assign(mappl10n.sitreUrl+"?p="+n.postid);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,t,f){if(e&&e.close(),s&&s!="none"){if(this.poiToFront(n),u.close(),u.setContent(t),s!="ib"&&li&&this.fixInfoWindow(),google.maps.event.addListenerOnce(u,"domready",function(){google.maps.event.trigger(r,"poidomready",n)}),lt){u.setOptions({disableAutoPan:lt});var o=i.getBounds();o.contains(n.getPosition())||n.center()}n.type=="kml"&&f?(u.setOptions({pixelOffset:f.pixelOffset,position:f.latLng}),u.open(i)):n.type?(u.setOptions({position:n.getPosition()}),u.open(i)):u.open(i,n.overlay)}};this.closeInfoWindow=function(){u.close()};this.fixInfoWindow=function(){google.maps.event.addListenerOnce(u,"domready",function(){setTimeout(function(){var n=jQuery(".gm-style-iw",l);n.width(n.width()+1+"px");n.height(n.height()+1+"px");n.css("overflow")=="auto"&&(n.css("overflow","hidden"),setTimeout(function(){n.css("overflow","auto")},100))},0)})};this.resize=function(n,t){var r=i.getCenter();n&&t&&(jQuery(l).width(n),jQuery(l).height(t),w=n,y=t);google.maps.event.trigger(i,"resize");i.setCenter(r);yt=!0;return};this.initCenter=function(){if(this.closeInfoWindow(),google.maps.event.addListenerOnce(i,"idle",function(){r.initWindows()}),o&&o.lat()&&o.lng())i.setCenter(o),i.setZoom(a);else{var n=a?a:!0;r.autoCenter(n)}};this.initWindows=function(){var i,n,t;e&&si?(n=isNaN(ut)?ut:this.getPoi(ut),t=isNaN(et)?et:this.getPoi(et),typeof n=="object"?n.center(!1):typeof t=="object"&&t.center(!1),r.openDirections(n,t,!1)):ft&&(i=isNaN(parseInt(ft))?r.getPoi(0):r.getPoi(parseInt(ft)),i&&i.open())};this.autoCenter=function(n){var r,u,f;if(t.length==0){this.setCenter(0,0);typeof n=="number"?i.setZoom(n):i.setZoom(1);return}if(t.length==1){t[0].center(n);return}for(r=new google.maps.LatLngBounds,u=0;u<t.length;u++)f=t[u].getBounds(),r=f?r.union(f):r.extend(t[u].getPosition());if(n===!1){i.setCenter(r.getCenter());return}if(typeof n=="number"){i.setCenter(r.getCenter());i.setZoom(n);return}i.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(nt).width(ti),this.resize("100%",ni)):(jQuery(n).text(t),jQuery(nt).width(fr),this.resize("100%",ur))};this.toJSON=function(){return{center:{lat:i.getCenter().lat(),lng:i.getCenter().lng()},height:y,mapid:h,mapTypeId:i.getMapTypeId(),metaKey:kt,pois:t,title:it,width:w,zoom:i.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.postid};mapp.Ajax("POST",i,function(t){t.status=="OK"&&(h=t.data.mapid,n(t.data))})};this.ajaxDelete=function(n){h||n();var t={action:"mapp_delete",mapid:h};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.ajaxurl,data:t,success:function(n){if(n.output&&mappl10n.ajaxErrors&&alert("AJAX Error\r\n"+n.output),n.status=="OK"){i(n);return}mappl10n.ajaxErrors&&(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)}})};mapp.on=function(n,t,i,r){if(jQuery.fn.on)jQuery(n).on(t,i,r);else i?jQuery(n+" "+i).live(t,r):jQuery(n).live(t,r)};mapp.on("body","tabsshow",null,function(n,t){t&&t.panel&&jQuery(".mapp-canvas",t.panel).each(function(){var t=jQuery(this).attr("id"),n;t&&(n=window[t],n.getResized()||(n.resize(),n.initCenter()))})});mapp.on("body","tabsactivate",null,function(n,t){t&&t.newPanel&&jQuery(".mapp-canvas",t.newPanel).each(function(){var t=jQuery(this).attr("id"),n;t&&(n=window[t],n.getResized()||(n.resize(),n.initCenter()))})});this.JSON||(this.JSON={}),function(){function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var h,c,l,a,v=n,s,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,s=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,h=0;h<a;h+=1)s[h]=r(h,o)||"null";return l=s.length===0?"[]":n?"[\n"+n+s.join(",\n"+n)+"\n"+v+"]":"["+s.join(",")+"]",n=v,l}if(t&&typeof t=="object")for(a=t.length,h=0;h<a;h+=1)c=t[h],typeof c=="string"&&(l=r(c,o))&&s.push(f(c)+(n?": ":":")+l);else for(c in o)Object.hasOwnProperty.call(o,c)&&(l=r(c,o))&&s.push(f(c)+(n?": ":":")+l);return l=s.length===0?"{}":n?"{\n"+n+s.join(",\n"+n)+"\n"+v+"}":"{"+s.join(",")+"}",n=v,l}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(u=n="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if((t=f)&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw Error("JSON.stringify");return r("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&&typeof u=="object")for(f in u)Object.hasOwnProperty.call(u,f)&&(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),e.lastIndex=0,e.test(n)&&(n=n.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*#x2F;.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}(),function(){jQuery.fn.mappColorpicker=function(n){n=jQuery.extend({colors:["800000","FF0000","FFA500","FFFF00","808000","800080","FF00FF","FFFFFF","00FF00","008000","000080","0000FF","00FFFF","008080","000000","808080","C0C0C0",]},n);var r=function(n){var t=n.substr(1,2),i=n.substr(3,2),r=n.substr(5,2);return.212671*t+.71516*i+.072169*r<.5?"ffffff":"000000"},i=function(n){var t=n.val();n.css({"background-color":t,color:"#"+r(t)})},t=jQuery("#mapp_colorpicker");return t.length||(t=jQuery('<div id="mapp_colorpicker"><\/div>').appendTo(document.body).hide()),jQuery(document).click(function(n){jQuery(n.target).is("#mapp_colorpicker")||jQuery(n.target).parents("#mapp_colorpicker").length||t.hide()}),this.each(function(){var r=jQuery(this),u;i(r);u="";jQuery.each(n.colors,function(n,t){u+='<li><a href="#" style="background-color: #'+t+';">'+t+"<\/a><\/li>"});r.keydown(function(n){n.keyCode===9&&t.hide()});r.click(function(){var n=r.offset();return t.html("<ul>"+u+"<\/ul>").css({position:"absolute",left:n.left,top:n.top+r.outerHeight()}).show(),jQuery("a",t).click(function(){var n=jQuery(this).text();return r.val("#"+n),r.change(),t.hide(),!1}),!1});r.change(function(){i(r)})})}}();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,0);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 n;jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-walk")?n="w":jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-bike")&&(n="b");this.openGoogle(jQuery(".mapp-dir-saddr",f).val(),jQuery(".mapp-dir-daddr",f).val(),3,n)};this.openGoogle=function(n,t,i,r){var u=o;u+="?saddr="+encodeURIComponent(n);u+="&daddr="+encodeURIComponent(t);u+="&pw="+i;u+=r?"&dirflg="+r:"";window.open(u)}};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,h,c,r;o=i;h=t;c=n;s=c.getMap();r=this;this.geocode=function(n,t){var i=n instanceof google.maps.LatLng?{latLng:n}:{address:n,region:o,language:h};i.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.StandardIcons=["blue-dot","ltblue-dot","green-dot","pink-dot","purple-dot","red-dot","yellow-dot","blue","green","lightblue","pink","purple","red","yellow","blue-pushpin","grn-pushpin","ltblu-pushpin","pink-pushpin","purple-pushpin","red-pushpin","ylw-pushpin","bar","coffeehouse","man","wheel_chair_accessible","woman","restaurant","snack_bar","parkinglot","bus","cabs","ferry","helicopter","plane","rail","subway","tram","truck","info","info_circle","rainy","sailing","ski","snowflake_simple","swimming","water","fishing","flag","marina","campfire","campground","cycling","golfer","hiker","horsebackriding","motorcycling","picnic","POI","rangerstation","sportvenue","toilets","trail","tree","arts","conveniencestore","dollar","electronics","euro","gas","grocerystore","homegardenbusiness","mechanic","movies","realestate","salon","shopping","yen","caution","earthquake","fallingrocks","firedept","hospitals","lodging","phone","partly_cloudy","police","postoffice-us","sunny","volcano","camera","webcam","iimm1-blue","iimm1-green","iimm1-orange","iimm1-red","iimm2-blue","iimm2-green","iimm2-orange","iimm2-red","kml","poly"];mapp.Icons.get=function(n){var t,r,i;if(n=n?n:mappl10n.defaultIcon,n&&n!=""&&typeof n!="undefined"&&typeof mappl10n.standardIconsUrl!="undefined"){if(typeof mappl10n.icons!="undefined"&&typeof mappl10n.icons[n]!="undefined")r=mappl10n.iconsUrl+n,i=mappl10n.icons[n].shadow?mappl10n.iconsUrl+mappl10n.icons[n].shadow:null,t=mappl10n.icons[n].anchor;else if(jQuery.inArray(n,mapp.Icons.StandardIcons)>=0)r=mappl10n.standardIconsUrl+n+".png",i=n.indexOf("Marker")!=-1?"msmarker.shadow.png":n+".shadow.png",i=mappl10n.standardIconsUrl+i,t=[16,32];else return;return t=t?new google.maps.Point(t[0],t[1]):null,{url:r,shadowUrl:i,anchor:t}}};mapp.Icons.getUrl=function(n){var t=mapp.Icons.get(n);return t?t.url:"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"},function(){jQuery.fn.mappIconPicker=function(n){if(typeof mappl10n.id!="undefined"&&jQuery(".mapp-icon-picker").length!=0)return n=jQuery.extend({open:null,close:null,dialog:null},n),this.each(function(){var i=jQuery(this),r,t;i.after("<img class='mapp-icon' src='"+mapp.Icons.getUrl(i.val())+"' title='"+mappl10n.click_to_change+"' />");r=i.next();r.click(function(){function e(n){var i=jQuery(n.target);jQuery(t).has(i).length||u()}function u(u){jQuery(document).off("click",e);typeof u!="undefined"&&(i.attr("name")=="mappress_options[defaultIcon]"&&(mappl10n.defaultIcon=u),i.val(u),jQuery(r).attr("src",mapp.Icons.getUrl(u)));n.close&&n.close(u);n.dialog?t.empty():t.remove()}if(t=n.dialog?n.dialog:jQuery('<div id="mapp_icon_picker_dialog"><\/div>').appendTo(document.body).hide(),t.append(jQuery("#mapp_icon_picker").contents().clone()),t.show(),!n.dialog){var f=r.offset();t.css({left:f.left-parseInt(t.outerWidth()/2)+16,top:f.top+r.outerHeight()})}return jQuery(".mapp-icon-picker-cancel",t).click(function(){return u(),!1}),jQuery(".mapp-icon-picker-default",t).click(function(){return u(null),!1}),jQuery("li",t).click(function(){return u(jQuery(this).attr("data-iconid")),!1}),n.dialog||jQuery(document).click(e),n.open&&n.open(),!1})})}}();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();google.maps.event.trigger(this,"domready")};this.draw=function(){var 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),c=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:c,left:e})};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)}}
1
+ var mapp=window.mapp||{};+function(){mapp.Map=function(n){function vt(){var s,v,f;if(!c&&(c=["roadmap","satellite","terrain","hybrid"],mappl10n.styles))for(s in mappl10n.styles)c.push(s);for(e=e?new google.maps.LatLng(n.center.lat,n.center.lng):new google.maps.LatLng(0,0),v={backgroundColor:"transparent",center:e,draggable:ri,keyboardShortcuts:ht,mapTypeControl:ci,mapTypeControlOptions:{style:li,mapTypeIds:c},maxZoom:vi,minZoom:yi,overviewMapControl:pi,overviewMapControlOptions:{opened:wi},panControl:bi,rotateControl:di,scaleControl:gi,scrollwheel:nr,streetViewControl:rr,tilt:fr,zoom:l?l:0,zoomControl:hr,zoomControlOptions:{style:cr}},i=new google.maps.Map(a,v),f=0;f<t.length;f++)t[f].setMap(r);lr();r.setMapTypeId(pt);ar();h=="ib"?(mapp.InfoBox.prototype=new google.maps.OverlayView,u=new mapp.InfoBox):u=new google.maps.InfoWindow;h=="ib"&&(ht=!1);ft=new mapp.Geocoder(r,hi,ni);ot!="none"&&(o=new mapp.Directions(r,ot,ft,ti,ii));r.initCenter()}function lr(){var n,t,r;for(n in mappl10n.styles)t=mappl10n.styles[n],r=new google.maps.StyledMapType(t,{name:n}),i.mapTypes.set(n,r),ur==n&&i.setOptions({styles:t})}function ar(){or&&et("traffic",mappl10n.traffic,oi);kt&&et("bicycling",mappl10n.bike,fi);sr&&et("transit",mappl10n.transit,si)}function et(n,t,r){var e=f+"_"+n,o=r?"checked='checked'":"",s="<div class='gmnoprint mapp-control'><input type='checkbox' id='"+e+"' "+o+" /> "+t+"<\/div>",u=jQuery(s).get(0);i.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,t;switch(n){case"transit":d=d?d:new google.maps.TransitLayer;t=d;break;case"traffic":k=k?k:new google.maps.TrafficLayer;t=k;break;case"bicycling":b=b?b:new google.maps.BicyclingLayer;t=b}t.getMap()?(jQuery("#"+r).prop("checked",!1),t.setMap(null)):(jQuery("#"+r).prop("checked",!0),t.setMap(i))}var e=n.center,p=n.height,s=n.mapid,pt=n.mapTypeId?n.mapTypeId:"roadmap",wt=n.metaKey,f=n.name,bt=n.options,tt=n.query,it=n.title,w=n.width,l=parseInt(n.zoom,10),kt=n.options.bicycling,dt=n.options.bigHeight,gt=n.options.bigWidth,ni=n.options.country,rt=n.options.dataTables,ot=n.options.directions,ti=n.options.directionsServer,ii=n.options.directionsUnits,ri=n.options.draggable,ui=n.options.editable,st=n.options.from,fi=n.options.initialBicycling,ei=n.options.initialOpenDirections,ut=n.options.initialOpenInfo,oi=n.options.initialTraffic,si=n.options.initialTransit,h=n.options.iwType,ht=n.options.keyboardShortcuts,hi=n.options.language,ci=n.options.mapTypeControl,li=parseInt(n.options.mapTypeControlStyle,10),c=n.options.mapTypeIds,ai=n.options.mashupClick,vi=parseInt(n.options.maxZoom),yi=parseInt(n.options.minZoom),pi=n.options.overviewMapControl,wi=n.options.overviewMapControlOpened,bi=n.options.panControl,ki=n.options.poiZoom,di=n.options.rotateControl,gi=n.options.scaleControl,nr=n.options.scrollwheel,tr=n.height,ir=n.width,rr=n.options.streetViewControl,ur=n.options.style,fr=parseInt(n.options.tilt),ct=n.options.to,er=n.options.tooltips,or=n.options.traffic,sr=n.options.transit,hr=n.options.zoomControl,cr=parseInt(n.options.zoomControlStyle,10),r=this,b,k,d,o=null,g,lt,nt,a,v,ft=null,i=null,u=null,t=[],at=!1,y;this.display=function(){if(g=jQuery("#"+f+"_dialog"),lt=jQuery("#"+f+"_directions"),nt=jQuery("#"+f+"_layout"),a=document.getElementById(f),v=jQuery("#"+f+"_poi_list"),!a){typeof console!="undefined"&&console.log("MapPress: Missing map name or container for map: "+f);return}if(typeof google=="undefined"){typeof console!="undefined"&&console.log("MapPress: Google API not loaded");return}if(y=google.maps.Marker.MAX_ZINDEX,lt.append(jQuery("#"+f+"_directions_").contents()),v.append(jQuery("#"+f+"_poi_list_").contents()),this.setDataTables(),tt){this.ajaxQuery(function(){vt()});return}r.setPois(n.pois,!1);vt()};this.getQuery=function(){return tt};this.setQuery=function(n){tt=n};this.setDialog=function(n){n=n?n:'<span class="mapp-spinner"><\/span>'+mappl10n.loading;n='<div class="mapp-dialog-inner">'+n+"<\/div>";jQuery(g).html(n);jQuery(g).show()};this.hideDialog=function(){jQuery(g).hide()};this.setPoiList=function(n){typeof n=="string"?v.html(n):v.append(n);this.setDataTables()};this.setDataTables=function(){if(rt&&typeof jQuery.fn.dataTable!="undefined"){var n=rt==!0?{bFilter:!1,bPaginate:!1}:rt;jQuery("table",v).dataTable(n)}};this.getOptions=function(){return bt};this.getResized=function(){return at};this.show=function(){nt.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;o.open(r,u,i)};this.setMapTypeId=function(n){n=n&&jQuery.inArray(n,c)!=-1?n:c[0];i.setMapTypeId(n)};this.setCenter=function(n,t){i.setCenter(new google.maps.LatLng(n,t))};this.setZoom=function(n){i.setZoom(n)};this.getPoiZoom=function(){return parseInt(ki)};this.poiToFront=function(n){y++;n.setZIndex(y)};this.getMap=function(){return i};this.getGeocoder=function(){return ft};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 it};this.setTitle=function(n){it=n};this.getWidth=function(){return w};this.setWidth=function(n){w=n};this.getHeight=function(){return p};this.setHeight=function(n){p=n};this.getInfoWindow=function(){return u};this.getEditable=function(){return ui};this.getTooltips=function(){return er};this.getPoi=function(n){return typeof n=="string"&&(n=parseInt(n,10)),t[n]};this.getPoiById=function(n){for(var i=0;i<t.length;i++)if(t[i].postid==n)return t[i];return null};this.getPois=function(){return t};this.insertPoi=function(n){t.unshift(n);n.setMap(this)};this.addPoi=function(n){t.push(n);n.setMap(this)};this.removePoi=function(n){var i=jQuery.inArray(n,t);i!=-1&&(t[i].setMap(null),t.splice(i,1))};this.setPois=function(n,i){for(var u,r=0;r<t.length;r++)t[r].setMap(null);for(t=[],r=0;r<n.length;r++)u=new mapp.Poi,u.fromJSON(n[r]),t.push(u),i&&u.setMap(this),u.setZIndex(y+n.length-1-r);y+=n.length-1};this.showPois=function(){for(var n=0;n<t.length;n++)t[n].setVisible(!0)};this.hidePois=function(){for(var n=0;n<t.length;n++)t[n].setVisible(!1)};this.sortPois=function(n){for(var u,i=Array(),r=0;r<n.length;r++){if(u=parseInt(n[r]),isNaN(u))return!1;i.push(t[u])}return i.length!=t.length?!1:(t=i,!0)};this.openPoi=function(n,t){var u,i;if(h&&h!="none"){if(ai=="post"&&n.postid){window.location.assign(mappl10n.options.siteUrl+"?p="+n.postid);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,t,f){(o&&o.close(),h&&h!="none")&&(this.poiToFront(n),u.close(),u.setContent(t),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(i)):n.type?(u.setOptions({position:n.getPosition()}),u.open(i)):u.open(i,n.overlay))};this.closeInfoWindow=function(){u.close()};this.resize=function(n,t){var r=i.getCenter();n&&t&&(jQuery(a).width(n),jQuery(a).height(t),w=n,p=t);google.maps.event.trigger(i,"resize");i.setCenter(r);at=!0;return};this.initCenter=function(){if(this.closeInfoWindow(),google.maps.event.addListenerOnce(i,"idle",function(){r.initWindows()}),e&&e.lat()&&e.lng())i.setCenter(e),i.setZoom(l);else{var n=l?l:!0;r.autoCenter(n)}};this.initWindows=function(){var i,n,t;o&&ei?(n=jQuery.trim(st),t=st==null&&ct==null?"0":jQuery.trim(ct),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)):ut&&(i=jQuery.isNumeric(ut)?r.getPoi(ut):r.getPoi(0),i&&i.open())};this.autoCenter=function(n){var r,u,f;if(t.length==0){this.setCenter(0,0);typeof n=="number"?i.setZoom(n):i.setZoom(1);return}if(t.length==1){t[0].center(n);return}for(r=new google.maps.LatLngBounds,u=0;u<t.length;u++)f=t[u].getBounds(),r=f?r.union(f):r.extend(t[u].getPosition());if(n===!1){i.setCenter(r.getCenter());return}if(typeof n=="number"){i.setCenter(r.getCenter());i.setZoom(n);return}i.fitBounds(r)};this.reset=function(){this.initCenter()};this.bigger=function(n,t,i){o&&o.close();this.closeInfoWindow();jQuery(n).text()==t?(jQuery(n).text(i),jQuery(nt).width(gt),this.resize("100%",dt)):(jQuery(n).text(t),jQuery(nt).width(ir),this.resize("100%",tr))};this.toJSON=function(){return{center:{lat:i.getCenter().lat(),lng:i.getCenter().lng()},height:p,mapid:s,mapTypeId:i.getMapTypeId(),metaKey:wt,pois:t,title:it,width:w,zoom:i.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 n;jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-walk")?n="w":jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-bike")&&(n="b");this.openGoogle(jQuery(".mapp-dir-saddr",f).val(),jQuery(".mapp-dir-daddr",f).val(),2,n)};this.openGoogle=function(n,t,i,r){var u=o;u+="?saddr="+encodeURIComponent(n);u+="&daddr="+encodeURIComponent(t);i&&(u+="&pw="+i);r&&(u+="&dirflg="+r);window.open(u)}};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,h,c,r;o=i;h=t;c=n;s=c.getMap();r=this;this.geocode=function(n,t){var i=n instanceof google.maps.LatLng?{latLng:n}:{address:n,region:o,language:h};i.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||{};this.JSON||(this.JSON={}),function(){function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var h,c,l,a,v=n,s,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,s=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,h=0;h<a;h+=1)s[h]=r(h,o)||"null";return l=s.length===0?"[]":n?"[\n"+n+s.join(",\n"+n)+"\n"+v+"]":"["+s.join(",")+"]",n=v,l}if(t&&typeof t=="object")for(a=t.length,h=0;h<a;h+=1)c=t[h],typeof c=="string"&&(l=r(c,o))&&s.push(f(c)+(n?": ":":")+l);else for(c in o)Object.hasOwnProperty.call(o,c)&&(l=r(c,o))&&s.push(f(c)+(n?": ":":")+l);return l=s.length===0?"{}":n?"{\n"+n+s.join(",\n"+n)+"\n"+v+"}":"{"+s.join(",")+"}",n=v,l}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(u=n="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if((t=f)&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw Error("JSON.stringify");return r("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&&typeof u=="object")for(f in u)Object.hasOwnProperty.call(u,f)&&(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),e.lastIndex=0,e.test(n)&&(n=n.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*#x2F;.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}();mapp.lib={ajax:function(n){var i,t;if(jQuery.extend({type:"GET",cache:!1,data:null,spinner:null,callback:jQuery.noop},n),n.cache)for(typeof mapp.lib.ajax.cache=="undefined"&&(mapp.lib.ajax.cache=[]),i=JSON.stringify(n.data),t=0;t<mapp.lib.ajax.cache.length;t++)if(mapp.lib.ajax.cache[t].data==i){n.callback(mapp.lib.ajax.cache[t].response);return}n.spinner&&mapp.lib.spinner(n.spinner,!0);jQuery.ajax({type:n.type,cache:!1,url:mappl10n.options.ajaxurl,data:n.data,success:function(t,i,r){if(mapp.lib.spinner(n.spinner,!1),t.output&&(mappl10n.options.admin||mappl10n.options.debug)){alert("AJAX Error\r\n"+t.output);return}if(t.status=="OK"){n.cache&&mapp.lib.ajax.cache.push({data:JSON.stringify(n.data),response:t});n.callback&&n.callback(t,i,r);return}if(mappl10n.options.admin||mappl10n.options.debug){var u=typeof t=="object"?t.status:t;alert("AJAX ERROR\r\nResponse="+u+" TextStatus="+i+"\r\nResponseText="+r.responseText);return}},error:function(t,i,r){if((n.spinner&&mapp.lib.spinner(n.spinner,!1),typeof r!="undefined"&&r!="")&&(mappl10n.options.admin||mappl10n.options.debug)){alert("AJAX ERROR\r\nTextStatus="+i+"\r\nError="+r+"\r\nResponseText="+t.responseText);return}}})},spinner:function(n,t){return t?(jQuery(n).addClass("mapp-spinner"),jQuery(n).prepend('<div class="mapp-spinner-overlay"><\/div><div class="mapp-spinner-icon"><\/div>')):(jQuery(n).removeClass("mapp-spinner"),jQuery(".mapp-spinner-overlay, .mapp-spinner-icon",n).remove()),n},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var r=jQuery(n).scrollTop(),u=jQuery(n).height(),i=jQuery(t).position().top,f=i+jQuery(t).height();(i<0||f>u)&&jQuery(n).scrollTop(r+i)}},stringToInt:function(n){for(arg in n){var t=n[arg];typeof t=="object"?mapp.lib.stringToInt(t):n[arg]=jQuery.isNumeric(t)?parseInt(t):t}return n}};jQuery("body").on("tabsactivate tabsshow",function(n,t){var i=t.newPanel?t.newPanel:t.panel;i&&jQuery(".mapp-canvas",i).each(function(){var n=jQuery(this).attr("id");window[n].resize();window[n].init()})});mapp=window.mapp||{};+function(n){mapp.Places=function(t,i){function l(){i=n.extend({callback:n.noop,gmap:null,kml:!1,parse:!0,types:["geocode"]},i);h=n(t);o=i.gmap;r=n("input",t);f=new google.maps.places.Autocomplete(r.get(0),{types:i.types});f.bindTo("bounds",o);s=new google.maps.places.AutocompleteService;_placesService=new google.maps.places.PlacesService(o);google.maps.event.addListener(f,"place_changed",function(){var n=f.getPlace();i.parse?n&&n.geometry&&n.geometry.viewport?(e.set(c(n.formatted_address,"text")),i.callback(n)):e.parse(i.callback):i.callback});n("[data-mapp-geolocate]",h).click(function(){return e.geolocate(),!1})}function c(n,t){var i;return(n=jQuery.trim(n),n=n.replace(", United States of America","").replace(", USA","").replace(", United States",""),t=="text")?n:(i=n.indexOf(","),i==-1?[n]:[n.substring(0,i),jQuery.trim(n.substring(i+1))])}function u(n){r.toggleClass("mapp-error",!!n)}var f,s,o,r,h,e=this;this.set=function(n){r.blur();r.val(n)};this.get=function(){return n.trim(r.val())};this.focus=function(){r.focus()};this.parse=function(n){if(u(!1),value=this.get(),!value)return this.focus(),u(!0);if(i.kml){if(input=="kml")return n("http://kml-samples.googlecode.com/svn/trunk/kml/Placemark/placemark.kml");if(input.substring(0,4)=="http")return n(input)}var t=value.split(",");if(t.length==2&&!isNaN(t[0])&&!isNaN(t[1]))return n({geometry:{location:new google.maps.LatLng(t[0],t[1])}});s.getPlacePredictions({input:value,types:i.types},function(t,i){if(i!="OK"||t==null||t.length==0)return u(!0);_placesService.getDetails({placeId:t[0].place_id},function(t,i){return i!="OK"||!t||!t.geometry?u(!0):(e.set(c(t.formatted_address,"text")),n(t))})})};this.geolocate=function(){if(u(!1),!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(n){i.callback(new google.maps.LatLng(n.coords.latitude,n.coords.longitude))},function(){return u(!0)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})};l.apply(this)}}(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(),i,t;if(n.point={lat:r.lat(),lng:r.lng()},i=this.viewport?this.viewport:this.getBounds(),i&&(n.viewport={sw:{lat:i.getSouthWest().lat(),lng:i.getSouthWest().lng()},ne:{lat:i.getNorthEast().lat(),lng:i.getNorthEast().lng()}}),this.type=="kml"&&(n.kml={url:this.overlay.getUrl()},t=this.overlay.getDefaultViewport(),n.viewport={sw:{lat:t.getSouthWest().lat(),lng:t.getSouthWest().lng()},ne:{lat:t.getNorthEast().lat(),lng:t.getNorthEast().lng()}}),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":t=this.overlay.getBounds();n.viewport={sw:{lat:t.getSouthWest().lat(),lng:t.getSouthWest().lng()},ne:{lat:t.getNorthEast().lat(),lng:t.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||(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n)),this.iconid=n?n:null)},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();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")}}
js/mappress_editor.min.js CHANGED
@@ -1 +1 @@
1
- var mapp=window.mapp||{};mapp.Media=function(){function u(i){n=i;jQuery("#mapp_m_editor").empty();jQuery("#mapp_m_editor").append(r.clone());var u=n.getMapid();u?jQuery("#mapp_m_mapid").text(u):jQuery("#mapp_m_mapid").text("");jQuery("#mapp_m_title").val(n.getTitle());jQuery("#mapp_m_width").val(n.getWidth());jQuery("#mapp_m_height").val(n.getHeight());jQuery("#mapp_m_edit_panel").show();jQuery("#mapp_m_list_panel").hide();t=new mapp.Editor(n)}function f(){t.close();n=null;t=null;jQuery("#mapp_m_edit_panel").hide();jQuery("#mapp_m_list_panel").show()}function o(){mapp.Map.ajaxCreate("mapp_edit",i,function(n){u(n)})}function s(n){mapp.Map.ajaxGet(n,"mapp_edit",i,function(n){u(n)})}function h(n){var t='[mappress mapid="'+n+'"]';send_to_editor(t)}function e(){if(n){var t=jQuery.trim(jQuery("#mapp_m_title").val());t=t!=""?t:mappl10n.untitled;n.setTitle(t);n.ajaxSave(function(n){n.list&&jQuery("#mapp_m_maplist").html(n.list);f()})}}function c(n){confirm(mappl10n.delete_map_prompt)&&(jQuery("#mapp_m_maplist tr[data-mapid='"+n+"']").remove(),mapp.Map.ajaxDelete(n))}var t,n,r,l=this,i;r=jQuery("#mapp_m_editor").contents().detach();i={bicycling:!1,directions:"none",editable:!0,initialOpenInfo:!1,iwDisableAutoPan:!1,iwType:"ib",mapTypeControl:!0,mapTypeControlStyle:2,mapTypeIds:null,navigationControlOptions:{style:0},overviewMapControl:!1,overviewMapControlOptions:{opened:!1},streetViewControl:!1,traffic:!1,transit:!1};jQuery("#mapp_m_list_panel").show();jQuery("#mapp_m_add_map").click(function(){return o(),!1});jQuery("#mapp_m_maplist").on("click","tr",function(n){var t=jQuery(this).attr("data-mapid");return jQuery(n.target).hasClass("mapp-maplist-edit")?(s(t),!1):jQuery(n.target).hasClass("mapp-maplist-delete")?(c(t),!1):jQuery(n.target).hasClass("mapp-maplist-insert")?(h(t),!1):void 0});jQuery(".mapp-m-size").click(function(){var n=jQuery(this).data("width"),i=jQuery(this).data("height");return jQuery("#mapp_m_width").val(n),jQuery("#mapp_m_height").val(i),t.resize(n,i),!1});jQuery("#mapp_m_width, #mapp_m_height").change(function(){var n=jQuery("#mapp_m_width").val(),i=jQuery("#mapp_m_height").val();return t.resize(n,i),!1});jQuery("#publish, #post-preview").click(function(){e()});jQuery("#mapp_m_save").click(function(){return e(),!1});jQuery("#mapp_m_title").keypress(function(n){if(n.which==13)return n.preventDefault(),jQuery("#mapp_m_save").click(),!1});jQuery("#mapp_m_cancel").click(function(){return f(),!1});jQuery("#mapp_m_insert").click(function(){var t=n.getMapid(),i='[mappress mapid="'+n.getMapid()+'"]';return t?send_to_editor(i):alert(mappl10n.save_first),!1});this.getMap=function(){return n}};mapp.Editor=function(n){function l(){s=jQuery("#mapp_e_infobox").detach();t=n;t.display();this.resize(t.getWidth(),t.getHeight());i();typeof mappl10n.id!="undefined"&&(r=new google.maps.drawing.DrawingManager({circleOptions:u,drawingControlOptions:{drawingModes:[google.maps.drawing.OverlayType.MARKER,google.maps.drawing.OverlayType.POLYGON,google.maps.drawing.OverlayType.POLYLINE,google.maps.drawing.OverlayType.RECTANGLE,google.maps.drawing.OverlayType.CIRCLE]},polygonOptions:u,polylineOptions:u,rectangleOptions:u}),r.setMap(t.getMap()),google.maps.event.addListener(r,"overlaycomplete",function(n){b(n)}));t.getGeocoder().autocompleteField("#mapp_e_saddr","#mapp_e_saddr_err","#mapp_e_search","#mapp_e_myloc",y);google.maps.event.addListener(t,"poicontent",a);google.maps.event.addListener(t,"poidomready",v);jQuery("#mapp_e_recenter").click(function(){return t.closeInfoWindow(),t.autoCenter(!0),!1});google.maps.event.addListener(t.getMap(),"click",function(n){jQuery("#mapp_e_latlng").text(n.latLng.toUrlValue())})}function i(){for(var r=t.getPois(),u="<table>",n=0;n<r.length;n++){var f=r[n].title.replace(/\'/g,"&rsquo;"),e=r[n].getImage("mapp-e-icon"),o=r[n].address;u+="<tr id='"+n+"'><td>"+e+"<\/td><td style='width:100%'><a href='#' title='"+o+"'><b>"+f+"<\/b><\/a><div class='mapp-e-actions'><a href='#' class='mapp-e-poi-list-zoom' data-idx='"+n+"'>"+mappl10n.zoom+"<\/a> | <a href='#' class='mapp-e-poi-list-delete' data-idx='"+n+"'>"+mappl10n.del+"<\/a><\/div><\/td><\/tr>"}u+="<\/table>";jQuery("#mapp_e_poi_list").html(u);jQuery("#mapp_e_poi_list tbody").sortable({axis:"y",placeholder:"mapp-e-sortable-placeholder",forcePlaceholderSize:!0,delay:200,update:function(){var n=jQuery("#mapp_e_poi_list tbody").sortable("toArray");t.sortPois(n);i()}});jQuery("#mapp_e_poi_list tr").click(function(n){var r=jQuery(this).attr("id"),i;return jQuery(n.target).hasClass("mapp-e-poi-list-zoom")?(i=t.getPoi(r),i&&i.zoomIn(),!1):jQuery(n.target).hasClass("mapp-e-poi-list-delete")?(i=t.getPoi(r),i&&g(i),!1):(t.getPoi(r).click(),!1)})}function a(n,t){var i=jQuery(s).clone(),r;jQuery("#mapp_e_poi_title",i).val(n.title);jQuery("#mapp_e_poi_body",i).val(n.body);jQuery("#mapp_e_poi_iconid",i).val(n.iconid);n.isPoly()&&(n.type=="polyline"?jQuery("#mapp_e_poi_polyline_fields",i).show():jQuery("#mapp_e_poi_polyline_fields, #mapp_e_poi_polygon_fields",i).show(),r=n.getColors(),jQuery("#mapp_stroke_color",i).val(r.strokeColor),jQuery("#mapp_stroke_weight",i).val(r.strokeWeight),jQuery("#mapp_stroke_opacity",i).val(parseInt(r.strokeOpacity*100)),jQuery("#mapp_fill_color",i).val(r.fillColor),jQuery("#mapp_fill_opacity",i).val(parseInt(r.fillOpacity*100)));n.type=="kml"&&(jQuery("#mapp_e_poi_kml_fields",i).show(),jQuery("#mapp_e_poi_kml_url",i).val(n.overlay.getUrl()));t.content=i}function v(n){var r={title:n.title,body:n.body,iconid:n.iconid,colors:n.getColors()};k();jQuery("#mapp_e_poi_title").focus();n.isPoly()?(jQuery("#mapp_stroke_color, #mapp_fill_color, #mapp_stroke_weight, #mapp_stroke_opacity, #mapp_fill_opacity").change(function(){var t={strokeColor:jQuery("#mapp_stroke_color").val(),strokeWeight:parseInt(jQuery("#mapp_stroke_weight").val()),strokeOpacity:jQuery("#mapp_stroke_opacity").val()/100};n.type!="polyline"&&(t.fillColor=jQuery("#mapp_fill_color").val(),t.fillOpacity=jQuery("#mapp_fill_opacity").val()/100);n.setColors(t);u=t}),jQuery("#mapp_stroke_color, #mapp_fill_color").mappColorpicker({})):jQuery("#mapp_e_poi_iconid").mappIconPicker({dialog:jQuery("#mapp_e_poi_icon_picker"),open:function(){jQuery("#mapp_e_poi_fields").hide()},close:function(t){jQuery("#mapp_e_poi_fields").show();typeof t!="undefined"&&(f=t,n.iconid=t,n.setIcon(t),i())}});google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){jQuery("#mapp_colorpicker").hide();n.title=jQuery("#mapp_e_poi_title").val();n.body=jQuery("#mapp_e_poi_body").val();i()});jQuery("#mapp_e_save_poi").click(function(){return t.closeInfoWindow(),!1});jQuery("#mapp_e_cancel_poi").click(function(){return t.closeInfoWindow(),n.title=r.title,n.body=r.body,n.iconid=r.iconid,n.setIcon(r.iconid),n.setColors(r.colors),i(),!1})}function y(n){if(n){if(n.geometry){var t=mapp.Geocoder.parseAddress(n.formatted_address),i=n.name?n.name:t.firstLine,r=n.name?t.firstLine+", "+t.secondLine:t.secondLine,u=new mapp.Poi({address:n.formatted_address,body:r,iconid:f,overlay:new google.maps.Marker({position:n.geometry.location}),title:i,type:null,viewport:n.geometry.viewport?n.geometry.viewport:null});e(u,!0);return}if(n instanceof google.maps.LatLng)return w(n);if(typeof n=="string"&&n.substring(0,4)=="http")return p(n);alert("Internal error, unable to add location")}}function p(n){var t=new mapp.Poi({iconid:f,overlay:new google.maps.KmlLayer(n,{suppressInfoWindows:!0}),title:"KML",type:"kml"});google.maps.event.addListener(t.overlay,"status_changed",function(){var r=t.overlay.getStatus(),n;r=="OK"?(n=t.overlay.getMetadata(),t.title=n.name,t.body=n.description,t.viewport=t.overlay.getDefaultViewport(),i()):alert(mappl10n.kml_error+":"+r)});e(t,!0)}function w(n){poi=new mapp.Poi({body:"",iconid:f,overlay:new google.maps.Marker({position:n}),title:n.toUrlValue(4)});e(poi,!0)}function b(n){var t;r.setDrawingMode(null);switch(n.type){case"polygon":case"polyline":case"circle":case"rectangle":t=new mapp.Poi({body:"",colors:u,iconid:"poly",overlay:n.overlay,title:mappl10n.shape,type:n.type});break;case"marker":default:t=new mapp.Poi({body:"",iconid:null,overlay:n.overlay,title:n.overlay.getPosition().toUrlValue(4),type:null})}e(t,!1)}function e(n,u){t.closeInfoWindow();r&&r.setDrawingMode(null);t.insertPoi(n);u&&n.center(!0);i()}function k(){typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(d(),o&&h(),jQuery("#mapp_e_visual").click(function(){h();o=!0}),jQuery("#mapp_e_html").click(function(){c();o=!1}),google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){tinyMCE.get("mapp_e_poi_body")&&(tinyMCE.get("mapp_e_poi_body").save(),c())}))}function d(){var i="en",t,n;typeof window.tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(t=window.tinyMCEPreInit.mceInit.content,i=typeof t.language!="undefined"?t.language:"en");n={mode:"none",height:"175px",convert_urls:!1,language:i,menubar:!1,plugins:"paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"formatselect,forecolor,bold,italic,alignleft,aligncenter,alignright,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""};tinyMCE.majorVersion<"4"&&(oldOpts={plugins:"paste",skin:"wp_theme",theme:"advanced",theme_advanced_toolbar_location:"top",theme_advanced_buttons1:"formatselect, forecolor,|,bold,italic,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,image,separator,undo,redo",theme_advanced_buttons2:"",theme_advanced_buttons3:""},n=jQuery.extend(n,oldOpts));tinyMCE.init(n)}function h(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceAddEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceAddControl",!1,"mapp_e_poi_body")}function c(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceRemoveEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceRemoveControl",!1,"mapp_e_poi_body")}function g(n){return t.closeInfoWindow(),confirm(mappl10n.delete_prompt)?(t.removePoi(n),i(),!0):!1}var r,s,f=null,u={fillColor:"#9FC6E7",fillOpacity:.5,strokeColor:"#0000FF",strokeOpacity:1,strokeWeight:2},o=!0,t=n;this.close=function(){t.closeInfoWindow()};this.resize=function(n,i){t.resize(n,i);t.closeInfoWindow();var r=jQuery("#mapp_e_top_toolbar").outerHeight(),u=jQuery("#mapp_edit").outerHeight();jQuery("#mapp_e_poi_list").height(r+u)};l.apply(this)}
1
+ var mapp=window.mapp||{};mapp.Media=function(){function u(i){n=i;jQuery("#mapp_m_editor").empty();jQuery("#mapp_m_editor").append(r.clone());var u=n.getMapid();u?jQuery("#mapp_m_mapid").text(u):jQuery("#mapp_m_mapid").text("");jQuery("#mapp_m_title").val(n.getTitle());jQuery("#mapp_m_width").val(n.getWidth());jQuery("#mapp_m_height").val(n.getHeight());jQuery("#mapp_m_edit_panel").show();jQuery("#mapp_m_list_panel").hide();t=new mapp.Editor(n)}function f(){t.close();n=null;t=null;jQuery("#mapp_m_edit_panel").hide();jQuery("#mapp_m_list_panel").show()}function o(){mapp.Map.ajaxCreate("mapp_edit",i,function(n){u(n)})}function s(n){mapp.Map.ajaxGet(n,"mapp_edit",i,function(n){u(n)})}function h(n){var t='[mappress mapid="'+n+'"]';send_to_editor(t)}function e(){if(n){var t=jQuery.trim(jQuery("#mapp_m_title").val());t=t!=""?t:mappl10n.untitled;n.setTitle(t);n.ajaxSave(function(n){n.list&&jQuery("#mapp_m_maplist").html(n.list);f()})}}function c(n){confirm(mappl10n.delete_map_prompt)&&(jQuery("#mapp_m_maplist tr[data-mapid='"+n+"']").remove(),mapp.Map.ajaxDelete(n))}var t,n,r,l=this,i;r=jQuery("#mapp_m_editor").contents().detach();i={bicycling:!1,directions:"none",editable:!0,initialOpenInfo:!1,iwDisableAutoPan:!1,iwType:"ib",mapTypeControl:!0,mapTypeControlStyle:2,mapTypeIds:null,navigationControlOptions:{style:0},overviewMapControl:!1,overviewMapControlOptions:{opened:!1},streetViewControl:!1,traffic:!1,transit:!1};jQuery("#mapp_m_list_panel").show();jQuery("#mapp_m_add_map").click(function(){return o(),!1});jQuery("#mapp_m_maplist").on("click","tr",function(n){var t=jQuery(this).attr("data-mapid");return jQuery(n.target).hasClass("mapp-maplist-edit")?(s(t),!1):jQuery(n.target).hasClass("mapp-maplist-delete")?(c(t),!1):jQuery(n.target).hasClass("mapp-maplist-insert")?(h(t),!1):void 0});jQuery(".mapp-m-size").click(function(){var n=jQuery(this).data("width"),i=jQuery(this).data("height");return jQuery("#mapp_m_width").val(n),jQuery("#mapp_m_height").val(i),t.resize(n,i),!1});jQuery("#mapp_m_width, #mapp_m_height").change(function(){var n=jQuery("#mapp_m_width").val(),i=jQuery("#mapp_m_height").val();return t.resize(n,i),!1});jQuery("#publish, #post-preview").click(function(){e()});jQuery("#mapp_m_save").click(function(){return e(),!1});jQuery("#mapp_m_title").keydown(function(n){if(n.which==13)return n.preventDefault(),jQuery("#mapp_m_save").click(),!1});jQuery("#mapp_m_cancel").click(function(){return f(),!1});jQuery("#mapp_m_insert").click(function(){var t=n.getMapid(),i='[mappress mapid="'+n.getMapid()+'"]';return t?send_to_editor(i):alert(mappl10n.save_first),!1});this.getMap=function(){return n}};mapp.Editor=function(n){function c(){o=jQuery("#mapp_e_infobox").detach();t=n;t.display();this.resize(t.getWidth(),t.getHeight());i();t.getGeocoder().autocompleteField("#mapp_e_saddr","#mapp_e_saddr_err","#mapp_e_search","#mapp_e_myloc",v);google.maps.event.addListener(t,"poicontent",l);google.maps.event.addListener(t,"poidomready",a);jQuery("#mapp_e_recenter").click(function(){return t.closeInfoWindow(),t.autoCenter(!0),!1});google.maps.event.addListener(t.getMap(),"click",function(n){jQuery("#mapp_e_latlng").text(n.latLng.toUrlValue())})}function i(){for(var r=t.getPois(),u="<table>",n=0;n<r.length;n++){var f=r[n].title.replace(/\'/g,"&rsquo;"),e=mapp.Icons.getUrl(r[n].iconid),o=r[n].address;u+="<tr id='"+n+"'><td><img class='mapp-e-icon' src='"+e+"'><\/td><td style='width:100%'><a href='#' title='"+o+"'><b>"+f+"<\/b><\/a><div class='mapp-e-actions'><a href='#' class='mapp-e-poi-list-zoom' data-idx='"+n+"'>"+mappl10n.zoom+"<\/a> | <a href='#' class='mapp-e-poi-list-delete' data-idx='"+n+"'>"+mappl10n.del+"<\/a><\/div><\/td><\/tr>"}u+="<\/table>";jQuery("#mapp_e_poi_list").html(u);jQuery("#mapp_e_poi_list tbody").sortable({axis:"y",placeholder:"mapp-e-sortable-placeholder",forcePlaceholderSize:!0,delay:200,update:function(){var n=jQuery("#mapp_e_poi_list tbody").sortable("toArray");t.sortPois(n);i()}});jQuery("#mapp_e_poi_list tr").click(function(n){var r=jQuery(this).attr("id"),i=t.getPoi(r);return jQuery(n.target).hasClass("mapp-e-poi-list-zoom")?i.zoomIn():jQuery(n.target).hasClass("mapp-e-poi-list-delete")?k(i):t.openPoi(i),!1})}function l(n,t){var i=jQuery(o).clone();jQuery("#mapp_e_poi_title",i).val(n.title);jQuery("#mapp_e_poi_body",i).val(n.body);jQuery("#mapp_e_poi_iconid",i).val(n.iconid);n.type=="kml"&&(jQuery("#mapp_e_poi_kml_fields",i).show(),jQuery("#mapp_e_poi_kml_url",i).val(n.overlay.getUrl()));t.content=i}function a(n){var f={title:n.title,body:n.body,iconid:n.iconid,colors:n.getColors()},u;if(w(),jQuery("#mapp_e_poi_title").focus(),n.isPoly()){jQuery("#mapp_e_poi_poly_fields").show();u=n.getColors();jQuery("#mapp_e_poi_color").mappColorPicker({color:n.type=="polyline"?u.strokeColor:u.fillColor});jQuery("#mapp_e_poi_opacity").val(n.type=="polyline"?u.strokeOpacity*100:u.fillOpacity*100);jQuery("#mapp_e_poi_weight").val(u.strokeWeight);jQuery("#mapp_e_poi_color, #mapp_e_poi_opacity, #mapp_e_poi_weight").on("change change.mapp.colorpicker",function(){var t=jQuery("#mapp_e_poi_color").attr("data-mapp-color"),i=jQuery("#mapp_e_poi_opacity").val(),r=jQuery("#mapp_e_poi_weight").val();n.type=="polyline"?n.setColors({strokeColor:t,strokeOpacity:i/100,strokeWeight:r}):n.setColors({fillColor:t,fillOpacity:i/100,strokeColor:t,strokeWeight:r,strokeOpacity:1})})}if(!n.type){jQuery("#mapp_e_poi_iconid").mappIconPicker();jQuery("#mapp_e_poi_iconid").on("change.mapp.iconpicker",function(){n.setIcon(jQuery("#mapp_e_poi_iconid").val());r=n.iconid;i()})}google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){n.title=jQuery("#mapp_e_poi_title").val();n.body=jQuery("#mapp_e_poi_body").val();i()});jQuery("#mapp_e_save_poi").click(function(n){t.closeInfoWindow();n.preventDefault()});jQuery("#mapp_e_cancel_poi").click(function(r){t.closeInfoWindow();n.title=f.title;n.body=f.body;n.iconid=f.iconid;n.setIcon(f.iconid);n.setColors(f.colors);i();r.preventDefault()})}function v(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,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 p(n);if(typeof n=="string"&&n.substring(0,4)=="http")return y(n);alert("Internal error, unable to add location")}}function y(n){var t=new mapp.Poi({iconid:r,overlay:new google.maps.KmlLayer(n,{suppressInfoWindows:!0}),title:"KML",type:"kml"});google.maps.event.addListener(t.overlay,"status_changed",function(){var r=t.overlay.getStatus(),n;r=="OK"?(n=t.overlay.getMetadata(),t.title=n.name,t.body=n.description,t.viewport=t.overlay.getDefaultViewport(),i()):alert(mappl10n.kml_error+":"+r)});u(t,!0)}function p(n){poi=new mapp.Poi({body:"",iconid:r,overlay:new google.maps.Marker({position:n}),title:n.toUrlValue(4)});u(poi,!0)}function u(n,r){t.closeInfoWindow();f&&f.setDrawingMode(null);t.insertPoi(n);r&&n.center(!0);i()}function w(){typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(b(),e&&s(),jQuery("#mapp_e_visual").click(function(){s();e=!0}),jQuery("#mapp_e_html").click(function(){h();e=!1}),google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){tinyMCE.get("mapp_e_poi_body")&&(tinyMCE.get("mapp_e_poi_body").save(),h())}))}function b(){var i="en",t,n;typeof tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(t=window.tinyMCEPreInit.mceInit.content,i=typeof t.language!="undefined"?t.language:"en");n={mode:"none",height:"175px",convert_urls:!1,language:i,menubar:!1,plugins:"paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"formatselect,forecolor,bold,italic,alignleft,aligncenter,alignright,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""};tinyMCE.majorVersion<"4"&&(oldOpts={plugins:"paste",skin:"wp_theme",theme:"advanced",theme_advanced_toolbar_location:"top",theme_advanced_buttons1:"formatselect, forecolor,|,bold,italic,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,image,separator,undo,redo",theme_advanced_buttons2:"",theme_advanced_buttons3:""},n=jQuery.extend(n,oldOpts));tinyMCE.init(n)}function s(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceAddEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceAddControl",!1,"mapp_e_poi_body")}function h(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceRemoveEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceRemoveControl",!1,"mapp_e_poi_body")}function k(n){return t.closeInfoWindow(),confirm(mappl10n.delete_prompt)?(t.removePoi(n),i(),!0):!1}var f,o,r=null,e=!0,t=n;this.close=function(){t.closeInfoWindow()};this.resize=function(n,i){t.resize(n,i);t.closeInfoWindow();var r=jQuery("#mapp_e_top_toolbar").outerHeight(),u=jQuery("#mapp_edit").outerHeight();jQuery("#mapp_e_poi_list").height(r+u)};c.apply(this)}
js/mappress_settings.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){jQuery('input[name="mappress_options[defaultIcon]"]').mappIconPicker();jQuery("#mapp_styles").edt();jQuery(".mapp-expand").on("focus",function(){jQuery(this).attr({rows:20,cols:100})});jQuery(".mapp-expand").on("blur",function(){jQuery(this).attr({rows:1,cols:20})})});jQuery.fn.edt=function(n){var n=jQuery.extend({add:mappl10n.add,del:mappl10n.del,template:null,callback:null},n);return this.each(function(){var t=this,i;jQuery(this).parent().append("<input type='button' class='button edt-table-add' value='"+n.add+"' />");n.template||(n.template=jQuery("tr:last",t).clone(),jQuery(n.template).find(":input").each(function(){switch(this.type){case"hidden":case"password":case"select-multiple":case"select-one":case"text":case"textarea":jQuery(this).val("");break;case"checkbox":case"radio":this.checked=!1}}));i="<td><a href='#' class='edt-table-delete'>"+n.del+"<\/a><\/td>";jQuery("tbody > tr",t).append(i);n.template=jQuery(n.template).append(i);jQuery(this).next(".edt-table-add").click(function(){var i=jQuery(n.template).clone();return jQuery(t).append(i),jQuery(".edt-table-delete",t).show(),n.callback&&n.callback(i),!1});jQuery(this).click(function(n){if(jQuery(n.target).hasClass("edt-table-delete"))return jQuery(n.target).closest("tr").remove(),!1})})}
1
+ +function(n){function t(t,i,r){mapp.lib.ajax({data:{action:i,key:r},cache:!0,spinner:t,callback:function(i){var u="",r,f;for(r in i.data)f=n(t).val()==r?" selected ":"",u+='<option value="'+r+'" '+f+">"+i.data[r]+"<\/option>";n(t).html(u);n(t).change()}})}n(document).ready(function(){n('input[name="mappress_options[defaultIcon]"]').on("change.mapp.iconpicker",function(t,i){mappl10n.options.defaultIcon=i;n("[data-mapp-iconpicker]").mappIconPicker("setImage")});n("[data-mapp-grid]").on("add.mapp.grid",function(t,i){n("[data-mapp-iconpicker]",i).mappIconPicker()});jQuery("[data-mapp-grid]").on("change",".mapp-rule-key",function(){var i=jQuery(this).closest("tr");t(jQuery(".mapp-rule-values",i),"mapp_get_rule_values",n(this).val())});n("#mapp_styles").edt();n(".mapp-expand").on("focus",function(){n(this).attr({rows:20,cols:100})});n(".mapp-expand").on("blur",function(){n(this).attr({rows:1,cols:20})})})}(jQuery);jQuery.fn.edt=function(n){var n=jQuery.extend({add:mappl10n.add,del:mappl10n.del,template:null,callback:null},n);return this.each(function(){var t=this,i;jQuery(this).parent().append("<input type='button' class='button edt-table-add' value='"+n.add+"' />");n.template||(n.template=jQuery("tr:last",t).clone(),jQuery(n.template).find(":input").each(function(){switch(this.type){case"hidden":case"password":case"select-multiple":case"select-one":case"text":case"textarea":jQuery(this).val("");break;case"checkbox":case"radio":this.checked=!1}}));i="<td><a href='#' class='edt-table-delete'>"+n.del+"<\/a><\/td>";jQuery("tbody > tr",t).append(i);n.template=jQuery(n.template).append(i);jQuery(this).next(".edt-table-add").click(function(){var i=jQuery(n.template).clone();return jQuery(t).append(i),jQuery(".edt-table-delete",t).show(),n.callback&&n.callback(i),!1});jQuery(this).click(function(n){if(jQuery(n.target).hasClass("edt-table-delete"))return jQuery(n.target).closest("tr").remove(),!1})})}
languages/mappress-fr_FR.mo CHANGED
Binary file
languages/mappress-fr_FR.po CHANGED
@@ -1,23 +1,47 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: MapPress Easy Google Maps v2.39.7\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-22 17:37-0800\n"
6
- "PO-Revision-Date: 2013-01-22 17:38-0800\n"
7
- "Last-Translator: Plugin Author <donotreply@gmail.com>\n"
8
- "Language-Team: 3emeOeil <webdingue@gmail.com>\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
"Plural-Forms: nplurals=2; plural=n>1;\n"
13
- "X-Poedit-Language: French\n"
14
- "X-Poedit-Country: FRANCE\n"
15
- "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
"X-Poedit-Basepath: ..\n"
18
"X-Textdomain-Support: yes\n"
19
"X-Poedit-SearchPath-0: .\n"
20
21
# @ mappress
22
#: mappress.php:122
23
msgid "Version"
@@ -31,603 +55,561 @@ msgstr "Documentation"
31
# @ mappress
32
#: mappress.php:131
33
msgid "Support"
34
- msgstr ""
35
36
# @ mappress
37
#: mappress.php:132
38
msgid "Contact"
39
- msgstr ""
40
41
# @ mappress
42
#: mappress.php:135
43
msgid "Upgrade to MapPress Pro"
44
- msgstr ""
45
46
# @ mappress
47
- #: mappress.php:330
48
- msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
49
- msgstr "Les tables de la base de données MapPress sont manquantes. S'il vous plaît désactiver l'extension et l'activer à nouveau pour résoudre ce problème."
50
51
# @ mappress
52
- #: mappress.php:335
53
- msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
54
msgstr ""
55
56
# @ mappress
57
- #: mappress.php:340
58
- msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
59
msgstr ""
60
61
# @ mappress
62
- #: mappress.php:533
63
msgid "Bicycling"
64
msgstr "A vélo"
65
66
# @ mappress
67
- #: mappress.php:534
68
msgid "Bike"
69
- msgstr ""
70
71
# @ mappress
72
- #: mappress.php:535
73
msgid "One of the addresses could not be found."
74
- msgstr ""
75
76
# @ mappress
77
- #: mappress.php:536
78
- msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
79
- msgstr "Google ne peut afficher l'itinéraire. Il n'y a pas de route ou les informations sont indisponibles."
80
81
# @ mappress
82
- #: mappress.php:537
83
msgid "Unknown error, unable to return directions. Status code = "
84
msgstr "Erreur inconnue, impossible de définir l'itinéraire. Code de statut ="
85
86
# @ mappress
87
- #: mappress.php:538
88
- #: mappress_poi.php:282
89
- #: mappress_settings.php:129
90
- #: pro/mappress_widget.php:108
91
- msgid "Directions"
92
- msgstr "Itinéraires"
93
-
94
- # @ mappress
95
- #: mappress.php:539
96
msgid "Error reading KML file"
97
- msgstr ""
98
99
# @ mappress
100
- #: mappress.php:540
101
msgid "Loading..."
102
- msgstr ""
103
104
# @ mappress
105
- #: mappress.php:541
106
msgid "No matching address"
107
msgstr "Aucune adresse trouvée"
108
109
# @ mappress
110
- #: mappress.php:542
111
msgid "Unable to get your location"
112
- msgstr ""
113
114
# @ mappress
115
- #: mappress.php:543
116
- #: mappress_settings.php:321
117
msgid "Traffic"
118
msgstr "Circulation"
119
120
# @ mappress
121
- #: mappress.php:544
122
msgid "Transit"
123
- msgstr ""
124
-
125
- # @ mappress
126
- #: mappress.php:545
127
- #: mappress_poi.php:331
128
- #: mappress_settings.php:316
129
- #: mappress_settings.php:455
130
- #: pro/mappress_widget.php:124
131
- msgid "Zoom"
132
- msgstr "Zoom"
133
134
# @ mappress
135
- #: mappress.php:550
136
msgid "Add"
137
msgstr "Ajouter"
138
139
# @ mappress
140
- #: mappress.php:551
141
msgid "Click & drag to move"
142
- msgstr ""
143
144
# @ mappress
145
- #: mappress.php:552
146
msgid "Click to change"
147
- msgstr ""
148
149
# @ mappress
150
- #: mappress.php:553
151
- #: mappress_map.php:428
152
msgid "Delete"
153
msgstr "Supprimer"
154
155
# @ mappress
156
- #: mappress.php:554
157
msgid "Delete this POI?"
158
- msgstr ""
159
160
# @ mappress
161
- #: mappress.php:555
162
msgid "Delete this map?"
163
- msgstr "Supprimer cette carte ?"
164
165
# @ mappress
166
- #: mappress.php:556
167
msgid "Please save the map first"
168
- msgstr ""
169
170
# @ mappress
171
- #: mappress.php:557
172
msgid "Shape"
173
- msgstr ""
174
175
# @ mappress
176
- #: mappress.php:558
177
msgid "Untitled"
178
msgstr "Sans titre"
179
180
- # @ mappress
181
- #: mappress_map.php:107
182
- msgid "Map not found"
183
- msgstr ""
184
-
185
- # @ mappress
186
- #: mappress_map.php:196
187
- #: mappress_map.php:202
188
- msgid "Internal error, your data has not been saved!"
189
- msgstr ""
190
-
191
- # @ mappress
192
- #: mappress_map.php:427
193
- msgid "Edit"
194
- msgstr "Editer"
195
-
196
- # @ mappress
197
- #: mappress_map.php:467
198
- msgid "Show map"
199
- msgstr ""
200
-
201
- # @ mappress
202
- #: mappress_map.php:479
203
- #: mappress_settings.php:447
204
- #: forms/map_editor.php:5
205
- msgid "Center map"
206
- msgstr ""
207
-
208
- # @ mappress
209
- #: mappress_map.php:488
210
- #: mappress_settings.php:448
211
- msgid "Reset map"
212
- msgstr ""
213
-
214
- # @ mappress
215
- #: mappress_map.php:497
216
- #: mappress_settings.php:446
217
- msgid "Bigger map"
218
- msgstr "Agrandir"
219
-
220
- # @ mappress
221
- #: mappress_map.php:498
222
- msgid "Smaller map"
223
- msgstr "Rétrécir"
224
225
# @ mappress
226
- #: mappress_poi.php:247
227
- #: mappress_settings.php:456
228
- msgid "Directions to"
229
- msgstr ""
230
231
- # @ default
232
# @ mappress
233
- #: mappress_poi.php:249
234
- #: mappress_settings.php:457
235
- msgid "Directions from"
236
- msgstr ""
237
238
# @ mappress
239
- #: mappress_settings.php:126
240
msgid "Basic Settings"
241
msgstr "Paramètres"
242
243
# @ mappress
244
- #: mappress_settings.php:127
245
msgid "Post types"
246
msgstr "Types d'article"
247
248
# @ mappress
249
- #: mappress_settings.php:128
250
msgid "Automatic map display"
251
msgstr "Affichage de la carte automatique"
252
253
# @ mappress
254
- #: mappress_settings.php:131
255
msgid "Map Controls"
256
- msgstr ""
257
258
# @ mappress
259
- #: mappress_settings.php:132
260
msgid "Draggable"
261
- msgstr ""
262
263
# @ mappress
264
- #: mappress_settings.php:133
265
msgid "Keyboard shortcuts"
266
msgstr "Raccourcis clavier"
267
268
# @ mappress
269
- #: mappress_settings.php:134
270
msgid "Scroll wheel zoom"
271
msgstr "Zoomer avec la roulette de souris"
272
273
# @ mappress
274
- #: mappress_settings.php:135
275
msgid "Map Types"
276
- msgstr ""
277
278
# @ mappress
279
- #: mappress_settings.php:136
280
msgid "Map controls"
281
- msgstr ""
282
283
# @ mappress
284
- #: mappress_settings.php:138
285
msgid "Map Settings"
286
- msgstr ""
287
288
# @ mappress
289
- #: mappress_settings.php:139
290
msgid "Map links"
291
- msgstr ""
292
293
# @ mappress
294
- #: mappress_settings.php:140
295
msgid "Map alignment"
296
msgstr "Plan d'alignement"
297
298
# @ mappress
299
- #: mappress_settings.php:141
300
msgid "Map border"
301
- msgstr ""
302
303
# @ mappress
304
- #: mappress_settings.php:142
305
msgid "Map border color"
306
- msgstr ""
307
308
# @ mappress
309
- #: mappress_settings.php:143
310
msgid "Open first POI"
311
- msgstr ""
312
313
# @ mappress
314
- #: mappress_settings.php:145
315
msgid "POI Settings"
316
- msgstr ""
317
318
# @ mappress
319
- #: mappress_settings.php:146
320
msgid "POI links"
321
- msgstr ""
322
323
# @ mappress
324
- #: mappress_settings.php:147
325
msgid "Tooltips"
326
msgstr "Infobulles"
327
328
# @ mappress
329
- #: mappress_settings.php:148
330
msgid "Default zoom"
331
- msgstr ""
332
333
# @ mappress
334
- #: mappress_settings.php:151
335
msgid "Mashups"
336
- msgstr ""
337
338
# @ mappress
339
- #: mappress_settings.php:152
340
msgid "Icons"
341
- msgstr ""
342
343
# @ mappress
344
- #: mappress_settings.php:153
345
msgid "Styled Maps"
346
- msgstr ""
347
348
# @ mappress
349
- #: mappress_settings.php:154
350
msgid "Geocoding"
351
- msgstr ""
352
353
# @ mappress
354
- #: mappress_settings.php:157
355
msgid "Localization"
356
- msgstr ""
357
358
# @ mappress
359
- #: mappress_settings.php:158
360
msgid "Language"
361
msgstr "Langue"
362
363
# @ mappress
364
- #: mappress_settings.php:159
365
msgid "Country"
366
msgstr "Pays"
367
368
# @ mappress
369
- #: mappress_settings.php:160
370
msgid "Directions server"
371
- msgstr ""
372
373
# @ mappress
374
- #: mappress_settings.php:161
375
msgid "Directions units"
376
- msgstr ""
377
378
# @ mappress
379
- #: mappress_settings.php:163
380
msgid "Miscellaneous"
381
- msgstr ""
382
383
# @ mappress
384
- #: mappress_settings.php:164
385
- msgid "Adaptive display"
386
- msgstr ""
387
388
# @ mappress
389
- #: mappress_settings.php:165
390
msgid "Turn off CSS"
391
- msgstr ""
392
393
# @ mappress
394
- #: mappress_settings.php:166
395
msgid "Load maps last"
396
- msgstr ""
397
398
# @ default
399
- #: mappress_settings.php:221
400
msgid "Use the settings below to automatically create maps from custom fields."
401
msgstr ""
402
403
# @ mappress
404
- #: mappress_settings.php:227
405
msgid "Posts"
406
- msgstr ""
407
408
# @ mappress
409
- #: mappress_settings.php:228
410
msgid "Pages"
411
- msgstr ""
412
413
# @ mappress
414
- #: mappress_settings.php:240
415
msgid "country code"
416
- msgstr "Code de pays"
417
418
# @ mappress
419
- #: mappress_settings.php:242
420
#, php-format
421
msgid "Enter a %s to use when searching (leave blank for USA)"
422
- msgstr "Entrer un %s à utiliser par défaut pour les recherches d'adresse. (laisser vide pour les USA)"
423
424
# @ mappress
425
- #: mappress_settings.php:249
426
msgid "Enter a google server URL for directions/printing"
427
- msgstr ""
428
429
# @ mappress
430
- #: mappress_settings.php:254
431
msgid "(Default)"
432
- msgstr ""
433
434
# @ mappress
435
- #: mappress_settings.php:254
436
msgid "Metric (kilometers)"
437
- msgstr ""
438
439
# @ mappress
440
- #: mappress_settings.php:254
441
msgid "Imperial (miles)"
442
- msgstr ""
443
444
# @ mappress
445
- #: mappress_settings.php:259
446
msgid "Enable map dragging with the mouse"
447
- msgstr ""
448
449
# @ mappress
450
- #: mappress_settings.php:263
451
msgid "Enable zoom with the mouse scroll wheel"
452
msgstr "Activer le zoom avec la roulette de la souris"
453
454
# @ mappress
455
- #: mappress_settings.php:267
456
msgid "Enable keyboard panning and zooming"
457
- msgstr "Activer clavier panoramique et de zoom"
458
459
# @ mappress
460
- #: mappress_settings.php:273
461
msgid "language"
462
msgstr "Langue"
463
464
# @ mappress
465
- #: mappress_settings.php:275
466
#, php-format
467
msgid "Use a specific %s for map controls and geocoding"
468
- msgstr ""
469
470
# @ mappress
471
- #: mappress_settings.php:283
472
- #: mappress_settings.php:289
473
- #: mappress_settings.php:384
474
msgid "Default"
475
msgstr "Défaut"
476
477
# @ mappress
478
- #: mappress_settings.php:284
479
msgid "Horizontal"
480
- msgstr ""
481
482
# @ mappress
483
- #: mappress_settings.php:285
484
msgid "Dropdown"
485
- msgstr ""
486
487
# @ mappress
488
- #: mappress_settings.php:290
489
msgid "Small"
490
msgstr "Petit"
491
492
# @ mappress
493
- #: mappress_settings.php:291
494
msgid "Large"
495
msgstr "Grand"
496
497
# @ mappress
498
- #: mappress_settings.php:292
499
msgid "Android"
500
- msgstr ""
501
502
# @ mappress
503
- #: mappress_settings.php:303
504
msgid "Open initially"
505
- msgstr ""
506
507
# @ mappress
508
- #: mappress_settings.php:305
509
- #: mappress_settings.php:307
510
- #: mappress_settings.php:309
511
msgid "Checked initially"
512
- msgstr ""
513
514
# @ mappress
515
- #: mappress_settings.php:311
516
msgid "Control"
517
- msgstr ""
518
519
# @ default
520
- #: mappress_settings.php:311
521
msgid "Enable"
522
- msgstr ""
523
524
# @ mappress
525
- #: mappress_settings.php:311
526
- #: mappress_settings.php:409
527
msgid "Style"
528
- msgstr ""
529
530
# @ mappress
531
- #: mappress_settings.php:314
532
msgid "Map types"
533
msgstr "Types de carte"
534
535
# @ mappress
536
- #: mappress_settings.php:315
537
msgid "Pan"
538
- msgstr ""
539
540
# @ mappress
541
- #: mappress_settings.php:317
542
msgid "Street view"
543
- msgstr ""
544
545
# @ mappress
546
- #: mappress_settings.php:318
547
msgid "Scale"
548
- msgstr ""
549
550
# @ mappress
551
- #: mappress_settings.php:319
552
msgid "Overview map"
553
- msgstr ""
554
555
# @ mappress
556
- #: mappress_settings.php:320
557
msgid "Public transit"
558
- msgstr ""
559
560
# @ mappress
561
- #: mappress_settings.php:322
562
msgid "Bike routes"
563
- msgstr ""
564
565
# @ mappress
566
- #: mappress_settings.php:329
567
msgid "Road map"
568
- msgstr ""
569
570
# @ mappress
571
- #: mappress_settings.php:330
572
- #: pro/mappress_widget.php:142
573
msgid "Satellite"
574
- msgstr ""
575
576
# @ mappress
577
- #: mappress_settings.php:331
578
- #: pro/mappress_widget.php:143
579
msgid "Terrain"
580
- msgstr ""
581
582
# @ mappress
583
- #: mappress_settings.php:332
584
- #: pro/mappress_widget.php:141
585
msgid "Hybrid"
586
- msgstr ""
587
588
# @ mappress
589
- #: mappress_settings.php:345
590
msgid "Inline (in your blog)"
591
msgstr "Incorporé (dans votre blog)"
592
593
# @ mappress
594
- #: mappress_settings.php:346
595
- #: pro/mappress_pro_settings.php:165
596
- #: pro/mappress_widget.php:110
597
msgid "Google"
598
msgstr "Google"
599
600
# @ mappress
601
- #: mappress_settings.php:347
602
- #: pro/mappress_widget.php:111
603
msgid "None"
604
msgstr "Aucun"
605
606
# @ mappress
607
- #: mappress_settings.php:354
608
msgid "Automatically open the first POI when a map is displayed"
609
msgstr ""
610
611
# @ mappress
612
- #: mappress_settings.php:359
613
- #: mappress_settings.php:368
614
msgid "Show control"
615
- msgstr ""
616
617
# @ mappress
618
- #: mappress_settings.php:363
619
- #: mappress_settings.php:372
620
msgid "Enabled by default"
621
- msgstr ""
622
623
# @ mappress
624
#: mappress_settings.php:377
625
msgid "Show POI titles as a \"tooltip\" on mouse-over"
626
- msgstr ""
627
628
# @ mappress
629
#: mappress_settings.php:385
630
- #: pro/mappress_widget.php:116
631
msgid "Center"
632
msgstr "Centre"
633
@@ -644,605 +626,304 @@ msgstr "Droite"
644
# @ mappress
645
#: mappress_settings.php:399
646
msgid "solid"
647
- msgstr ""
648
649
# @ mappress
650
#: mappress_settings.php:400
651
msgid "dashed"
652
- msgstr ""
653
654
# @ mappress
655
#: mappress_settings.php:401
656
msgid "dotted"
657
- msgstr ""
658
659
# @ mappress
660
#: mappress_settings.php:402
661
msgid "double"
662
- msgstr ""
663
664
# @ mappress
665
#: mappress_settings.php:403
666
msgid "groove"
667
- msgstr ""
668
669
# @ mappress
670
#: mappress_settings.php:404
671
msgid "inset"
672
- msgstr ""
673
674
# @ mappress
675
#: mappress_settings.php:405
676
msgid "outset"
677
- msgstr ""
678
679
# @ mappress
680
- #: mappress_settings.php:417
681
msgid "Width"
682
- msgstr ""
683
684
# @ mappress
685
#: mappress_settings.php:423
686
msgid "Corner radius"
687
- msgstr ""
688
689
# @ mappress
690
- #: mappress_settings.php:431
691
msgid "Color"
692
- msgstr ""
693
694
# @ mappress
695
- #: mappress_settings.php:441
696
msgid "Display shadow"
697
- msgstr ""
698
699
# @ mappress
700
- #: mappress_settings.php:465
701
msgid "Default zoom for POIs entered by lat/lng"
702
- msgstr ""
703
704
# @ mappress
705
- #: mappress_settings.php:471
706
msgid "Top of post"
707
msgstr "Haut de l'article"
708
709
# @ mappress
710
- #: mappress_settings.php:472
711
msgid "Bottom of post"
712
msgstr "Bas de l'article"
713
714
# @ mappress
715
- #: mappress_settings.php:473
716
msgid "No automatic display"
717
msgstr "Pas d'affichage automatique"
718
719
# @ mappress
720
- #: mappress_settings.php:480
721
msgid "Recenter maps when window is resized"
722
- msgstr ""
723
724
# @ mappress
725
- #: mappress_settings.php:484
726
#, php-format
727
msgid "Don't load the %s stylesheet"
728
- msgstr ""
729
730
# @ mappress
731
- #: mappress_settings.php:488
732
msgid "Load maps in window 'load' event"
733
- msgstr ""
734
735
# @ mappress
736
- #: mappress_settings.php:496
737
msgid "Rate it 5 Stars"
738
- msgstr ""
739
740
# @ mappress
741
- #: mappress_settings.php:498
742
#, php-format
743
msgid "%s on WordPress.org"
744
- msgstr ""
745
746
# @ mappress
747
- #: mappress_settings.php:499
748
msgid "Thanks for your support!"
749
- msgstr ""
750
751
# @ mappress
752
- #: mappress_settings.php:526
753
msgid "MapPress"
754
- msgstr ""
755
756
# @ mappress
757
- #: mappress_settings.php:527
758
msgid "Easy Google Maps"
759
- msgstr ""
760
761
# @ mappress
762
- #: mappress_settings.php:576
763
msgid "Like this plugin?"
764
- msgstr ""
765
766
# @ mappress
767
- #: mappress_settings.php:578
768
msgid "Sample Map"
769
- msgstr ""
770
771
# @ mappress
772
- #: mappress_settings.php:597
773
msgid "Save Changes"
774
msgstr "Sauvergarder les modifications"
775
776
# @ mappress
777
- #: mappress_settings.php:598
778
msgid "Reset Defaults"
779
msgstr "Réinitialiser"
780
781
- # @ default
782
- #: mappress_updater.php:19
783
- msgid "Settings"
784
- msgstr ""
785
-
786
- # @ mappress
787
- #: mappress_updater.php:45
788
- msgid "download it now"
789
- msgstr ""
790
-
791
- # @ mappress
792
- #: mappress_updater.php:50
793
- #, php-format
794
- msgid "A PRO Version update is available for manual installation: %s"
795
- msgstr ""
796
-
797
- # @ mappress
798
- #: forms/map_editor.php:4
799
- #: templates/map_directions.php:11
800
- msgid "My location"
801
- msgstr ""
802
-
803
# @ mappress
804
- #: forms/map_editor.php:14
805
- msgid "Click map for lat/lng: "
806
- msgstr ""
807
-
808
- # @ mappress
809
- #: forms/map_editor_infobox.php:22
810
- msgid "Line: "
811
- msgstr ""
812
-
813
- # @ mappress
814
- #: forms/map_editor_infobox.php:24
815
- msgid "Weight"
816
- msgstr ""
817
818
# @ mappress
819
- #: forms/map_editor_infobox.php:25
820
- #: forms/map_editor_infobox.php:31
821
- msgid "Opacity"
822
- msgstr ""
823
824
# @ mappress
825
- #: forms/map_editor_infobox.php:29
826
- msgid "Fill: "
827
- msgstr ""
828
829
# @ mappress
830
- #: forms/map_editor_infobox.php:40
831
- msgid "Visual"
832
- msgstr ""
833
834
# @ mappress
835
- #: forms/map_editor_infobox.php:40
836
- msgid "HTML"
837
- msgstr ""
838
839
# @ mappress
840
- #: forms/map_media.php:9
841
msgid "Maps for This Post"
842
- msgstr ""
843
844
# @ mappress
845
- #: forms/map_media.php:18
846
msgid "Map ID"
847
msgstr "ID de la carte"
848
849
- # @ mappress
850
- #: forms/map_media.php:24
851
- msgid "Size"
852
- msgstr ""
853
-
854
# @ default
855
- #: forms/map_media.php:35
856
msgid "Map Title"
857
- msgstr ""
858
859
- #: pro/mappress_geocoders.php:53
860
- msgid "No results, check that a geocoder is configured"
861
- msgstr ""
862
-
863
- #: pro/mappress_geocoders.php:76
864
- #, php-format
865
- msgid "Invalid status: %s, address: %s"
866
- msgstr ""
867
-
868
- #: pro/mappress_geocoders.php:85
869
- #: pro/mappress_geocoders.php:149
870
- #, php-format
871
- msgid "No results for address: %s"
872
- msgstr ""
873
874
- #: pro/mappress_geocoders.php:145
875
- #, php-format
876
- msgid "Error: %s %s"
877
- msgstr ""
878
879
- # @ mappress
880
- #: pro/mappress_icons.php:62
881
msgid "Cancel"
882
msgstr "Annuler"
883
884
# @ mappress
885
- #: pro/mappress_icons.php:63
886
- #, fuzzy
887
- msgid "Use default icon"
888
- msgstr "Réinitialiser"
889
-
890
- # @ mappress
891
- #: pro/mappress_pro.php:151
892
- #, fuzzy
893
- msgid "Automatic"
894
- msgstr "Affichage de la carte automatique"
895
-
896
- #: pro/mappress_pro_settings.php:10
897
- msgid "POI list"
898
- msgstr ""
899
-
900
- #: pro/mappress_pro_settings.php:11
901
- msgid "Use DataTables"
902
- msgstr ""
903
-
904
- #: pro/mappress_pro_settings.php:13
905
- msgid "InfoWindow type"
906
- msgstr ""
907
-
908
- #: pro/mappress_pro_settings.php:14
909
- msgid "InfoWindow panning"
910
- msgstr ""
911
-
912
- # @ mappress
913
- #: pro/mappress_pro_settings.php:16
914
- #, fuzzy
915
- msgid "Default icon"
916
- msgstr "Défaut"
917
-
918
- #: pro/mappress_pro_settings.php:17
919
- msgid "Custom icons directory"
920
- msgstr ""
921
-
922
- #: pro/mappress_pro_settings.php:19
923
- msgid "Mashup POI title"
924
- msgstr ""
925
-
926
- #: pro/mappress_pro_settings.php:20
927
- msgid "Mashup POI body"
928
- msgstr ""
929
-
930
- #: pro/mappress_pro_settings.php:21
931
- msgid "Mashup POI click"
932
- msgstr ""
933
934
# @ mappress
935
- #: pro/mappress_pro_settings.php:22
936
- #, fuzzy
937
- msgid "Link title"
938
- msgstr "Sans titre"
939
-
940
- #: pro/mappress_pro_settings.php:23
941
- msgid "Mashup Thumbnails"
942
- msgstr ""
943
-
944
- #: pro/mappress_pro_settings.php:24
945
- msgid "Thumbnail Size"
946
- msgstr ""
947
948
# @ mappress
949
- #: pro/mappress_pro_settings.php:26
950
- #, fuzzy
951
- msgid "Styled maps"
952
- msgstr "Rétrécir"
953
954
# @ mappress
955
- #: pro/mappress_pro_settings.php:27
956
- #, fuzzy
957
- msgid "Default style"
958
- msgstr "Défaut"
959
-
960
- #: pro/mappress_pro_settings.php:29
961
- msgid "Geocoder(s)"
962
- msgstr ""
963
-
964
- #: pro/mappress_pro_settings.php:30
965
- msgid "Geocoding fields"
966
- msgstr ""
967
-
968
- #: pro/mappress_pro_settings.php:32
969
- msgid "API key (optional)"
970
- msgstr ""
971
972
# @ mappress
973
- #: pro/mappress_pro_settings.php:33
974
- #, fuzzy
975
- msgid "Map sizes"
976
- msgstr "Types de carte"
977
-
978
- #: pro/mappress_pro_settings.php:34
979
- msgid "Force resize"
980
- msgstr ""
981
-
982
- #: pro/mappress_pro_settings.php:63
983
- msgid "Show a list of POIs under each map"
984
- msgstr ""
985
-
986
- #: pro/mappress_pro_settings.php:68
987
- #, php-format
988
- msgid "Show the POI list as a sortable %s"
989