Skip to content
Snippets Groups Projects
Commit 0c0c44cd authored by Jerenus's avatar Jerenus Committed by Andriy Podanenko
Browse files

Issue #457828 by EvanDonovan, Jerenus: Fixed Autozoom Fix: GMap Views Plugin...

Issue #457828 by EvanDonovan, Jerenus: Fixed Autozoom Fix: GMap Views Plugin needs Additional Latitude/Longitude Validation for Adding Markers.
parent 0db8f097
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,9 @@ class gmap_plugin_style_gmap extends views_plugin_style { ...@@ -197,7 +197,9 @@ class gmap_plugin_style_gmap extends views_plugin_style {
$center_lat = $lat; $center_lat = $lat;
} }
if (!empty($lat) && !empty($lon)) { if ((!empty($lat) && !empty($lon))
&& ($lat != 0 && $lon != 0)
&& ($lat != 180 && $lon != 360)) {
if ($this->options['markers'] == 'nodetype') { if ($this->options['markers'] == 'nodetype') {
if (isset($markertypes[$row->gmap_node_type])) { if (isset($markertypes[$row->gmap_node_type])) {
$markername = $markertypes[$row->gmap_node_type]; $markername = $markertypes[$row->gmap_node_type];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment