X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=production%2Fexample_apps%2Fzippy_maps%2Fsrc%2FTemplate%2FLocations%2Fview.ctp;fp=production%2Fexample_apps%2Fzippy_maps%2Fsrc%2FTemplate%2FLocations%2Fview.ctp;h=855df52f3fb136f773610218ff9ba5beded86538;hb=34d1cb2e8687b826357db1d3821bf9e05cf6f13d;hp=0000000000000000000000000000000000000000;hpb=21f30bb859e6c15393e23ac0e5ef417b82f628a5;p=feisty_meow.git diff --git a/production/example_apps/zippy_maps/src/Template/Locations/view.ctp b/production/example_apps/zippy_maps/src/Template/Locations/view.ctp new file mode 100644 index 00000000..855df52f --- /dev/null +++ b/production/example_apps/zippy_maps/src/Template/Locations/view.ctp @@ -0,0 +1,97 @@ + + +
+

name) ?>

+ + + + + + + + + + + + + + + + + + + + + + + + +
name) ?>
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 . ',' . $location->lng) ?>
+ lat, $location->lng, [ + 'key' => $api_key + ]); + if ($results) { + echo h($results[0]); + } else { + echo h('failed to reverse geocode'); + } + + ?> +
+ Form->control('categories._ids', [ + 'type' => 'select', + 'multiple' => true, + 'val' => $selectedList, + 'options' => $categoriesList, + ]); + ?> +
+