WP Google Maps - Version 4.20

Version Description

  • Fixed small bugs
Download this release

Release Info

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

Code changes from version 4.19 to 4.20

Files changed (2) hide show
  1. readme.txt +3 -0
  2. wpGoogleMaps.php +8 -3
readme.txt CHANGED
@@ -75,6 +75,9 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
75
 
76
  == Changelog ==
77
 
 
 
 
78
  = 4.19 =
79
  * Fixed small bugs
80
 
75
 
76
  == Changelog ==
77
 
78
+ = 4.20 =
79
+ * Fixed small bugs
80
+
81
  = 4.19 =
82
  * Fixed small bugs
83
 
wpGoogleMaps.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
- Version: 4.19
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  */
@@ -28,8 +28,8 @@ $wpgmza_p = false;
28
  $wpgmza_g = false;
29
  $wpgmza_tblname = $wpdb->prefix . "wpgmza";
30
  $wpgmza_tblname_maps = $wpdb->prefix . "wpgmza_maps";
31
- $wpgmza_version = "4.19";
32
- $wpgmza_p_version = "4.19";
33
  $wpgmza_t = "basic";
34
 
35
  add_action('admin_head', 'wpgmaps_head');
@@ -587,6 +587,7 @@ function wpgmaps_user_javascript_basic() {
587
 
588
 
589
  $res = wpgmza_get_map_data($wpgmza_current_map_id);
 
590
 
591
 
592
  $wpgmza_lat = $res->map_start_lat;
@@ -638,6 +639,10 @@ function wpgmaps_user_javascript_basic() {
638
  var myOptions = {
639
  zoom:zoom,
640
  center: latLng,
 
 
 
 
641
  mapTypeId: google.maps.MapTypeId.<?php echo $wpgmza_map_type; ?>
642
  }
643
 
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
+ Version: 4.20
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  */
28
  $wpgmza_g = false;
29
  $wpgmza_tblname = $wpdb->prefix . "wpgmza";
30
  $wpgmza_tblname_maps = $wpdb->prefix . "wpgmza_maps";
31
+ $wpgmza_version = "4.20";
32
+ $wpgmza_p_version = "4.20";
33
  $wpgmza_t = "basic";
34
 
35
  add_action('admin_head', 'wpgmaps_head');
587
 
588
 
589
  $res = wpgmza_get_map_data($wpgmza_current_map_id);
590
+ $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
591
 
592
 
593
  $wpgmza_lat = $res->map_start_lat;
639
  var myOptions = {
640
  zoom:zoom,
641
  center: latLng,
642
+ zoomControl: <?php if ($wpgmza_settings['wpgmza_settings_map_zoom'] == "yes") { echo "false"; } else { echo "true"; } ?>,
643
+ panControl: <?php if ($wpgmza_settings['wpgmza_settings_map_pan'] == "yes") { echo "false"; } else { echo "true"; } ?>,
644
+ mapTypeControl: <?php if ($wpgmza_settings['wpgmza_settings_map_type'] == "yes") { echo "false"; } else { echo "true"; } ?>,
645
+ streetViewControl: <?php if ($wpgmza_settings['wpgmza_settings_map_streetview'] == "yes") { echo "false"; } else { echo "true"; } ?>,
646
  mapTypeId: google.maps.MapTypeId.<?php echo $wpgmza_map_type; ?>
647
  }
648