mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
make OSM API connection details configurable via env vars
This commit is contained in:
@@ -101,6 +101,15 @@ In addition, the following parameters are available as **URL query parameters**:
|
||||
* __`gpx`__ - Expects a trace ID of a [public gps trace](https://www.openstreetmap.org/traces) uploaded on OpenStreetMap.<br/>
|
||||
_Example:_ `https://www.openstreetmap.org/edit?editor=id&gpx=4009513`<br/>
|
||||
|
||||
|
||||
## Environment variables
|
||||
|
||||
Environment variables or a dotenv file can be used to configure certain aspects of iD at build time.
|
||||
|
||||
* __`ID_PRESETS_CDN_URL`__ - The URL where iD should fetch it's tagging presets from. Needs to point to a CORS enabled web server which is serving the `package.json` and `dist` folder of a repository built on [`@ideditor/schema-builder`](https://github.com/ideditor/schema-builder).
|
||||
* __`ID_API_CONNECTION_URL`__, __`ID_API_CONNECTION_CLIENT_ID`__, __`ID_API_CONNECTION_CLIENT_SECRET`__ - custom [Oauth2](https://wiki.openstreetmap.org/wiki/OAuth#OAuth_2.0_2) connection details to an OSM API server
|
||||
* __`ID_API_CONNECTION`__ - either `live` or `dev`, if only either one should be made offered for editing
|
||||
|
||||
## CSS selectors
|
||||
|
||||
iD has a documented and stable set of classes that can be used to apply style or
|
||||
|
||||
Reference in New Issue
Block a user