WP Google Maps - Version 4.0

Version Description

  • Added multiple maps functionality and everything that goes with it!
  • Added Map Alignment functionality (Left, Center, Right, None)
  • Added Map Type functionality (Roadmap, Terrain, Satellite, Hybrid)
  • Started using the Geocoding API Version 3 instead of Version 2 resulting in quicker address=>gps results.
  • Fixed bug that didnt import animation data for CSV files
  • Fixed a bug that defaulted the zoom functionality
Download this release

Release Info

Developer WPGMaps
Plugin Icon 128x128 WP Google Maps
Version 4.0
Comparing to
See all releases

Version 4.0

cache/index.html ADDED
File without changes
css/data_table.css ADDED
@@ -0,0 +1,575 @@
1
+ /*
2
+ * File: demo_table.css
3
+ * CVS: $Id$
4
+ * Description: CSS descriptions for DataTables demo pages
5
+ * Author: Allan Jardine
6
+ * Created: Tue May 12 06:47:22 BST 2009
7
+ * Modified: $Date$ by $Author$
8
+ * Language: CSS
9
+ * Project: DataTables
10
+ *
11
+ * Copyright 2009 Allan Jardine. All Rights Reserved.
12
+ *
13
+ * ***************************************************************************
14
+ * DESCRIPTION
15
+ *
16
+ * The styles given here are suitable for the demos that are used with the standard DataTables
17
+ * distribution (see www.datatables.net). You will most likely wish to modify these styles to
18
+ * meet the layout requirements of your site.
19
+ *
20
+ * Common issues:
21
+ * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
22
+ * no conflict between the two pagination types. If you want to use full_numbers pagination
23
+ * ensure that you either have "example_alt_pagination" as a body class name, or better yet,
24
+ * modify that selector.
25
+ * Note that the path used for Images is relative. All images are by default located in
26
+ * ../images/ - relative to this CSS file.
27
+ */
28
+
29
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
30
+ * DataTables features
31
+ */
32
+
33
+ .dataTables_wrapper {
34
+ position: relative;
35
+ clear: both;
36
+ zoom: 1; /* Feeling sorry for IE */
37
+ }
38
+
39
+ .dataTables_processing {
40
+ position: absolute;
41
+ top: 50%;
42
+ left: 50%;
43
+ width: 250px;
44
+ height: 30px;
45
+ margin-left: -125px;
46
+ margin-top: -15px;
47
+ padding: 14px 0 2px 0;
48
+ border: 1px solid #ddd;
49
+ text-align: center;
50
+ color: #999;
51
+ font-size: 14px;
52
+ background-color: white;
53
+ }
54
+
55
+ .dataTables_length {
56
+ width: 40%;
57
+ float: left;
58
+ }
59
+
60
+ .dataTables_filter {
61
+ width: 50%;
62
+ float: right;
63
+ text-align: right;
64
+ }
65
+
66
+ .dataTables_info {
67
+ width: 60%;
68
+ float: left;
69
+ }
70
+
71
+ .dataTables_paginate {
72
+ float: right;
73
+ text-align: right;
74
+ }
75
+
76
+ /* Pagination nested */
77
+ .paginate_disabled_previous, .paginate_enabled_previous,
78
+ .paginate_disabled_next, .paginate_enabled_next {
79
+ height: 19px;
80
+ float: left;
81
+ cursor: pointer;
82
+ *cursor: hand;
83
+ color: #111 !important;
84
+ }
85
+ .paginate_disabled_previous:hover, .paginate_enabled_previous:hover,
86
+ .paginate_disabled_next:hover, .paginate_enabled_next:hover {
87
+ text-decoration: none !important;
88
+ }
89
+ .paginate_disabled_previous:active, .paginate_enabled_previous:active,
90
+ .paginate_disabled_next:active, .paginate_enabled_next:active {
91
+ outline: none;
92
+ }
93
+
94
+ .paginate_disabled_previous,
95
+ .paginate_disabled_next {
96
+ color: #666 !important;
97
+ }
98
+ .paginate_disabled_previous, .paginate_enabled_previous {
99
+ padding-left: 23px;
100
+ }
101
+ .paginate_disabled_next, .paginate_enabled_next {
102
+ padding-right: 23px;
103
+ margin-left: 10px;
104
+ }
105
+
106
+ .paginate_disabled_previous {
107
+ background: url('../images/back_disabled.png') no-repeat top left;
108
+ }
109
+
110
+ .paginate_enabled_previous {
111
+ background: url('../images/back_enabled.png') no-repeat top left;
112
+ }
113
+ .paginate_enabled_previous:hover {
114
+ background: url('../images/back_enabled_hover.png') no-repeat top left;
115
+ }
116
+
117
+ .paginate_disabled_next {
118
+ background: url('../images/forward_disabled.png') no-repeat top right;
119
+ }
120
+
121
+ .paginate_enabled_next {
122
+ background: url('../images/forward_enabled.png') no-repeat top right;
123
+ }
124
+ .paginate_enabled_next:hover {
125
+ background: url('../images/forward_enabled_hover.png') no-repeat top right;
126
+ }
127
+
128
+
129
+
130
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
131
+ * DataTables display
132
+ */
133
+ table.display {
134
+ margin: 0 auto;
135
+ clear: both;
136
+ width: 100%;
137
+
138
+ /* Note Firefox 3.5 and before have a bug with border-collapse
139
+ * ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
140
+ * border-spacing: 0; is one possible option. Conditional-css.com is
141
+ * useful for this kind of thing
142
+ *
143
+ * Further note IE 6/7 has problems when calculating widths with border width.
144
+ * It subtracts one px relative to the other browsers from the first column, and
145
+ * adds one to the end...
146
+ *
147
+ * If you want that effect I'd suggest setting a border-top/left on th/td's and
148
+ * then filling in the gaps with other borders.
149
+ */
150
+ }
151
+
152
+ table.display thead th {
153
+ padding: 3px 18px 3px 10px;
154
+ border-bottom: 1px solid black;
155
+ font-weight: bold;
156
+ cursor: pointer;
157
+ * cursor: hand;
158
+ }
159
+
160
+ table.display tfoot th {
161
+ padding: 3px 18px 3px 10px;
162
+ border-top: 1px solid black;
163
+ font-weight: bold;
164
+ }
165
+
166
+ table.display tr.heading2 td {
167
+ border-bottom: 1px solid #aaa;
168
+ }
169
+
170
+ table.display td {
171
+ padding: 3px 10px;
172
+ }
173
+
174
+ table.display td.center {
175
+ text-align: center;
176
+ }
177
+
178
+
179
+
180
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
181
+ * DataTables sorting
182
+ */
183
+
184
+ .sorting_asc {
185
+ background: url('../images/sort_asc.png') no-repeat center right;
186
+ }
187
+
188
+ .sorting_desc {
189
+ background: url('../images/sort_desc.png') no-repeat center right;
190
+ }
191
+
192
+ .sorting {
193
+ background: url('../images/sort_both.png') no-repeat center right;
194
+ }
195
+
196
+ .sorting_asc_disabled {
197
+ background: url('../images/sort_asc_disabled.png') no-repeat center right;
198
+ }
199
+
200
+ .sorting_desc_disabled {
201
+ background: url('../images/sort_desc_disabled.png') no-repeat center right;
202
+ }
203
+
204
+ th:active {
205
+ outline: none;
206
+ }
207
+
208
+
209
+
210
+
211
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
212
+ * DataTables row classes
213
+ */
214
+ table.display tr.odd.gradeA {
215
+ background-color: #ddffdd;
216
+ }
217
+
218
+ table.display tr.even.gradeA {
219
+ background-color: #eeffee;
220
+ }
221
+
222
+ table.display tr.odd.gradeC {
223
+ background-color: #ddddff;
224
+ }
225
+
226
+ table.display tr.even.gradeC {
227
+ background-color: #eeeeff;
228
+ }
229
+
230
+ table.display tr.odd.gradeX {
231
+ background-color: #ffdddd;
232
+ }
233
+
234
+ table.display tr.even.gradeX {
235
+ background-color: #ffeeee;
236
+ }
237
+
238
+ table.display tr.odd.gradeU {
239
+ background-color: #ddd;
240
+ }
241
+
242
+ table.display tr.even.gradeU {
243
+ background-color: #eee;
244
+ }
245
+
246
+
247
+ tr.odd {
248
+ background-color: #E2E4FF;
249
+ }
250
+
251
+ tr.even {
252
+ background-color: white;
253
+ }
254
+
255
+
256
+
257
+
258
+
259
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
260
+ * Misc
261
+ */
262
+ .dataTables_scroll {
263
+ clear: both;
264
+ }
265
+
266
+ .dataTables_scrollBody {
267
+ *margin-top: -1px;
268
+ }
269
+
270
+ .top, .bottom {
271
+ padding: 15px;
272
+ background-color: #F5F5F5;
273
+ border: 1px solid #CCCCCC;
274
+ }
275
+
276
+ .top .dataTables_info {
277
+ float: none;
278
+ }
279
+
280
+ .clear {
281
+ clear: both;
282
+ }
283
+
284
+ .dataTables_empty {
285
+ text-align: center;
286
+ }
287
+
288
+ tfoot input {
289
+ margin: 0.5em 0;
290
+ width: 100%;
291
+ color: #444;
292
+ }
293
+
294
+ tfoot input.search_init {
295
+ color: #999;
296
+ }
297
+
298
+ td.group {
299
+ background-color: #d1cfd0;
300
+ border-bottom: 2px solid #A19B9E;
301
+ border-top: 2px solid #A19B9E;
302
+ }
303
+
304
+ td.details {
305
+ background-color: #d1cfd0;
306
+ border: 2px solid #A19B9E;
307
+ }
308
+
309
+
310
+ .example_alt_pagination div.dataTables_info {
311
+ width: 40%;
312
+ }
313
+
314
+ .paging_full_numbers {
315
+ width: 400px;
316
+ height: 22px;
317
+ line-height: 22px;
318
+ }
319
+
320
+ .paging_full_numbers a:active {
321
+ outline: none
322
+ }
323
+
324
+ .paging_full_numbers a:hover {
325
+ text-decoration: none;
326
+ }
327
+
328
+ .paging_full_numbers a.paginate_button,
329
+ .paging_full_numbers a.paginate_active {
330
+ border: 1px solid #aaa;
331
+ -webkit-border-radius: 5px;
332
+ -moz-border-radius: 5px;
333
+ padding: 2px 5px;
334
+ margin: 0 3px;
335
+ cursor: pointer;
336
+ *cursor: hand;
337
+ color: #333 !important;
338
+ }
339
+
340
+ .paging_full_numbers a.paginate_button {
341
+ background-color: #ddd;
342
+ }
343
+
344
+ .paging_full_numbers a.paginate_button:hover {
345
+ background-color: #ccc;
346
+ text-decoration: none !important;
347
+ }
348
+
349
+ .paging_full_numbers a.paginate_active {
350
+ background-color: #99B3FF;
351
+ }
352
+
353
+ table.display tr.even.row_selected td {
354
+ background-color: #B0BED9;
355
+ }
356
+
357
+ table.display tr.odd.row_selected td {
358
+ background-color: #9FAFD1;
359
+ }
360
+
361
+
362
+ /*
363
+ * Sorting classes for columns
364
+ */
365
+ /* For the standard odd/even */
366
+ tr.odd td.sorting_1 {
367
+ background-color: #D3D6FF;
368
+ }
369
+
370
+ tr.odd td.sorting_2 {
371
+ background-color: #DADCFF;
372
+ }
373
+
374
+ tr.odd td.sorting_3 {
375
+ background-color: #E0E2FF;
376
+ }
377
+
378
+ tr.even td.sorting_1 {
379
+ background-color: #EAEBFF;
380
+ }
381
+
382
+ tr.even td.sorting_2 {
383
+ background-color: #F2F3FF;
384
+ }
385
+
386
+ tr.even td.sorting_3 {
387
+ background-color: #F9F9FF;
388
+ }
389
+
390
+
391
+ /* For the Conditional-CSS grading rows */
392
+ /*
393
+ Colour calculations (based off the main row colours)
394
+ Level 1:
395
+ dd > c4
396
+ ee > d5
397
+ Level 2:
398
+ dd > d1
399
+ ee > e2
400
+ */
401
+ tr.odd.gradeA td.sorting_1 {
402
+ background-color: #c4ffc4;
403
+ }
404
+
405
+ tr.odd.gradeA td.sorting_2 {
406
+ background-color: #d1ffd1;
407
+ }
408
+
409
+ tr.odd.gradeA td.sorting_3 {
410
+ background-color: #d1ffd1;
411
+ }
412
+
413
+ tr.even.gradeA td.sorting_1 {
414
+ background-color: #d5ffd5;
415
+ }
416
+
417
+ tr.even.gradeA td.sorting_2 {
418
+ background-color: #e2ffe2;
419
+ }
420
+
421
+ tr.even.gradeA td.sorting_3 {
422
+ background-color: #e2ffe2;
423
+ }
424
+
425
+ tr.odd.gradeC td.sorting_1 {
426
+ background-color: #c4c4ff;
427
+ }
428
+
429
+ tr.odd.gradeC td.sorting_2 {
430
+ background-color: #d1d1ff;
431
+ }
432
+
433
+ tr.odd.gradeC td.sorting_3 {
434
+ background-color: #d1d1ff;
435
+ }
436
+
437
+ tr.even.gradeC td.sorting_1 {
438
+ background-color: #d5d5ff;
439
+ }
440
+
441
+ tr.even.gradeC td.sorting_2 {
442
+ background-color: #e2e2ff;
443
+ }
444
+
445
+ tr.even.gradeC td.sorting_3 {
446
+ background-color: #e2e2ff;
447
+ }
448
+
449
+ tr.odd.gradeX td.sorting_1 {
450
+ background-color: #ffc4c4;
451
+ }
452
+
453
+ tr.odd.gradeX td.sorting_2 {
454
+ background-color: #ffd1d1;
455
+ }
456
+
457
+ tr.odd.gradeX td.sorting_3 {
458
+ background-color: #ffd1d1;
459
+ }
460
+
461
+ tr.even.gradeX td.sorting_1 {
462
+ background-color: #ffd5d5;
463
+ }
464
+
465
+ tr.even.gradeX td.sorting_2 {
466
+ background-color: #ffe2e2;
467
+ }
468
+
469
+ tr.even.gradeX td.sorting_3 {
470
+ background-color: #ffe2e2;
471
+ }
472
+
473
+ tr.odd.gradeU td.sorting_1 {
474
+ background-color: #c4c4c4;
475
+ }
476
+
477
+ tr.odd.gradeU td.sorting_2 {
478
+ background-color: #d1d1d1;
479
+ }
480
+
481
+ tr.odd.gradeU td.sorting_3 {
482
+ background-color: #d1d1d1;
483
+ }
484
+
485
+ tr.even.gradeU td.sorting_1 {
486
+ background-color: #d5d5d5;
487
+ }
488
+
489
+ tr.even.gradeU td.sorting_2 {
490
+ background-color: #e2e2e2;
491
+ }
492
+
493
+ tr.even.gradeU td.sorting_3 {
494
+ background-color: #e2e2e2;
495
+ }
496
+
497
+
498
+ /*
499
+ * Row highlighting example
500
+ */
501
+ .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
502
+ background-color: #ECFFB3;
503
+ }
504
+
505
+ .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
506
+ background-color: #E6FF99;
507
+ }
508
+
509
+ .ex_highlight_row #example tr.even:hover {
510
+ background-color: #ECFFB3;
511
+ }
512
+
513
+ .ex_highlight_row #example tr.even:hover td.sorting_1 {
514
+ background-color: #DDFF75;
515
+ }
516
+
517
+ .ex_highlight_row #example tr.even:hover td.sorting_2 {
518
+ background-color: #E7FF9E;
519
+ }
520
+
521
+ .ex_highlight_row #example tr.even:hover td.sorting_3 {
522
+ background-color: #E2FF89;
523
+ }
524
+
525
+ .ex_highlight_row #example tr.odd:hover {
526
+ background-color: #E6FF99;
527
+ }
528
+
529
+ .ex_highlight_row #example tr.odd:hover td.sorting_1 {
530
+ background-color: #D6FF5C;
531
+ }
532
+
533
+ .ex_highlight_row #example tr.odd:hover td.sorting_2 {
534
+ background-color: #E0FF84;
535
+ }
536
+
537
+ .ex_highlight_row #example tr.odd:hover td.sorting_3 {
538
+ background-color: #DBFF70;
539
+ }
540
+
541
+
542
+ /*
543
+ * KeyTable
544
+ */
545
+ table.KeyTable td {
546
+ border: 3px solid transparent;
547
+ }
548
+
549
+ table.KeyTable td.focus {
550
+ border: 3px solid #3366FF;
551
+ }
552
+
553
+ table.display tr.gradeA {
554
+ background-color: #eeffee;
555
+ }
556
+
557
+ table.display tr.gradeC {
558
+ background-color: #ddddff;
559
+ }
560
+
561
+ table.display tr.gradeX {
562
+ background-color: #ffdddd;
563
+ }
564
+
565
+ table.display tr.gradeU {
566
+ background-color: #ddd;
567
+ }
568
+
569
+ div.box {
570
+ height: 100px;
571
+ padding: 10px;
572
+ overflow: auto;
573
+ border: 1px solid #8080FF;
574
+ background-color: #E5E5FF;
575
+ }
css/wpgmza_style.css ADDED
@@ -0,0 +1,8 @@
1
+ #wpgmza_map img {
2
+ border: none !important;
3
+ background-color:transparent !important;
4
+ }
5
+ .wpgmza_map img {
6
+ border: none !important;
7
+ background-color:transparent !important;
8
+ }
csv.php ADDED
@@ -0,0 +1,42 @@
1
+ <?php
2
+
3
+ require('../../../wp-load.php' );
4
+
5
+
6
+
7
+ global $wpdb;
8
+ $fileName = $wpdb->prefix.'wpgmza.csv';
9
+
10
+ header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
11
+ header('Content-Description: File Transfer');
12
+ header("Content-type: text/csv");
13
+ header("Content-Disposition: attachment; filename={$fileName}");
14
+ header("Expires: 0");
15
+ header("Pragma: public");
16
+
17
+ $fh = @fopen( 'php://output', 'w' );
18
+
19
+
20
+ $query = "SELECT * FROM `{$wpdb->prefix}wpgmza`";
21
+ $results = $wpdb->get_results( $query, ARRAY_A );
22
+
23
+ $headerDisplayed = false;
24
+
25
+ foreach ( $results as $data ) {
26
+ // Add a header row if it hasn't been added yet
27
+ if ( !$headerDisplayed ) {
28
+ // Use the keys from $data as the titles
29
+ fputcsv($fh, array_keys($data));
30
+ $headerDisplayed = true;
31
+ }
32
+
33
+ // Put the data into the stream
34
+ fputcsv($fh, $data);
35
+ }
36
+ // Close the file
37
+ fclose($fh);
38
+ // Make sure nothing else is sent, our file is done
39
+ exit;
40
+
41
+
42
+ ?>
images/back_disabled.png ADDED
Binary file
images/back_enabled.png ADDED
Binary file
images/back_enabled_hover.png ADDED
Binary file
images/custom_marker_icons.jpg ADDED
Binary file
images/custom_markers.jpg ADDED
Binary file
images/forward_disabled.png ADDED
Binary file
images/forward_enabled.png ADDED
Binary file
images/forward_enabled_hover.png ADDED
Binary file
images/get_directions.jpg ADDED
Binary file
images/map_app.png ADDED
Binary file
images/map_app_small.png ADDED
Binary file
images/marker.png ADDED
Binary file
images/sort_asc.png ADDED
Binary file
images/sort_asc_disabled.png ADDED
Binary file
images/sort_both.png ADDED
Binary file
images/sort_desc.png ADDED
Binary file
images/sort_desc_disabled.png ADDED
Binary file
js/jquery.dataTables.js ADDED
@@ -0,0 +1,11612 @@