WordPress.org

Plugin Directory

Changeset 422507


Ignore:
Timestamp:
08/12/11 05:19:31 (7 years ago)
Author:
yohman
Message:

fixed mymaps bug, added new features

Location:
google-maps-v3-shortcode/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • google-maps-v3-shortcode/trunk/Google-Maps-v3-Shortcode.php

    r419408 r422507  
    44Plugin URI: http://gis.yohman.com 
    55Description: This plugin allows you to add one or more maps to your page/post using shortcodes.  Features include:  multiple maps on the same page, specify location by address or lat/lon combo, add kml, add fusion table layer, show traffic, show bike lanes, add your own custom image icon, set map size. 
    6 Version: 1.2 
     6Version: 1.2.1 
    77Author: yohda 
    88Author URI: http://gis.yohman.com/ 
    9 Last updated: 8/3/2011 
     9Last updated: 8/11/2011 
    1010*/ 
    1111 
     
    1313// Add the google maps api to header 
    1414add_action('wp_head', 'gmaps_header'); 
    15  
     15  
    1616function gmaps_header() { 
    1717    ?> 
     
    4242                                    'bike' => 'no', 
    4343                                    'fusion' => '', 
    44                                     'infowindow' => '', 
    4544                                    'start' => '', 
    4645                                    'end' => '', 
     
    4847                                    'infowindowdefault' => 'yes', 
    4948                                    'directions' => '', 
    50                                     'hidecontrols' => 'false' 
     49                                    'hidecontrols' => 'false', 
     50                                    'scale' => 'false', 
     51                                    'scrollwheel' => 'true' 
    5152                                     
    5253                                    ), $attr); 
     
    7677            zoom: ' . $attr['z'] . ', 
    7778            center: latlng, 
     79            scrollwheel: ' . $attr['scrollwheel'] .', 
     80            scaleControl: ' . $attr['scale'] .', 
    7881            disableDefaultUI: ' . $attr['hidecontrols'] .', 
    7982            mapTypeId: google.maps.MapTypeId.' . $attr['maptype'] . ' 
     
    99102            } 
    100103            $returnme .= ' 
    101             var kmllayer = new google.maps.KmlLayer(\'' . htmlspecialchars_decode($attr['kml']) . '\',kmlLayerOptions); 
     104            var kmllayer = new google.maps.KmlLayer(\'' . html_entity_decode($attr['kml']) . '\',kmlLayerOptions); 
    102105            kmllayer.setMap(' . $attr['id'] . '); 
    103106            '; 
  • google-maps-v3-shortcode/trunk/readme.txt

    r419408 r422507  
    55Requires at least: 2.8 
    66Tested up to: 3.21 
    7 Stable tag: 1.2 
    8 Last udated:  8/4/2011 
     7Stable tag: 1.2.1 
     8Last udated:  8/11/2011 
    99 
    1010This plugin allows you to add one or more maps (via the Google Maps v3 API) to your page/post using shortcodes.  
     
    3434* show traffic 
    3535* show bike lanes 
     36* disable scroll wheel zoom 
     37* add scale bar 
    3638 
    3739See a full description here: 
     
    9698 
    9799 
    98  
    99100== Screenshots == 
    100101 
     
    104105 
    105106== Changelog == 
     107 
     108= 1.2.1 = 
     109* fixed bug that was not allowing Google My Map KML to display 
     110* added option to disable scroll wheel zoom 
     111* added option to display scale bar 
    106112 
    107113= 1.2 = 
     
    122128== Upgrade Notice == 
    123129 
    124 = 1.2 = 
    125 * show bike layer 
    126 * show info window by default 
    127 * add fusion table layer 
    128 * option to disable autozoom to KML bounds 
     130= 1.2.1 = 
     131* fixed bug that was not allowing Google My Map KML to display 
     132* added option to disable scroll wheel zoom 
     133* added option to display scale bar 
    129134 
    130135= 1.0 = 
Note: See TracChangeset for help on using the changeset viewer.