Version Description
Upgrade Google Map Plugin from here to get updated features.
Download this release
Release Info
Developer | milonfci |
Plugin | WP Google Map |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- assets/js/custom.js +6 -0
- includes/shortcodes.php +3 -1
- includes/wpgmap_create.php +8 -0
- includes/wpgmap_edit.php +7 -0
- readme.txt +13 -4
- srm_gmap_embed.php +5 -1
assets/js/custom.js
CHANGED
@@ -106,6 +106,11 @@
|
|
106 |
} else {
|
107 |
var wpgmap_show_infowindow = 0;
|
108 |
}
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
var wpgmap_title = parent.find("#wpgmap_title").val();
|
111 |
var wpgmap_heading_class = parent.find("#wpgmap_heading_class").val();
|
@@ -122,6 +127,7 @@
|
|
122 |
wpgmap_show_heading: wpgmap_show_heading,
|
123 |
wpgmap_latlng: wpgmap_latlng,
|
124 |
wpgmap_map_zoom: wpgmap_map_zoom,
|
|
|
125 |
wpgmap_map_width: wpgmap_map_width,
|
126 |
wpgmap_map_height: wpgmap_map_height,
|
127 |
wpgmap_map_type: wpgmap_map_type,
|
106 |
} else {
|
107 |
var wpgmap_show_infowindow = 0;
|
108 |
}
|
109 |
+
if (parent.find("#wpgmap_disable_zoom_scroll").is(':checked') === true) {
|
110 |
+
var wpgmap_disable_zoom_scroll = 1;
|
111 |
+
} else {
|
112 |
+
var wpgmap_disable_zoom_scroll = 0;
|
113 |
+
}
|
114 |
|
115 |
var wpgmap_title = parent.find("#wpgmap_title").val();
|
116 |
var wpgmap_heading_class = parent.find("#wpgmap_heading_class").val();
|
127 |
wpgmap_show_heading: wpgmap_show_heading,
|
128 |
wpgmap_latlng: wpgmap_latlng,
|
129 |
wpgmap_map_zoom: wpgmap_map_zoom,
|
130 |
+
wpgmap_disable_zoom_scroll: wpgmap_disable_zoom_scroll,
|
131 |
wpgmap_map_width: wpgmap_map_width,
|
132 |
wpgmap_map_height: wpgmap_map_height,
|
133 |
wpgmap_map_type: wpgmap_map_type,
|
includes/shortcodes.php
CHANGED
@@ -15,6 +15,7 @@ if (!function_exists('srm_gmap_embed_shortcode')) {
|
|
15 |
$wpgmap_show_heading = esc_html(get_post_meta($atts['id'], 'wpgmap_show_heading', true));
|
16 |
$wpgmap_heading_class = esc_html(get_post_meta($atts['id'], 'wpgmap_heading_class', true));
|
17 |
$wpgmap_latlng = esc_html(get_post_meta($atts['id'], 'wpgmap_latlng', true));
|
|
|
18 |
$wpgmap_map_zoom = esc_html(get_post_meta($atts['id'], 'wpgmap_map_zoom', true));
|
19 |
$wpgmap_map_width = esc_html(get_post_meta($atts['id'], 'wpgmap_map_width', true));
|
20 |
$wpgmap_map_height = esc_html(get_post_meta($atts['id'], 'wpgmap_map_height', true));
|
@@ -33,7 +34,8 @@ if (!function_exists('srm_gmap_embed_shortcode')) {
|
|
33 |
var map = new google.maps.Map(document.getElementById("srm_gmp_embed_<?php echo $count; ?>"), {
|
34 |
center: new google.maps.LatLng(<?php echo $wpgmap_latlng;?>),
|
35 |
zoom:<?php echo $wpgmap_map_zoom;?>,
|
36 |
-
mapTypeId: google.maps.MapTypeId.<?php echo $wpgmap_map_type
|
|
|
37 |
});
|
38 |
|
39 |
var marker = new google.maps.Marker({
|
15 |
$wpgmap_show_heading = esc_html(get_post_meta($atts['id'], 'wpgmap_show_heading', true));
|
16 |
$wpgmap_heading_class = esc_html(get_post_meta($atts['id'], 'wpgmap_heading_class', true));
|
17 |
$wpgmap_latlng = esc_html(get_post_meta($atts['id'], 'wpgmap_latlng', true));
|
18 |
+
$wpgmap_disable_zoom_scroll = esc_html(get_post_meta($atts['id'], 'wpgmap_disable_zoom_scroll', true));
|
19 |
$wpgmap_map_zoom = esc_html(get_post_meta($atts['id'], 'wpgmap_map_zoom', true));
|
20 |
$wpgmap_map_width = esc_html(get_post_meta($atts['id'], 'wpgmap_map_width', true));
|
21 |
$wpgmap_map_height = esc_html(get_post_meta($atts['id'], 'wpgmap_map_height', true));
|
34 |
var map = new google.maps.Map(document.getElementById("srm_gmp_embed_<?php echo $count; ?>"), {
|
35 |
center: new google.maps.LatLng(<?php echo $wpgmap_latlng;?>),
|
36 |
zoom:<?php echo $wpgmap_map_zoom;?>,
|
37 |
+
mapTypeId: google.maps.MapTypeId.<?php echo $wpgmap_map_type;?>,
|
38 |
+
scrollwheel:'<?php echo $wpgmap_disable_zoom_scroll==1?false:true;?>'
|
39 |
});
|
40 |
|
41 |
var marker = new google.maps.Marker({
|
includes/wpgmap_create.php
CHANGED
@@ -40,6 +40,13 @@
|
|
40 |
<label for="wpgmap_map_zoom"><b><?php _e('Zoom','gmap-embed');?></b></label><br/>
|
41 |
<input id="wpgmap_map_zoom" name="wpgmap_map_zoom" value="13" type="text"
|
42 |
class="regular-text">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
@@ -84,6 +91,7 @@
|
|
84 |
id="wpgmap_show_infowindow">
|
85 |
<?php _e('Show in marker infowindow','gmap-embed');?>
|
86 |
</label>
|
|
|
87 |
</td>
|
88 |
</tr>
|
89 |
|
40 |
<label for="wpgmap_map_zoom"><b><?php _e('Zoom','gmap-embed');?></b></label><br/>
|
41 |
<input id="wpgmap_map_zoom" name="wpgmap_map_zoom" value="13" type="text"
|
42 |
class="regular-text">
|
43 |
+
<br/>
|
44 |
+
|
45 |
+
<label for="wpgmap_disable_zoom_scroll"><input type="checkbox" value="1"
|
46 |
+
name="wpgmap_disable_zoom_scroll"
|
47 |
+
id="wpgmap_disable_zoom_scroll">
|
48 |
+
<?php _e('Disable zoom on mouse scroll','gmap-embed');?>
|
49 |
+
</label>
|
50 |
</td>
|
51 |
</tr>
|
52 |
|
91 |
id="wpgmap_show_infowindow">
|
92 |
<?php _e('Show in marker infowindow','gmap-embed');?>
|
93 |
</label>
|
94 |
+
|
95 |
</td>
|
96 |
</tr>
|
97 |
|
includes/wpgmap_edit.php
CHANGED
@@ -49,6 +49,13 @@ list($wpgmap_lat, $wpgmap_lng) = explode(',', esc_html($wpgmap_single->wpgmap_la
|
|
49 |
<input id="wpgmap_map_zoom" name="wpgmap_map_zoom"
|
50 |
value="<?php echo esc_attr($wpgmap_single->wpgmap_map_zoom); ?>" type="text"
|
51 |
class="regular-text">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</td>
|
53 |
</tr>
|
54 |
|
49 |
<input id="wpgmap_map_zoom" name="wpgmap_map_zoom"
|
50 |
value="<?php echo esc_attr($wpgmap_single->wpgmap_map_zoom); ?>" type="text"
|
51 |
class="regular-text">
|
52 |
+
|
53 |
+
<label for="wpgmap_disable_zoom_scroll"><input type="checkbox" value="1"
|
54 |
+
name="wpgmap_disable_zoom_scroll"
|
55 |
+
id="wpgmap_disable_zoom_scroll" <?php echo ($wpgmap_single->wpgmap_disable_zoom_scroll == 1) ? 'checked' : ''; ?>>
|
56 |
+
<?php _e('Disable zoom on mouse scroll','gmap-embed');?>
|
57 |
+
</label>
|
58 |
+
|
59 |
</td>
|
60 |
</tr>
|
61 |
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Google Map ===
|
2 |
Contributors: milonfci
|
3 |
-
Donate link: http://www.srmilon.com/
|
4 |
Tags: Google Map, Google Map Embed, gmap, google map embed, wp map, wp map embed, map embed, best google maps, best maps, bing maps, cross browser, custom google map, custom google maps, map direction, easy map, geo, geocoder, gmaps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, googlemaps, gprs, gps, gpx, kml, latitude, Longitude, location, loaction by address, map, map directions, map markers, map plugin, map shortcode, map styles, maps google, post map, map point, polygons, roads, routes, store locator, street view, wp google map, contact page map, google map wordpress, google maps wordpress, google maps for wordpress, simple google map, simple google map plugin, wp google maps,maps
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.7
|
7 |
-
Version: 1.1.
|
8 |
-
Stable tag: 1.1.
|
9 |
Text Domain: gmap-embed
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -19,6 +19,9 @@ Google Map is awesome plugin to add Google Custom map in website.It is fully cus
|
|
19 |
* [Demo](http://www.srmilon.com/google-map-demo/)
|
20 |
* [Support Forum](https://wordpress.org/support/plugin/gmap-embed)
|
21 |
|
|
|
|
|
|
|
22 |
https://www.youtube.com/watch?v=Q_p-iNmYAUE
|
23 |
|
24 |
### Features of Google Map Plugin:
|
@@ -147,4 +150,10 @@ See the [Video](https://www.youtube.com/watch?v=Q_p-iNmYAUE) ,hope you will get
|
|
147 |
|
148 |
|
149 |
= 1.1.1 =
|
150 |
-
* Menu Position changed and readme.txt updated
|
|
|
|
|
|
|
|
|
|
|
|
1 |
=== Google Map ===
|
2 |
Contributors: milonfci
|
3 |
+
Donate link: http://www.srmilon.com/google-map-demo
|
4 |
Tags: Google Map, Google Map Embed, gmap, google map embed, wp map, wp map embed, map embed, best google maps, best maps, bing maps, cross browser, custom google map, custom google maps, map direction, easy map, geo, geocoder, gmaps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, googlemaps, gprs, gps, gpx, kml, latitude, Longitude, location, loaction by address, map, map directions, map markers, map plugin, map shortcode, map styles, maps google, post map, map point, polygons, roads, routes, store locator, street view, wp google map, contact page map, google map wordpress, google maps wordpress, google maps for wordpress, simple google map, simple google map plugin, wp google maps,maps
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.7
|
7 |
+
Version: 1.1.4
|
8 |
+
Stable tag: 1.1.4
|
9 |
Text Domain: gmap-embed
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
19 |
* [Demo](http://www.srmilon.com/google-map-demo/)
|
20 |
* [Support Forum](https://wordpress.org/support/plugin/gmap-embed)
|
21 |
|
22 |
+
To have continue the update, please donate for the plugin.
|
23 |
+
[Click here to donate](http://www.srmilon.com/google-map-demo)
|
24 |
+
|
25 |
https://www.youtube.com/watch?v=Q_p-iNmYAUE
|
26 |
|
27 |
### Features of Google Map Plugin:
|
150 |
|
151 |
|
152 |
= 1.1.1 =
|
153 |
+
* Menu Position changed and readme.txt updated
|
154 |
+
|
155 |
+
= 1.1.2, 1.1.3 =
|
156 |
+
* Small bug fixes
|
157 |
+
|
158 |
+
= 1.1.4 =
|
159 |
+
* Added option to disable/enable zoom on mouse scrolling
|
srm_gmap_embed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
Author: SRMILON
|
7 |
Text Domain: gmap-embed
|
8 |
Author URI: http://www.srmilon.com
|
9 |
-
Version: 1.1.
|
10 |
*/
|
11 |
|
12 |
if (!defined('ABSPATH')) exit;
|
@@ -86,6 +86,7 @@ if (!class_exists('srm_gmap_embed_main')) {
|
|
86 |
register_setting('gmap_settings_group', 'gmap_width');
|
87 |
register_setting('gmap_settings_group', 'gmap_height');
|
88 |
register_setting('gmap_settings_group', 'gmap_zoom');
|
|
|
89 |
register_setting('gmap_settings_group', 'gmap_type');
|
90 |
}
|
91 |
|
@@ -124,6 +125,7 @@ if (!class_exists('srm_gmap_embed_main')) {
|
|
124 |
'wpgmap_show_heading' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_show_heading'])),
|
125 |
'wpgmap_latlng' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_latlng'])),
|
126 |
'wpgmap_map_zoom' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_zoom'])),
|
|
|
127 |
'wpgmap_map_width' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_width'])),
|
128 |
'wpgmap_map_height' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_height'])),
|
129 |
'wpgmap_map_type' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_type'])),
|
@@ -263,6 +265,7 @@ if (!class_exists('srm_gmap_embed_main')) {
|
|
263 |
'wpgmap_show_heading' => get_post_meta($gmap_id, 'wpgmap_show_heading', true),
|
264 |
'wpgmap_latlng' => get_post_meta($gmap_id, 'wpgmap_latlng', true),
|
265 |
'wpgmap_map_zoom' => get_post_meta($gmap_id, 'wpgmap_map_zoom', true),
|
|
|
266 |
'wpgmap_map_width' => get_post_meta($gmap_id, 'wpgmap_map_width', true),
|
267 |
'wpgmap_map_height' => get_post_meta($gmap_id, 'wpgmap_map_height', true),
|
268 |
'wpgmap_map_type' => get_post_meta($gmap_id, 'wpgmap_map_type', true),
|
@@ -282,6 +285,7 @@ if (!class_exists('srm_gmap_embed_main')) {
|
|
282 |
'wpgmap_show_heading',
|
283 |
'wpgmap_latlng',
|
284 |
'wpgmap_map_zoom',
|
|
|
285 |
'wpgmap_map_width',
|
286 |
'wpgmap_map_height',
|
287 |
'wpgmap_map_type',
|
6 |
Author: SRMILON
|
7 |
Text Domain: gmap-embed
|
8 |
Author URI: http://www.srmilon.com
|
9 |
+
Version: 1.1.4
|
10 |
*/
|
11 |
|
12 |
if (!defined('ABSPATH')) exit;
|
86 |
register_setting('gmap_settings_group', 'gmap_width');
|
87 |
register_setting('gmap_settings_group', 'gmap_height');
|
88 |
register_setting('gmap_settings_group', 'gmap_zoom');
|
89 |
+
register_setting('gmap_settings_group', 'gmap_disable_zoom_scroll');
|
90 |
register_setting('gmap_settings_group', 'gmap_type');
|
91 |
}
|
92 |
|
125 |
'wpgmap_show_heading' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_show_heading'])),
|
126 |
'wpgmap_latlng' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_latlng'])),
|
127 |
'wpgmap_map_zoom' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_zoom'])),
|
128 |
+
'wpgmap_disable_zoom_scroll' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_disable_zoom_scroll'])),
|
129 |
'wpgmap_map_width' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_width'])),
|
130 |
'wpgmap_map_height' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_height'])),
|
131 |
'wpgmap_map_type' => sanitize_text_field(esc_html($_POST['map_data']['wpgmap_map_type'])),
|
265 |
'wpgmap_show_heading' => get_post_meta($gmap_id, 'wpgmap_show_heading', true),
|
266 |
'wpgmap_latlng' => get_post_meta($gmap_id, 'wpgmap_latlng', true),
|
267 |
'wpgmap_map_zoom' => get_post_meta($gmap_id, 'wpgmap_map_zoom', true),
|
268 |
+
'wpgmap_disable_zoom_scroll' => get_post_meta($gmap_id, 'wpgmap_disable_zoom_scroll', true),
|
269 |
'wpgmap_map_width' => get_post_meta($gmap_id, 'wpgmap_map_width', true),
|
270 |
'wpgmap_map_height' => get_post_meta($gmap_id, 'wpgmap_map_height', true),
|
271 |
'wpgmap_map_type' => get_post_meta($gmap_id, 'wpgmap_map_type', true),
|
285 |
'wpgmap_show_heading',
|
286 |
'wpgmap_latlng',
|
287 |
'wpgmap_map_zoom',
|
288 |
+
'wpgmap_disable_zoom_scroll',
|
289 |
'wpgmap_map_width',
|
290 |
'wpgmap_map_height',
|
291 |
'wpgmap_map_type',
|