From 6d38ff60f3b1e04948458ef441f5c1316ce52ff5 Mon Sep 17 00:00:00 2001 From: Jerenus <Jerenus@1864306.no-reply.drupal.org> Date: Mon, 1 Apr 2013 11:20:07 +0300 Subject: [PATCH] Issue #1101152 by Jerenus, louisnagtegaal: Fixed A single polygon does not show on the map. --- gmap_parse_macro.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gmap_parse_macro.inc b/gmap_parse_macro.inc index 63b5e75..553c216 100644 --- a/gmap_parse_macro.inc +++ b/gmap_parse_macro.inc @@ -218,6 +218,8 @@ function _gmap_parse_macro($instring, $ver = 2) { $m['shapes'][] = $s; } unset($m['polygon']); + } elseif (isset($m['polygon']) && !is_array($m['polygon'])) { + $value = array($m['polygon']); } // Version 1 -> 2 conversion -- GitLab