adding example apps, fixing powerup issues
[feisty_meow.git] / production / example_apps / zippy_maps / readme.txt
1
2 steps to bringing up this maps demo site...
3
4 * need to configure a database in app.php.  see default version: config/app.default.php 
5
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
11
12 * need to install the cake geo code.
13   * more details at: https://github.com/dereuromark/cakephp-geo/blob/master/docs/Install.md
14
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>
17
18 * need to load the marker clusterer code for map marker clustering to work.  see ClusterMapHelper.php for more info.
19
20 * a bunch of icons for map markers can be found here: https://code.google.com/archive/p/google-maps-icons/downloads
21
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
25
26 ---
27
28 assorted reference notes:
29
30 mysql and php using javascript api with maps:
31 https://developers.google.com/maps/documentation/javascript/mysql-to-maps
32
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
35
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
38
39 events that can be hooked are listed here:
40 https://developers.google.com/maps/documentation/javascript/reference
41
42