oms.addListener('click', function(marker, event) { closeAllInfoWins(); occid = marker.occid; clid = marker.clid; openIndPU(occid,clid); }); oms.addListener('spiderfy', function(markers) { closeAllInfoWins(); }); <?php $coordExist = false; $iconKeys = array(); $coordArr = $sharedMapManager->getGeoCoords(0, false, $mapWhere); $markerCnt = 0; $spCnt = 1; $minLng = 180; $minLat = 90; $maxLng = -180; $maxLat = -90; foreach ($coordArr as $sciName => $valueArr) { ?> markers = []; <?php $iconColor = $valueArr["color"]; if ($iconColor) { $iconKey = '<div><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:12px;margin-bottom:-2px;"><g><rect x="1" y="1" width="11" height="10" fill="#' . $iconColor . '" stroke="#000000" stroke-width="1px" /></g></svg>'; $iconKey .= ' = <i>' . $sciName . '</i></div>'; $iconKeys[] = $iconKey;