Changeset 1907150
- Timestamp:
- 07/10/2018 02:23:07 PM (8 years ago)
- Location:
- yumjam-simple-map-shortcode/trunk
- Files:
-
- 3 edited
-
options.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
yumjam-simple-map-shortcode.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yumjam-simple-map-shortcode/trunk/options.php
r1906849 r1907150 17 17 18 18 <hr> 19 <h2>Shortcode Example</h2> 19 20 20 <h2>Shortcode options</h2> 21 [yj_map address="Buckingham Palace, Westminster, London SW1A 1AA" infowindow="<strong>Buckingham Palace</strong><br> Westminster<br> London<br> SW1A 1AA" infoopen="load"] 22 23 <br><br> 24 <hr> 25 26 <h2>Shortcode Options</h2> 21 27 22 28 <table cellpadding='10px' border=1> … … 68 74 <td>15</td> 69 75 <td> 70 The following list shows the approximate level of detail you can expect to see at each zoom level:<br>71 <br>72 1: World<br>73 5: Landmass/continent<br>74 10: City<br>75 15: Streets<br>76 20: Buildings <br>76 The following list shows the approximate level of detail you can expect to see at each zoom level:<br> 77 <br> 78 1: World<br> 79 5: Landmass/continent<br> 80 10: City<br> 81 15: Streets<br> 82 20: Buildings <br> 77 83 </td> 78 84 </tr> … … 87 93 <td>parameter content populates infowindow, blank or ommited is disabled</td> 88 94 </tr> 95 <tr> 96 <td>infoopen</td> 97 <td>click</td> 98 <td>Open the infowindow on page load or on marker click <br> 99 <br> 100 click<br> 101 load<br> 102 </td> 103 </tr> 89 104 </tbody> 90 105 </table> -
yumjam-simple-map-shortcode/trunk/readme.txt
r1906849 r1907150 45 45 == Changelog == 46 46 47 = 1.0.1 = 48 * Add map type selection from within shortcode 49 * Add infowindow open on load or click option 50 47 51 = 1.0.0 = 48 52 * First Release. -
yumjam-simple-map-shortcode/trunk/yumjam-simple-map-shortcode.php
r1907143 r1907150 83 83 'maptype' => 'roadmap', // roadmap, satellite, hybrid, terrain 84 84 'infowindow' => '', 85 'infoopen' => 'click' 85 86 ), $atts 86 87 ); … … 134 135 <?php 135 136 if (!empty($atts['infowindow'])) { 136 ?>137 marker.addListener('click', function() {137 if (!empty($atts['infoopen']) && $atts['infoopen'] == 'load') { 138 ?> 138 139 infowindow.open(map_<?php echo $map_id; ?>, marker); 139 }); 140 <?php 140 <?php 141 } else { 142 ?> 143 marker.addListener('click', function() { 144 infowindow.open(map_<?php echo $map_id; ?>, marker); 145 }); 146 <?php 147 } 141 148 } 142 149 ?>
Note: See TracChangeset
for help on using the changeset viewer.