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('Jump') ?>
15 <legend><?= __('Jump to Location') ?></legend>
18 echo h ( 'Sorry, we did not find a location specified as starting point.' );
20 // location id is good to go, so let's show the map.
22 // list the options we want to override or add for the map.
25 //off now for sure: 'autoCenter' => true, // automatically encompass markers.
26 'clustering' => true, // cluster the markers.
27 'zoom' => 12, // zoom in pretty far but not as a microscope.
32 // provide the element with all the info it needs to set up the map.
35 'map_options' => $map_options,
36 'map_colors' => 'avmaps/js/sg2_map_colors.js',
37 'the_map' => $this->GoogleMap,
38 // no options to pass to ajax so far...
41 'default_options' => '{
42 iconColor: "' . $this->MapDisplay->defaultIconColor() . '",
43 json_provider: "/locations.json",
47 echo $this->element('Avmaps.google_map', $element_options);
52 <?= $this->Form->end() ?>