Google Maps Widget – Ultimate Google Maps Plugin - Version 3.70

Version Description

  • 2017/12/05
  • Russian translation is at 100%
  • continuing with translation efforts
  • fixed a few small JS bugs
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Google Maps Widget – Ultimate Google Maps Plugin
Version 3.70
Comparing to
See all releases

Code changes from version 3.65 to 3.70

css/gmw-admin.css CHANGED
@@ -28,7 +28,7 @@
28
  }
29
 
30
  .wrap.gmw-options .ui-tabs li a {
31
- color: #908E8E;
32
  font-weight: bold;
33
  font-size: 13px;
34
  padding: 0 20px;
28
  }
29
 
30
  .wrap.gmw-options .ui-tabs li a {
31
+ color: #464646;
32
  font-weight: bold;
33
  font-size: 13px;
34
  padding: 0 20px;
gmw-widget.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Google Maps Widget
4
  * Widget definition, admin GUI and widget rendering functions
5
- * (c) Web factory Ltd, 2012 - 2016
6
  */
7
 
8
 
@@ -40,6 +40,7 @@ class GoogleMapsWidget extends WP_Widget {
40
  'lightbox_fullscreen' => '0',
41
  'lightbox_mode' => 'place',
42
  'lightbox_map_type' => 'roadmap',
 
43
  'lightbox_zoom' => '14',
44
  'lightbox_feature' => array('overlay_close'),
45
  'lightbox_skin' => 'light',
@@ -116,7 +117,25 @@ class GoogleMapsWidget extends WP_Widget {
116
 
117
  $lightbox_skins = array(array('val' => 'dark', 'label' => __('Dark', 'google-maps-widget')),
118
  array('val' => 'light', 'label' => __('Light (default)', 'google-maps-widget')),
119
- array('val' => '-1', 'label' => __('Add 17 more skins', 'google-maps-widget')));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
 
121
  $thumb_pin_types = array(array('val' => 'predefined', 'label' => __('Predefined by Google (default)', 'google-maps-widget')),
122
  array('val' => 'custom', 'label' => __('Custom image', 'google-maps-widget')),
@@ -133,7 +152,18 @@ class GoogleMapsWidget extends WP_Widget {
133
  $thumb_color_schemes = array(array('val' => 'default', 'label' => __('Default', 'google-maps-widget')),
134
  array('val' => 'new', 'label' => __('Refreshed by Google', 'google-maps-widget')),
135
  array('val' => 'ultra_light', 'label' => __('Ultra Light', 'google-maps-widget')),
136
- array('val' => '-1', 'label' => __('Add 12 additional color schemes', 'google-maps-widget')));
 
 
 
 
 
 
 
 
 
 
 
137
 
138
  $thumb_formats = array(array('val' => 'png', 'label' => __('PNG 8-bit (default)', 'google-maps-widget')),
139
  array('val' => '-1', 'label' => __('Add 4 more image formats', 'google-maps-widget')));
@@ -155,6 +185,11 @@ class GoogleMapsWidget extends WP_Widget {
155
  $lightbox_units = array(array('val' => 'auto', 'label' => __('Detect automatically', 'google-maps-widget')),
156
  array('val' => 'imperial', 'label' => __('Imperial', 'google-maps-widget')),
157
  array('val' => 'metric', 'label' => __('Metric', 'google-maps-widget')));
 
 
 
 
 
158
 
159
  // force update if activated
160
  if (GMW::is_activated()) {
@@ -306,6 +341,11 @@ class GoogleMapsWidget extends WP_Widget {
306
  echo '<select data-tooltip="Controls the map layers shown." id="' . $this->get_field_id('lightbox_map_type') . '" name="' . $this->get_field_name('lightbox_map_type') . '">';
307
  GMW::create_select_options($lightbox_map_types, $lightbox_map_type);
308
  echo '</select></p>';
 
 
 
 
 
309
 
310
  echo '<p><label class="gmw-label" for="' . $this->get_field_id('lightbox_zoom') . '">' . __('Zoom Level', 'google-maps-widget') . ':</label>';
311
  echo '<select data-tooltip="Zoom varies from the lowest level, in which the entire world can be seen, to highest, which shows streets and individual buildings. Building outlines, where available, appear on the map around zoom level 17. This value differs from area to area." id="' . $this->get_field_id('lightbox_zoom') . '" name="' . $this->get_field_name('lightbox_zoom') . '">';
2
  /*
3
  * Google Maps Widget
4
  * Widget definition, admin GUI and widget rendering functions
5
+ * (c) Web factory Ltd, 2012 - 2018
6
  */
7
 
8
 
40
  'lightbox_fullscreen' => '0',
41
  'lightbox_mode' => 'place',
42
  'lightbox_map_type' => 'roadmap',
43
+ 'lightbox_clustering' => '0',
44
  'lightbox_zoom' => '14',
45
  'lightbox_feature' => array('overlay_close'),
46
  'lightbox_skin' => 'light',
117
 
118
  $lightbox_skins = array(array('val' => 'dark', 'label' => __('Dark', 'google-maps-widget')),
119
  array('val' => 'light', 'label' => __('Light (default)', 'google-maps-widget')),
120
+ array('val' => '-1', 'label' => __('Blue', 'google-maps-widget')),
121
+ array('val' => '-1', 'label' => __('Cartoonish', 'google-maps-widget')),
122
+ array('val' => '-1', 'label' => __('Dark rim', 'google-maps-widget')),
123
+ array('val' => '-1', 'label' => __('Fancy', 'google-maps-widget')),
124
+ array('val' => '-1', 'label' => __('Gears', 'google-maps-widget')),
125
+ array('val' => '-1', 'label' => __('Gray squared', 'google-maps-widget')),
126
+ array('val' => '-1', 'label' => __('Minimalistic', 'google-maps-widget')),
127
+ array('val' => '-1', 'label' => __('Minimalistic #2', 'google-maps-widget')),
128
+ array('val' => '-1', 'label' => __('Painting', 'google-maps-widget')),
129
+ array('val' => '-1', 'label' => __('Polaroid', 'google-maps-widget')),
130
+ array('val' => '-1', 'label' => __('Rounded', 'google-maps-widget')),
131
+ array('val' => '-1', 'label' => __('Rounded white', 'google-maps-widget')),
132
+ array('val' => '-1', 'label' => __('Shadow', 'google-maps-widget')),
133
+ array('val' => '-1', 'label' => __('Simple', 'google-maps-widget')),
134
+ array('val' => '-1', 'label' => __('Squared black', 'google-maps-widget')),
135
+ array('val' => '-1', 'label' => __('Squared white', 'google-maps-widget')),
136
+ array('val' => '-1', 'label' => __('Tablet', 'google-maps-widget')),
137
+ array('val' => '-1', 'label' => __('Vintage', 'google-maps-widget')),
138
+ array('val' => '-1', 'label' => __('Wood', 'google-maps-widget')));
139
 
140
  $thumb_pin_types = array(array('val' => 'predefined', 'label' => __('Predefined by Google (default)', 'google-maps-widget')),
141
  array('val' => 'custom', 'label' => __('Custom image', 'google-maps-widget')),
152
  $thumb_color_schemes = array(array('val' => 'default', 'label' => __('Default', 'google-maps-widget')),
153
  array('val' => 'new', 'label' => __('Refreshed by Google', 'google-maps-widget')),
154
  array('val' => 'ultra_light', 'label' => __('Ultra Light', 'google-maps-widget')),
155
+ array('val' => '-1', 'label' => __('Apple', 'google-maps-widget')),
156
+ array('val' => '-1', 'label' => __('Blue', 'google-maps-widget')),
157
+ array('val' => '-1', 'label' => __('Bright', 'google-maps-widget')),
158
+ array('val' => '-1', 'label' => __('Gowalla', 'google-maps-widget')),
159
+ array('val' => '-1', 'label' => __('Gray', 'google-maps-widget')),
160
+ array('val' => '-1', 'label' => __('Gray #2', 'google-maps-widget')),
161
+ array('val' => '-1', 'label' => __('Light', 'google-maps-widget')),
162
+ array('val' => '-1', 'label' => __('Mapbox', 'google-maps-widget')),
163
+ array('val' => '-1', 'label' => __('Midnight', 'google-maps-widget')),
164
+ array('val' => '-1', 'label' => __('Pale', 'google-maps-widget')),
165
+ array('val' => '-1', 'label' => __('Paper', 'google-maps-widget')),
166
+ array('val' => '-1', 'label' => __('Custom scheme to match your site', 'google-maps-widget')));
167
 
168
  $thumb_formats = array(array('val' => 'png', 'label' => __('PNG 8-bit (default)', 'google-maps-widget')),
169
  array('val' => '-1', 'label' => __('Add 4 more image formats', 'google-maps-widget')));
185
  $lightbox_units = array(array('val' => 'auto', 'label' => __('Detect automatically', 'google-maps-widget')),
186
  array('val' => 'imperial', 'label' => __('Imperial', 'google-maps-widget')),
187
  array('val' => 'metric', 'label' => __('Metric', 'google-maps-widget')));
188
+
189
+ $lightbox_clustering_options = array(array('val' => '0', 'label' => __('Disabled (default)', 'google-maps-widget')),
190
+ array('val' => '-1', 'label' => __('Small cluster radius', 'google-maps-widget')),
191
+ array('val' => '-1', 'label' => __('Medium cluster radius', 'google-maps-widget')),
192
+ array('val' => '-1', 'label' => __('Large cluster radius', 'google-maps-widget')));
193
 
194
  // force update if activated
195
  if (GMW::is_activated()) {
341
  echo '<select data-tooltip="Controls the map layers shown." id="' . $this->get_field_id('lightbox_map_type') . '" name="' . $this->get_field_name('lightbox_map_type') . '">';
342
  GMW::create_select_options($lightbox_map_types, $lightbox_map_type);
343
  echo '</select></p>';
344
+
345
+ echo '<p class="gmw_multiple_pins_feature"><label class="gmw-label" for="' . $this->get_field_id('lightbox_clustering') . '">' . __('Pins Clustering', 'google-maps-widget') . ':</label>';
346
+ echo '<select data-tooltip="Clustering enables pins grouping depending on their distances on the current view. It declutters the map when multiple pins are displayed." id="' . $this->get_field_id('lightbox_clustering') . '" name="' . $this->get_field_name('lightbox_clustering') . '">';
347
+ GMW::create_select_options($lightbox_clustering_options, $lightbox_clustering);
348
+ echo '</select></p>';
349
 
350
  echo '<p><label class="gmw-label" for="' . $this->get_field_id('lightbox_zoom') . '">' . __('Zoom Level', 'google-maps-widget') . ':</label>';
351
  echo '<select data-tooltip="Zoom varies from the lowest level, in which the entire world can be seen, to highest, which shows streets and individual buildings. Building outlines, where available, appear on the map around zoom level 17. This value differs from area to area." id="' . $this->get_field_id('lightbox_zoom') . '" name="' . $this->get_field_name('lightbox_zoom') . '">';
google-maps-widget.php CHANGED
@@ -4,12 +4,12 @@ Plugin Name: Google Maps Widget
4
  Plugin URI: http://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: Web Factory Ltd
7
- Version: 3.65
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
11
 
12
- Copyright 2012 - 2016 Web factory Ltd (email : gmw@webfactoryltd.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -266,6 +266,8 @@ class GMW {
266
  'AIzaSyAkdW5Zp4O-96nZyFKq13UUgIHY9Yabvg8',
267
  'AIzaSyBxbwTMT8L5VnVKdBKztCKd8rHEiO38mmA',
268
  'AIzaSyAafHqw4pT9u7LH3uW7NAj5gsLx9MzJrhc',
 
 
269
  'AIzaSyA0l5pDGK_FNDt4hS8w48uzvmsOhv6VU1Q');
270
 
271
  if ($type == 'test' && strlen($options['api_key']) < 30) {
@@ -873,8 +875,8 @@ class GMW {
873
  <div class="content">';
874
  $out .= '<h4>See how <span class="gmw-pro-red">PRO</span> features can make your life easier!</h4>';
875
  $out .= '<ul class="list-left">';
876
- $out .= '<li>Multiple pins support</li>
877
- <li>12 thumbnail map skins</li>
878
  <li>1500+ map pins</li>
879
  <li>4 extra map image formats for even faster loading</li>
880
  <li>replace thumb with interactive map feature</li>
@@ -888,6 +890,7 @@ class GMW {
888
  $out .= '</ul>';
889
  $out .= '<ul class="list-right">';
890
  $out .= '<li>Full control over all pins</li>
 
891
  <li>3 additional map link types</li>
892
  <li>fullscreen lightbox mode</li>
893
  <li>extra lightbox features</li>
@@ -897,7 +900,6 @@ class GMW {
897
  <li>Clone widget feature</li>
898
  <li>export & import tools</li>
899
  <li>Google Analytics integration</li>
900
- <li>no ads</li>
901
  <li>premium email support</li>';
902
  $out .= '</ul>';
903
  $out .= ' </div>';
4
  Plugin URI: http://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: Web Factory Ltd
7
+ Version: 3.70
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
11
 
12
+ Copyright 2012 - 2018 Web factory Ltd (email : gmw@webfactoryltd.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
266
  'AIzaSyAkdW5Zp4O-96nZyFKq13UUgIHY9Yabvg8',
267
  'AIzaSyBxbwTMT8L5VnVKdBKztCKd8rHEiO38mmA',
268
  'AIzaSyAafHqw4pT9u7LH3uW7NAj5gsLx9MzJrhc',
269
+ 'AIzaSyDkIvwEd4xKBJFhBjJ3nnW6at8N8HeqLso',
270
+ 'AIzaSyAi0nz2wyFAGU2jy3x_WsEZ-OCYqWFeS5Q',
271
  'AIzaSyA0l5pDGK_FNDt4hS8w48uzvmsOhv6VU1Q');
272
 
273
  if ($type == 'test' && strlen($options['api_key']) < 30) {
875
  <div class="content">';
876
  $out .= '<h4>See how <span class="gmw-pro-red">PRO</span> features can make your life easier!</h4>';
877
  $out .= '<ul class="list-left">';
878
+ $out .= '<li>Multiple pins support with per-pin options for appearance &amp; click behaviour</li>
879
+ <li>12 thumbnail &amp; lightbox map skins + create your own fully custom skin</li>
880
  <li>1500+ map pins</li>
881
  <li>4 extra map image formats for even faster loading</li>
882
  <li>replace thumb with interactive map feature</li>
890
  $out .= '</ul>';
891
  $out .= '<ul class="list-right">';
892
  $out .= '<li>Full control over all pins</li>
893
+ <li>Clustering support</li>
894
  <li>3 additional map link types</li>
895
  <li>fullscreen lightbox mode</li>
896
  <li>extra lightbox features</li>
900
  <li>Clone widget feature</li>
901
  <li>export & import tools</li>
902
  <li>Google Analytics integration</li>
 
903
  <li>premium email support</li>';
904
  $out .= '</ul>';
905
  $out .= ' </div>';
images/gmw-logo-pro-dialog.png CHANGED
Binary file
images/gmw-logo-pro.png DELETED
Binary file
images/gmw-logo.png CHANGED
Binary file
js/gmw-admin.js CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  * Google Maps Widget
3
- * (c) Web factory Ltd, 2012 - 2017
4
  */
5
 
6
 
@@ -71,10 +71,12 @@ jQuery(function($) {
71
  // handle dropdown fields that have dependant fields
72
  $('.gmw_thumb_pin_type', widget).on('change', function(e) {
73
  gmw_change_pin_type(widget);
74
- }).trigger('change');
75
  $('.gmw_thumb_link_type', widget).on('change', function(e) {
76
  gmw_change_link_type(widget);
77
- }).trigger('change');
 
 
78
 
79
  // open address picking map dialog
80
  $('a.gmw-pick-address', widget).on('click', function(e) {
1
  /*
2
  * Google Maps Widget
3
+ * (c) Web factory Ltd, 2012 - 2018
4
  */
5
 
6
 
71
  // handle dropdown fields that have dependant fields
72
  $('.gmw_thumb_pin_type', widget).on('change', function(e) {
73
  gmw_change_pin_type(widget);
74
+ });
75
  $('.gmw_thumb_link_type', widget).on('change', function(e) {
76
  gmw_change_link_type(widget);
77
+ });
78
+ gmw_change_pin_type(widget);
79
+ gmw_change_link_type(widget);
80
 
81
  // open address picking map dialog
82
  $('a.gmw-pick-address', widget).on('click', function(e) {
readme.txt CHANGED
@@ -5,30 +5,30 @@ 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: 4.9
8
- Stable tag: 3.65
9
  Requires PHP: 5.2
10
 
11
- Tired of buggy and slow Google Maps plugins taking hours to setup? With GMW you'll have a perfect map with a thumbnail and lightbox in minutes!
12
 
13
  == Description ==
14
 
15
- Tired of buggy & slow Google Maps plugins that take hours to setup? With GMW you'll have a perfect map with a thumbnail & lightbox in minutes! **No nonsense - we know you're in a hurry!** Join 100,000+ happy users.
16
 
17
  [youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
18
 
19
  Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps Widget site</a> or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
20
 
21
 
22
- **General widget options**
23
 
24
  * title
25
  * address
26
 
27
- **Thumbnail map options**
28
 
29
  * map size - width & height
30
  * map type - road, satellite, terrain & hybrid
31
- * map color scheme - default, refreshed, ultra light + 11 extra in PRO
32
  * zoom level
33
  * pin type
34
  * pin color
@@ -42,11 +42,13 @@ Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps
42
  * text above map
43
  * text below map
44
 
45
- **Interactive map options**
46
 
47
- * lightbox size - width & height (auto-adjusted on smaller screens) or fullscreen
48
  * map mode - place + in PRO: directions, search, view & street view
49
  * map type - road & satellite
 
 
50
  * zoom level
51
  * lightbox skin - light, dark + 20 extra in PRO
52
  * lightbox features - close on overlay click, close on esc key, close button & show map title
@@ -61,9 +63,10 @@ Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps
61
  **Multiple Pins**
62
 
63
  * you can add unlimited pins with custom markers and descriptions to thumbnail and interactive map (PRO feature)
 
64
 
65
 
66
- > > **PRO** version offers more than 50 extra features and options including multiple pins support, pins library, skins, export, import and widget cloning features, Google Analytics integration and premium, USA based support. Install the plugin and try the PRO features 7 days for free! Features are activated instantly. Or read more about it on the <a href="http://www.gmapswidget.com/">official plugin site</a>.
67
 
68
 
69
  **Showcase & What others say about the plugin**
@@ -154,6 +157,12 @@ Read the <a href="http://wordpress.org/support/plugin/google-maps-widget">suppor
154
 
155
  == Changelog ==
156
 
 
 
 
 
 
 
157
  = 3.65 =
158
  * 2017/11/17
159
  * updates for WP 4.9
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 4.0
7
  Tested up to: 4.9
8
+ Stable tag: 3.70
9
  Requires PHP: 5.2
10
 
11
+ Tired of broken Google Maps taking hours to setup? With Google Maps Widget you'll have a perfect map with a thumbnail & lightbox in minutes!
12
 
13
  == Description ==
14
 
15
+ Tired of buggy & slow Google Maps plugins that take hours to setup? With Google Maps Widget you'll have a perfect map with a thumbnail & lightbox in minutes! **No nonsense maps - we know you're in a hurry!** Join 100,000+ happy users.
16
 
17
  [youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
18
 
19
  Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps Widget site</a> or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
20
 
21
 
22
+ **General Google Maps Widget options**
23
 
24
  * title
25
  * address
26
 
27
+ **Thumbnail Google map options**
28
 
29
  * map size - width & height
30
  * map type - road, satellite, terrain & hybrid
31
+ * map color scheme - default, refreshed, ultra light + 11 extra & any custom map style in PRO
32
  * zoom level
33
  * pin type
34
  * pin color
42
  * text above map
43
  * text below map
44
 
45
+ **Interactive Google map options**
46
 
47
+ * lightbox size - width & height (auto-adjusted on smaller screens) or fullscreen in PRO
48
  * map mode - place + in PRO: directions, search, view & street view
49
  * map type - road & satellite
50
+ * map color scheme - 15 styles & any custom map style in PRO
51
+ * pins clustering - PRO feature
52
  * zoom level
53
  * lightbox skin - light, dark + 20 extra in PRO
54
  * lightbox features - close on overlay click, close on esc key, close button & show map title
63
  **Multiple Pins**
64
 
65
  * you can add unlimited pins with custom markers and descriptions to thumbnail and interactive map (PRO feature)
66
+ * every map pin has the following options: show on thumbnail and/or interactive map, set custom pin image, set on-click behaviour: open custom description bubble, open URL in new/same tab or do nothing
67
 
68
 
69
+ > > **PRO** version of Google Maps Widget offers more than 50 extra features and options including multiple pins support, clustering, pins library, skins, export, import and widget cloning features, Google Analytics integration and premium, USA based support. Install the plugin and try the PRO features 7 days for free! Features are activated instantly. Or read more about it on the <a href="http://www.gmapswidget.com/">official Google Maps Widget site</a>.
70
 
71
 
72
  **Showcase & What others say about the plugin**
157
 
158
  == Changelog ==
159
 
160
+ = 3.70 =
161
+ * 2017/12/05
162
+ * Russian translation is at 100%
163
+ * continuing with translation efforts
164
+ * fixed a few small JS bugs
165
+
166
  = 3.65 =
167
  * 2017/11/17
168
  * updates for WP 4.9