2 steps to bringing up this maps demo site...
4 * need to configure a database in app.php. see default version: config/app.default.php
6 * need an api key from google to have separate hit quotas on mapping API.
7 * refer to: https://developers.google.com/maps/documentation/distance-matrix/get-api-key
8 * see default version: config/config_google.default.php
9 * example of using api key:
10 * https://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattle&destinations=San+Francisco&key=YOUR_API_KEY
12 * need to install the cake geo code.
13 * more details at: https://github.com/dereuromark/cakephp-geo/blob/master/docs/Install.md
15 * need to have jquery available and loaded someplace. i got a recent minified version of it and stored it in webroot/js and then added this to default.ctp before the fetch('script') call:
16 <script src="/js/jquery-3.2.1.min.js"></script>
18 * need to load the marker clusterer code for map marker clustering to work. see ClusterMapHelper.php for more info.
20 * a bunch of icons for map markers can be found here: https://code.google.com/archive/p/google-maps-icons/downloads
22 * need to make links for the plugins:
23 from: https://book.cakephp.org/3.0/en/deployment.html#symlink-assets
24 run: bin/cake plugin assets symlink
28 assorted reference notes:
30 mysql and php using javascript api with maps:
31 https://developers.google.com/maps/documentation/javascript/mysql-to-maps
33 how to show things in a form with checkboxes:
34 https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-inputs-for-associated-data
36 tagList above is computed this way:
37 https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#finding-key-value-pairs
39 events that can be hooked are listed here:
40 https://developers.google.com/maps/documentation/javascript/reference