Skip to content
Snippets Groups Projects
Commit 6d38ff60 authored by Jerenus's avatar Jerenus Committed by podarok
Browse files

Issue #1101152 by Jerenus, louisnagtegaal: Fixed A single polygon does not show on the map.

parent 9b381672
No related branches found
No related tags found
No related merge requests found
...@@ -218,6 +218,8 @@ function _gmap_parse_macro($instring, $ver = 2) { ...@@ -218,6 +218,8 @@ function _gmap_parse_macro($instring, $ver = 2) {
$m['shapes'][] = $s; $m['shapes'][] = $s;
} }
unset($m['polygon']); unset($m['polygon']);
} elseif (isset($m['polygon']) && !is_array($m['polygon'])) {
$value = array($m['polygon']);
} }
// Version 1 -> 2 conversion // Version 1 -> 2 conversion
......
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