3 * @var \App\View\AppView $this
6 <nav class="large-3 medium-4 columns" id="actions-sidebar">
8 <li class="heading"><?= __('Actions') ?></li>
9 <li><?= $this->Html->link(__('List Locations'), ['action' => 'index']) ?></li>
12 <div class="locations form large-9 medium-8 columns content">
13 <?= $this->Form->create('RadiusFinder') ?>
15 <legend><?= __('Find Locations Within Radius') ?></legend>
18 echo h ( 'Sorry, we did not find a location specified as starting point.' );
20 echo $this->Form->control ( 'from-address', [
23 'default' => $fromAddress,
24 'disabled' => 'disabled'
27 echo $this->Form->control ( 'radius (in miles)' , ['default' => $radius]);
29 // list options we want to override or add for the map.
31 'autoCenter' => true, // automatically encompass markers.
32 'clustering' => true, // cluster the markers.
35 // provide the element with all the info it needs to set up the map.
38 'map_options' => $map_options,
39 'map_colors' => 'avmaps/js/sg2_map_colors.js',
40 'the_map' => $this->GoogleMap,
41 // no options to pass to ajax so far...
44 // not passing json provider, since we are doing a special radius thing here. so no updates.
45 'default_options' => '{
46 iconColor: "' . $this->MapDisplay->defaultIconColor() . '",
50 echo $this->element('Avmaps.google_map', $element_options);
54 <?= $this->Form->button(__('Calculate')) ?>
55 <?= $this->Form->end() ?>