Skip to content
Snippets Groups Projects
Commit 93da8a1b authored by Brandon Bergren's avatar Brandon Bergren
Browse files

#349318, reported by jeeves: Fix empty map being displayed for 0.00,0.00 locations.

parent b3053e43
No related branches found
No related tags found
No related merge requests found
...@@ -672,7 +672,7 @@ function gmap_location_block_view($nid) { ...@@ -672,7 +672,7 @@ function gmap_location_block_view($nid) {
$count = 0; $count = 0;
foreach ($node->locations as $loc) { foreach ($node->locations as $loc) {
// @@@ Todo: Client side geocoding // @@@ Todo: Client side geocoding
if ($loc['latitude'] || $loc['longitude']) { if (location_has_coordinates($loc)) {
$count++; $count++;
$markername = isset($markertypes[$node->type]) ? $markertypes[$node->type] : 'drupal'; $markername = isset($markertypes[$node->type]) ? $markertypes[$node->type] : 'drupal';
if (module_exists('gmap_taxonomy')) { if (module_exists('gmap_taxonomy')) {
......
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