Ejemplo n.º 1
0
                        $marker['anchor_y'] = intval($settings['custom_pin_anchor_y']);
                    }
                }
            } else {
                $debug_item['PinType'] = 'Default';
            }
            $debug_item['comments'] .= 'The custom image path is empty. The deafult pin image will be used.';
        } else {
            $debug_item['PinType'] = 'Default';
            if (strlen($item['custom_pin_path']) > 0) {
                $debug_item['comments'] .= "You have defined a custom unique pin image. However, this image will be ignored. To use custom images you must select 'Custom' as the 'Marker Pin Icon' option in the widget's settings. Ignore this message if the widget works as you expect.";
            }
        }
        $markers[] = $marker;
    } else {
        $debug->addWarningString('The location is missing for item#' . $item_id . '. This item will be ignored.');
    }
    if ($settings['debug_output']) {
        array_push($debug_items, $debug_item);
    }
}
if ($settings['debug_output']) {
    $debug->addInfoString($debug_items);
}
$settings['map_id'] = $map_id;
$settings['map_id2'] = $map_id2;
if (!empty($settings['map_center'])) {
    $center = explode(',', $settings['map_center']);
    if (sizeof($center) == 2 && is_numeric($center[0]) && is_numeric($center[1])) {
        $settings['center_lat'] = $center[0];
        $settings['center_lng'] = $center[1];