Version Description
- Initial marker dragging related problem fixing
- API key trailing blank space removed
Download this release
Release Info
Developer | milonfci |
Plugin | WP Google Map |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- assets/js/srm_gmap_loader.js +5 -4
- includes/gmap.php +1 -1
- readme.txt +7 -3
- srm_gmap_embed.php +1 -1
assets/js/srm_gmap_loader.js
CHANGED
@@ -20,6 +20,10 @@ function initAutocomplete(id, input, center_lat, center_lng, map_type, zoom) {
|
|
20 |
animation: google.maps.Animation.DROP
|
21 |
});
|
22 |
marker1.setMap(map);
|
|
|
|
|
|
|
|
|
23 |
return;
|
24 |
}
|
25 |
document.getElementById("wpgmap_latlng").value = center_lat + "," + center_lng;
|
@@ -98,8 +102,5 @@ function initAutocomplete(id, input, center_lat, center_lng, map_type, zoom) {
|
|
98 |
});
|
99 |
|
100 |
});
|
101 |
-
|
102 |
-
document.getElementById("wpgmap_latlng").value = markerLocation.latLng.lat() + "," + markerLocation.latLng.lng();
|
103 |
-
wpgmapSetAddressByLatLng(markerLocation.latLng.lat(), markerLocation.latLng.lng());
|
104 |
-
});
|
105 |
}
|
20 |
animation: google.maps.Animation.DROP
|
21 |
});
|
22 |
marker1.setMap(map);
|
23 |
+
marker1.addListener('dragend', function (markerLocation) {
|
24 |
+
document.getElementById("wpgmap_latlng").value = markerLocation.latLng.lat() + "," + markerLocation.latLng.lng();
|
25 |
+
wpgmapSetAddressByLatLng(markerLocation.latLng.lat(), markerLocation.latLng.lng());
|
26 |
+
});
|
27 |
return;
|
28 |
}
|
29 |
document.getElementById("wpgmap_latlng").value = center_lat + "," + center_lng;
|
102 |
});
|
103 |
|
104 |
});
|
105 |
+
|
|
|
|
|
|
|
106 |
}
|
includes/gmap.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
if (!defined('ABSPATH')) exit;
|
3 |
if (isset($_GET['page'])) {
|
4 |
if (isset($_POST['wpgmapembed_key'])) {
|
5 |
-
$api_key = $_POST['wpgmapembed_key'];
|
6 |
if ($api_key != '') {
|
7 |
if (get_option('wpgmap_api_key') !== false) {
|
8 |
update_option('wpgmap_api_key', $api_key, '', 'yes');
|
2 |
if (!defined('ABSPATH')) exit;
|
3 |
if (isset($_GET['page'])) {
|
4 |
if (isset($_POST['wpgmapembed_key'])) {
|
5 |
+
$api_key = trim($_POST['wpgmapembed_key']);
|
6 |
if ($api_key != '') {
|
7 |
if (get_option('wpgmap_api_key') !== false) {
|
8 |
update_option('wpgmap_api_key', $api_key, '', 'yes');
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ 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.6.1
|
7 |
-
Version: 1.0.
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -117,4 +117,8 @@ See the [Video](https://www.youtube.com/watch?v=zTU7AoguDns) ,hope you will get
|
|
117 |
* Custom status message showed
|
118 |
|
119 |
= 1.0.7 =
|
120 |
-
* Added helpful video both in description and admin panel
|
|
|
|
|
|
|
|
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.6.1
|
7 |
+
Version: 1.0.8
|
8 |
+
Stable tag: 1.0.8
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
117 |
* Custom status message showed
|
118 |
|
119 |
= 1.0.7 =
|
120 |
+
* Added helpful video both in description and admin panel
|
121 |
+
|
122 |
+
= 1.0.8 =
|
123 |
+
* Initial marker dragging related problem fixing
|
124 |
+
* API key trailing blank space removed
|
srm_gmap_embed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Description: The plugin will help to google map Embed in post and pages also in sidebar with widget.
|
6 |
Author: SRMILON
|
7 |
Author URI: http://www.srmilon.com
|
8 |
-
Version: 1.0.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
5 |
Description: The plugin will help to google map Embed in post and pages also in sidebar with widget.
|
6 |
Author: SRMILON
|
7 |
Author URI: http://www.srmilon.com
|
8 |
+
Version: 1.0.8
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit;
|