Form->create('Jump') ?>
true, // automatically encompass markers. 'clustering' => true, // cluster the markers. 'zoom' => 12, // zoom in pretty far but not as a microscope. 'lat' => $fromLat, 'lng' => $fromLong, ]; // provide the element with all the info it needs to set up the map. $element_options = [ 'map_options' => $map_options, 'map_colors' => 'avmaps/js/sg2_map_colors.js', 'the_map' => $this->GoogleMap, // no options to pass to ajax so far... 'ajax_options' => '{ }', 'default_options' => '{ iconColor: "' . $this->MapDisplay->defaultIconColor() . '", json_provider: "/locations.json", }', ]; echo $this->element('Avmaps.google_map', $element_options); } ?>
Form->end() ?>