= __('Name') ?> |
= h($location->name) ?> |
= __('Location') ?> |
= h($location->location) ?> |
$location->lat
. ',' . $location->lng
],
];
$marker_options = [
'color' => $this->MapDisplay->defaultIconColor(),
'shadow' => 'false'
];
$markers = $this->GoogleMap->staticMarkers($addresses, $marker_options);
$map_options = [
'center' => $location->lat
. ',' . $location->lng,
'markers' => $markers,
'zoom' => 8,
];
$map = $this->GoogleMap->staticMap($map_options);
echo $map;
$this->GoogleMap->finalize();
//end static map junk.
?>
|
= __('Lat&Long') ?> |
= h($location->lat . ',' . $location->lng) ?> |
= __('Zip Code (RGC)') ?> |
lat, $location->lng, [
'key' => $api_key
]);
if ($results) {
echo h($results[0]);
} else {
echo h('failed to reverse geocode');
}
?>
|
= __('Address (RGC)') ?> |
= h($results[1]) ?> |
= __('Categories') ?> |
= $this->Form->control('categories._ids', [
'type' => 'select',
'multiple' => true,
'val' => $selectedList,
'options' => $categoriesList,
]);
?>
|