diff --git a/README.md b/README.md index f1495cb..aeae087 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ If you do changes in the js library (jslib directory) you need to execute build. #### Adapt the website (htdocs) For setting up a copy on your local machine for development and testing purposes you do not need to do anything, but for any other pupose I really recommend you to adapt the UI. -First thing to do is probably to add your map api keys, look for the string "<insert map key here>" in the file "index.php". Note that the map providers used in the demo website may not be suitable if you plan to have a public website (read their terms of use). +First thing to do is probably to select which map provider to use, look for stuff related to map provider in "index.php". Note that the map providers used in the demo website may not be suitable if you plan to have a public website (read their terms of use). If you make no changes, at least add contact information to yourself, I do not want to receive questions regarding your website. diff --git a/config/trackdirect.ini b/config/trackdirect.ini index 9bea999..3b2d500 100644 --- a/config/trackdirect.ini +++ b/config/trackdirect.ini @@ -9,6 +9,8 @@ owner_name="Unknown" owner_email="no@name.com" ;maptiler_key="" ;google_key="" +;here_app_id="" +;here_app_code="" [database] diff --git a/htdocs/public/index.php b/htdocs/public/index.php index 72ef967..05cf14d 100755 --- a/htdocs/public/index.php +++ b/htdocs/public/index.php @@ -37,8 +37,12 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http'; - - + + + + + + @@ -128,10 +132,8 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http'; // https://wiki.openstreetmap.org/wiki/Tile_servers // Many providers require a map api key or similar, the following is an example for HERE - /* - L.TileLayer.Provider.providers['HERE'].options['app_id'] = ''; - L.TileLayer.Provider.providers['HERE'].options['app_code'] = ''; - */ + L.TileLayer.Provider.providers['HERE'].options['app_id'] = ''; + L.TileLayer.Provider.providers['HERE'].options['app_code'] = ''; options['supportedMapTypes'] = {}; @@ -142,13 +144,11 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http'; //options['supportedMapTypes']['roadmap'] = 'HERE.normalDay'; //options['supportedMapTypes']['roadmap'] = 'HERE.reducedDay'; - options['supportedMapTypes']['terrain'] = 'OpenTopoMap'; //options['supportedMapTypes']['terrain'] = 'Stamen.Terrain'; //options['supportedMapTypes']['terrain'] = 'HERE.terrainDay'; - // Remove the google-maps-if-statement below if the satellite option should be used for Leaflet - //options['supportedMapTypes']['satellite'] = 'HERE.satelliteDay'; + options['supportedMapTypes']['satellite'] = 'HERE.satelliteDay'; @@ -237,10 +237,9 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http';