Version Description
- 2019/05/27
- added Paper thumbnail color scheme
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 4.15 |
Comparing to | |
See all releases |
Code changes from version 4.10 to 4.15
- gmw-widget.php +6 -4
- google-maps-widget.php +56 -1
- readme.txt +9 -5
gmw-widget.php
CHANGED
@@ -73,7 +73,8 @@ class GoogleMapsWidget extends WP_Widget {
|
|
73 |
$thumb_map_types = array(array('val' => 'hybrid', 'label' => __('Hybrid', 'google-maps-widget')),
|
74 |
array('val' => 'roadmap', 'label' => __('Road (default)', 'google-maps-widget')),
|
75 |
array('val' => 'satellite', 'label' => __('Satellite', 'google-maps-widget')),
|
76 |
-
array('val' => 'terrain', 'label' => __('Terrain', 'google-maps-widget'))
|
|
|
77 |
|
78 |
$lightbox_map_types = array(array('val' => 'roadmap', 'label' => __('Road (default)', 'google-maps-widget')),
|
79 |
array('val' => 'satellite', 'label' => __('Satellite', 'google-maps-widget')));
|
@@ -164,7 +165,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
164 |
array('val' => 'midnight', 'label' => __('Midnight', 'google-maps-widget')),
|
165 |
array('val' => 'neon', 'label' => __('Neon', 'google-maps-widget')),
|
166 |
array('val' => '-1', 'label' => __('Pale', 'google-maps-widget')),
|
167 |
-
array('val' => '
|
168 |
array('val' => 'ultra_light', 'label' => __('Ultra Light', 'google-maps-widget')),
|
169 |
array('val' => '-1', 'label' => __('Custom scheme to match your site', 'google-maps-widget')));
|
170 |
|
@@ -252,7 +253,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
252 |
echo ' px</p>';
|
253 |
|
254 |
echo '<p><label class="gmw-label" for="' . $this->get_field_id('thumb_type') . '">' . __('Map Type', 'google-maps-widget') . ':</label>';
|
255 |
-
echo '<select data-tooltip="Controls the map layers shown. Roadmap is the most popular, hybrid combines road and satellite while terrain shows physical relief map image, displaying terrain and vegetation." id="' . $this->get_field_id('thumb_type') . '" name="' . $this->get_field_name('thumb_type') . '">';
|
256 |
GMW::create_select_options($thumb_map_types, $thumb_type);
|
257 |
echo '</select></p>';
|
258 |
|
@@ -517,7 +518,8 @@ class GoogleMapsWidget extends WP_Widget {
|
|
517 |
'neon' => 'style=saturation:100|gamma:0.6',
|
518 |
'gray' => 'style=feature:landscape|element:all|saturation:-100|lightness:65|visibility:on|&style=feature:poi|element:all|saturation:-100|lightness:51|visibility:simplified|&style=feature:road.highway|element:all|saturation:-100|visibility:simplified|&style=feature:road.arterial|element:all|saturation:-100|lightness:30|visibility:on|&style=feature:road.local|element:all|saturation:-100|lightness:40|visibility:on|&style=feature:transit|element:all|saturation:-100|visibility:simplified|&style=feature:administrative.province|element:all|visibility:off|&style=feature:water|element:labels|visibility:on|lightness:-25|saturation:-100|&style=feature:water|element:geometry|hue:0xffff00|lightness:-25|saturation:-97|',
|
519 |
'blue' => 'style=feature:water|element:all|color:0x46bcec|visibility:on|&style=feature:landscape|element:all|color:0xf2f2f2|&style=feature:road|element:all|saturation:-100|lightness:45|&style=feature:road.highway|element:all|visibility:simplified|&style=feature:road.arterial|element:labels.icon|visibility:off|&style=feature:administrative|element:labels.text.fill|color:0x444444|&style=feature:transit|element:all|visibility:off|&style=feature:poi|element:all|visibility:off|',
|
520 |
-
'gray2' => 'style=feature:all|element:all|saturation:-100|gamma:0.5|'
|
|
|
521 |
|
522 |
$map_src = '//maps.googleapis.com/maps/api/staticmap';
|
523 |
|
73 |
$thumb_map_types = array(array('val' => 'hybrid', 'label' => __('Hybrid', 'google-maps-widget')),
|
74 |
array('val' => 'roadmap', 'label' => __('Road (default)', 'google-maps-widget')),
|
75 |
array('val' => 'satellite', 'label' => __('Satellite', 'google-maps-widget')),
|
76 |
+
array('val' => 'terrain', 'label' => __('Terrain', 'google-maps-widget')),
|
77 |
+
array('val' => '-1', 'label' => __('Custom Static Image (save money on API calls)', 'google-maps-widget')));
|
78 |
|
79 |
$lightbox_map_types = array(array('val' => 'roadmap', 'label' => __('Road (default)', 'google-maps-widget')),
|
80 |
array('val' => 'satellite', 'label' => __('Satellite', 'google-maps-widget')));
|
165 |
array('val' => 'midnight', 'label' => __('Midnight', 'google-maps-widget')),
|
166 |
array('val' => 'neon', 'label' => __('Neon', 'google-maps-widget')),
|
167 |
array('val' => '-1', 'label' => __('Pale', 'google-maps-widget')),
|
168 |
+
array('val' => 'paper', 'label' => __('Paper', 'google-maps-widget')),
|
169 |
array('val' => 'ultra_light', 'label' => __('Ultra Light', 'google-maps-widget')),
|
170 |
array('val' => '-1', 'label' => __('Custom scheme to match your site', 'google-maps-widget')));
|
171 |
|
253 |
echo ' px</p>';
|
254 |
|
255 |
echo '<p><label class="gmw-label" for="' . $this->get_field_id('thumb_type') . '">' . __('Map Type', 'google-maps-widget') . ':</label>';
|
256 |
+
echo '<select data-tooltip="Controls the map layers shown. Roadmap is the most popular, hybrid combines road and satellite while terrain shows physical relief map image, displaying terrain and vegetation.<br>Custom Static Image displays an image of your choosing in order to <b>save money</b> on Google Maps API calls. When clicked it opens the lightbox map." id="' . $this->get_field_id('thumb_type') . '" name="' . $this->get_field_name('thumb_type') . '">';
|
257 |
GMW::create_select_options($thumb_map_types, $thumb_type);
|
258 |
echo '</select></p>';
|
259 |
|
518 |
'neon' => 'style=saturation:100|gamma:0.6',
|
519 |
'gray' => 'style=feature:landscape|element:all|saturation:-100|lightness:65|visibility:on|&style=feature:poi|element:all|saturation:-100|lightness:51|visibility:simplified|&style=feature:road.highway|element:all|saturation:-100|visibility:simplified|&style=feature:road.arterial|element:all|saturation:-100|lightness:30|visibility:on|&style=feature:road.local|element:all|saturation:-100|lightness:40|visibility:on|&style=feature:transit|element:all|saturation:-100|visibility:simplified|&style=feature:administrative.province|element:all|visibility:off|&style=feature:water|element:labels|visibility:on|lightness:-25|saturation:-100|&style=feature:water|element:geometry|hue:0xffff00|lightness:-25|saturation:-97|',
|
520 |
'blue' => 'style=feature:water|element:all|color:0x46bcec|visibility:on|&style=feature:landscape|element:all|color:0xf2f2f2|&style=feature:road|element:all|saturation:-100|lightness:45|&style=feature:road.highway|element:all|visibility:simplified|&style=feature:road.arterial|element:labels.icon|visibility:off|&style=feature:administrative|element:labels.text.fill|color:0x444444|&style=feature:transit|element:all|visibility:off|&style=feature:poi|element:all|visibility:off|',
|
521 |
+
'gray2' => 'style=feature:all|element:all|saturation:-100|gamma:0.5|',
|
522 |
+
'paper' => 'style=feature:landscape|element:all|hue:0xF1FF00|saturation:-27.4|lightness:9.4|gamma:1|&style=feature:road.highway|element:all|hue:0x0099FF|saturation:-20|lightness:36.4|gamma:1|&style=feature:road.arterial|element:all|hue:0x00FF4F|saturation:0|lightness:0|gamma:1|&style=feature:road.local|element:all|hue:0xFFB300|saturation:-38|lightness:11.2|gamma:1|&style=feature:water|element:all|hue:0x00B6FF|saturation:4.2|lightness:-63.4|gamma:1|&style=feature:poi|element:all|hue:0x9FFF00|saturation:0|lightness:0|gamma:1|');
|
523 |
|
524 |
$map_src = '//maps.googleapis.com/maps/api/staticmap';
|
525 |
|
google-maps-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Maps Widget
|
|
4 |
Plugin URI: https://www.gmapswidget.com/
|
5 |
Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
|
6 |
Author: Google Maps Widget
|
7 |
-
Version: 4.
|
8 |
Author URI: https://www.gmapswidget.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
@@ -99,6 +99,7 @@ class GMW {
|
|
99 |
// display various notices
|
100 |
add_action('current_screen', array('GMW', 'add_notices'));
|
101 |
|
|
|
102 |
} else {
|
103 |
// enqueue frontend scripts
|
104 |
add_action('wp_enqueue_scripts', array('GMW', 'register_scripts'));
|
@@ -1446,6 +1447,60 @@ class GMW {
|
|
1446 |
} // activate
|
1447 |
|
1448 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1449 |
// clean up on deactivation
|
1450 |
static function deactivate() {
|
1451 |
$options = GMW::get_options();
|
4 |
Plugin URI: https://www.gmapswidget.com/
|
5 |
Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
|
6 |
Author: Google Maps Widget
|
7 |
+
Version: 4.15
|
8 |
Author URI: https://www.gmapswidget.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
99 |
// display various notices
|
100 |
add_action('current_screen', array('GMW', 'add_notices'));
|
101 |
|
102 |
+
add_filter('install_plugins_table_api_args_featured', array('GMW', 'featured_plugins_tab'));
|
103 |
} else {
|
104 |
// enqueue frontend scripts
|
105 |
add_action('wp_enqueue_scripts', array('GMW', 'register_scripts'));
|
1447 |
} // activate
|
1448 |
|
1449 |
|
1450 |
+
// helper function for adding plugins to fav list
|
1451 |
+
static function featured_plugins_tab($args) {
|
1452 |
+
add_filter('plugins_api_result', array('GMW', 'plugins_api_result'), 10, 3);
|
1453 |
+
|
1454 |
+
return $args;
|
1455 |
+
} // featured_plugins_tab
|
1456 |
+
|
1457 |
+
|
1458 |
+
// add single plugin to list of favs
|
1459 |
+
static function add_plugin_favs($plugin_slug, $res) {
|
1460 |
+
if (!empty($res->plugins) && is_array($res->plugins)) {
|
1461 |
+
foreach ($res->plugins as $plugin) {
|
1462 |
+
if (is_object($plugin) && $plugin->slug == $plugin_slug) {
|
1463 |
+
return $res;
|
1464 |
+
}
|
1465 |
+
} // foreach
|
1466 |
+
}
|
1467 |
+
|
1468 |
+
$plugin_info = get_transient('wf-plugin-info-' . $plugin_slug);
|
1469 |
+
if (!empty($plugin_info) && is_object($plugin_info)) {
|
1470 |
+
array_unshift($res->plugins, $plugin_info);
|
1471 |
+
} else {
|
1472 |
+
$plugin_info = plugins_api('plugin_information', array(
|
1473 |
+
'slug' => $plugin_slug,
|
1474 |
+
'is_ssl' => is_ssl(),
|
1475 |
+
'fields' => array(
|
1476 |
+
'banners' => true,
|
1477 |
+
'reviews' => true,
|
1478 |
+
'downloaded' => true,
|
1479 |
+
'active_installs' => true,
|
1480 |
+
'icons' => true,
|
1481 |
+
'short_description' => true,
|
1482 |
+
)
|
1483 |
+
));
|
1484 |
+
if (!is_wp_error($plugin_info)) {
|
1485 |
+
$res->plugins[] = $plugin_info;
|
1486 |
+
set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
|
1487 |
+
}
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
return $res;
|
1491 |
+
} // add_plugin_favs
|
1492 |
+
|
1493 |
+
|
1494 |
+
// add our plugins to recommended list
|
1495 |
+
static function plugins_api_result($res, $action, $args) {
|
1496 |
+
remove_filter('plugins_api_result', array('GMW', 'plugins_api_result'), 10, 3);
|
1497 |
+
|
1498 |
+
$res = self::add_plugin_favs('minimal-coming-soon-maintenance-mode', $res);
|
1499 |
+
|
1500 |
+
return $res;
|
1501 |
+
} // plugins_api_result
|
1502 |
+
|
1503 |
+
|
1504 |
// clean up on deactivation
|
1505 |
static function deactivate() {
|
1506 |
$options = GMW::get_options();
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Google Maps Widget - Best Google Maps Plugin ===
|
2 |
Contributors: WebFactory, GoogleMapsWidget, WPReset, securityninja, underconstructionpage
|
3 |
-
Tags: google maps, maps, map, google map,
|
4 |
License: GPLv2 or later
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.0
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 4.
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Are your Google Maps slow? Try Google Maps Widget. You'll have a fast Google Map with a thumbnail & lightbox in minutes!
|
@@ -29,8 +29,8 @@ Check out some examples on the <a href="https://www.gmapswidget.com/">Google Map
|
|
29 |
Google Maps Widget thumbnail uses the Google Maps Static Maps API. It loads the entire google map in only one request compared to 20+ requests it takes other Google maps plugins to load them. This ensures your site loads as fast as possible!
|
30 |
|
31 |
* Custom google map size - map width & map height
|
32 |
-
* Choose any google map type you prefer - road map, satellite map, terrain map
|
33 |
-
* Plenty of google map color schemes - default, bright, gowalla, gray, midnight, refreshed, ultra light
|
34 |
* zoom level
|
35 |
* pin type
|
36 |
* pin color
|
@@ -181,6 +181,10 @@ Try <a href="http://www.niftymaps.co">Nifty Maps</a> - a comprehensive Map Build
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
|
|
184 |
= 4.10 =
|
185 |
* 2019/02/19
|
186 |
* added Gray #2 thumbnail color scheme
|
1 |
=== Google Maps Widget - Best Google Maps Plugin ===
|
2 |
Contributors: WebFactory, GoogleMapsWidget, WPReset, securityninja, underconstructionpage
|
3 |
+
Tags: google maps, maps, map, google map, google maps plugin, map markers, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
|
4 |
License: GPLv2 or later
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.0
|
7 |
+
Tested up to: 5.2
|
8 |
+
Stable tag: 4.15
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Are your Google Maps slow? Try Google Maps Widget. You'll have a fast Google Map with a thumbnail & lightbox in minutes!
|
29 |
Google Maps Widget thumbnail uses the Google Maps Static Maps API. It loads the entire google map in only one request compared to 20+ requests it takes other Google maps plugins to load them. This ensures your site loads as fast as possible!
|
30 |
|
31 |
* Custom google map size - map width & map height
|
32 |
+
* Choose any google map type you prefer - road map, satellite map, terrain map, hybrid map, or custom map image to save money on API calls (PRO only)
|
33 |
+
* Plenty of google map color schemes - default, blue, bright, gowalla, gray, gray #2, mapbox, midnight, neon, refreshed, paper, ultra light + any custom google map style you build in PRO
|
34 |
* zoom level
|
35 |
* pin type
|
36 |
* pin color
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 4.15 =
|
185 |
+
* 2019/05/27
|
186 |
+
* added Paper thumbnail color scheme
|
187 |
+
|
188 |
= 4.10 =
|
189 |
* 2019/02/19
|
190 |
* added Gray #2 thumbnail color scheme
|