diff --git a/config.env.example b/config.env.example index 89108b5e..f5731974 100644 --- a/config.env.example +++ b/config.env.example @@ -24,10 +24,6 @@ # Get an API key on https://www.mapbox.com/signup/ #MAPBOX_TOKEN= -# MapZen is used for getting elevation information -# Get an API key on https://mapzen.com/developers/sign_up -#MAPZEN_TOKEN= - # Maxmind configuration. If specified, the maxmind GeoLite2 database will be downloaded # for Geo IP lookup (to show the initial map state) and kept in memory. # Sign up here: https://www.maxmind.com/en/geolite2/signup diff --git a/docs/src/developers/server/config.md b/docs/src/developers/server/config.md index 0b21b746..60329cc3 100644 --- a/docs/src/developers/server/config.md +++ b/docs/src/developers/server/config.md @@ -18,17 +18,17 @@ The config of the FacilMap server can be set either by using environment variabl | `DB_PASSWORD` | | `facilmap` | The password to connect to the database with. | | `ORS_TOKEN` | * | | [OpenRouteService API key](https://openrouteservice.org/). | | `MAPBOX_TOKEN` | * | | [Mapbox API key](https://www.mapbox.com/signup/). | -| `MAPZEN_TOKEN` | | | [Mapzen API key](https://mapzen.com/developers/sign_up). | | `MAXMIND_USER_ID` | | | [MaxMind user ID](https://www.maxmind.com/en/geolite2/signup). | | `MAXMIND_LICENSE_KEY` | | | MaxMind license key. | | `LIMA_LABS_TOKEN` | | | [Lima Labs](https://maps.lima-labs.com/) API key | | `HIDE_COMMERCIAL_MAP_LINKS` | | | Set to `1` to hide the links to Google/Bing Maps in the “Map style” menu. | -| `CUSTOM_CSS_FILE` | | | The path of a CSS file that should be included ([see more details below](#custom-css-file)). +| `CUSTOM_CSS_FILE` | | | The path of a CSS file that should be included ([see more details below](#custom-css-file)). | +| `NOMINATIM_URL` | | `https://nominatim.openstreetmap.org` | The URL to the Nominatim server (used to search for places). | +| `OPEN_ELEVATION_URL` | | `https://api.open-elevation.com` | The URL to the Open Elevation server (used to look up the elevation for markers). | FacilMap makes use of several third-party services that require you to register (for free) and generate an API key: * Mapbox and OpenRouteService are used for calculating routes. Mapbox is used for basic routes, OpenRouteService is used when custom route mode settings are made. If these API keys are not defined, calculating routes will fail. * Maxmind provides a free database that maps IP addresses to approximate locations. FacilMap downloads this database to decide the initial map view for users (IP addresses are looked up in FacilMap’s copy of the database, on IP addresses are sent to Maxmind). This API key is optional, if it is not set, the default view will be the whole world. -* Mapzen is used to look up the elevation info for search results. The API key is optional, if it is not set, no elevation info will be available for search results. * Lima Labs is used for nicer and higher resolution map tiles than Mapnik. The API key is optional, if it is not set, Mapnik will be the default map style instead. ## Custom CSS file diff --git a/docs/src/developers/server/docker.md b/docs/src/developers/server/docker.md index 5ce6f79a..12868ca6 100644 --- a/docs/src/developers/server/docker.md +++ b/docs/src/developers/server/docker.md @@ -34,7 +34,6 @@ services: DB_PASSWORD: password ORS_TOKEN: # Get an API key on https://go.openrouteservice.org/ (needed for routing) MAPBOX_TOKEN: # Get an API key on https://www.mapbox.com/signup/ (needed for routing) - MAPZEN_TOKEN: # Get an API key on https://mapzen.com/developers/sign_up (needed for elevation info) MAXMIND_USER_ID: # Sign up here https://www.maxmind.com/en/geolite2/signup (needed for geoip lookup to show initial map state) MAXMIND_LICENSE_KEY: LIMA_LABS_TOKEN: # Get an API key on https://maps.lima-labs.com/ (optional, needed for double-resolution tiles) @@ -76,7 +75,6 @@ services: DB_PASSWORD: password ORS_TOKEN: # Get an API key on https://go.openrouteservice.org/ (needed for routing) MAPBOX_TOKEN: # Get an API key on https://www.mapbox.com/signup/ (needed for routing) - MAPZEN_TOKEN: # Get an API key on https://mapzen.com/developers/sign_up (needed for elevation info) MAXMIND_USER_ID: # Sign up here https://www.maxmind.com/en/geolite2/signup (needed for geoip lookup to show initial map state) MAXMIND_LICENSE_KEY: LIMA_LABS_TOKEN: # Get an API key on https://maps.lima-labs.com/ (optional, needed for double-resolution tiles) @@ -100,5 +98,5 @@ To manually create the necessary docker containers, use these commands: ```bash docker create --name=facilmap_db -e MYSQL_DATABASE=facilmap -e MYSQL_USER=facilmap -e MYSQL_PASSWORD=password -e MYSQL_RANDOM_ROOT_PASSWORD=true --restart=unless-stopped mariadb --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci -docker create --link=facilmap_db -p 8080 --name=facilmap -e "USER_AGENT=My FacilMap (https://facilmap.example.org/, facilmap@example.org)" -e TRUST_PROXY=true -e DB_TYPE=mysql -e DB_HOST=facilmap_db -e DB_NAME=facilmap -e DB_USER=facilmap -e DB_PASSWORD=facilmap -e ORS_TOKEN= -e MAPBOX_TOKEN= -e MAPZEN_TOKEN= -e MAXMIND_USER_ID= -e MAXMIND_LICENSE_KEY= -e LIMA_LABS_TOKEN= --restart=unless-stopped facilmap/facilmap +docker create --link=facilmap_db -p 8080 --name=facilmap -e "USER_AGENT=My FacilMap (https://facilmap.example.org/, facilmap@example.org)" -e TRUST_PROXY=true -e DB_TYPE=mysql -e DB_HOST=facilmap_db -e DB_NAME=facilmap -e DB_USER=facilmap -e DB_PASSWORD=facilmap -e ORS_TOKEN= -e MAPBOX_TOKEN= -e MAXMIND_USER_ID= -e MAXMIND_LICENSE_KEY= -e LIMA_LABS_TOKEN= --restart=unless-stopped facilmap/facilmap ``` \ No newline at end of file diff --git a/frontend/src/lib/components/marker-info/marker-info.vue b/frontend/src/lib/components/marker-info/marker-info.vue index 69264fd7..1d4248e6 100644 --- a/frontend/src/lib/components/marker-info/marker-info.vue +++ b/frontend/src/lib/components/marker-info/marker-info.vue @@ -93,7 +93,7 @@