-
Notifications
You must be signed in to change notification settings - Fork 268
✨ Docker configuration for nominatim #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Changes from all commits
3683985
143d56d
7b19534
55c028c
535247d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,11 @@ for (const filepath of [leafletOptions, debug]) { | |
| const CENTER = process.env.OSRM_CENTER || '38.8995, -77.0269' | ||
| const BACKEND = process.env.OSRM_BACKEND || 'https://router.project-osrm.org' | ||
| const LANGUAGE = process.env.OSRM_LANGUAGE || 'en' | ||
| const NOMINATIM = process.env.NOMINATIM_URL || 'https://nominatim.openstreetmap.org' | ||
| const DEFAULT_LAYER = process.env.OSRM_DEFAULT_LAYER || 'streets' | ||
|
|
||
| // Edit Leaflet Options | ||
| if (NOMINATIM) options = options.replace(/\/\/nominatim\.openstreetmap\.org/, NOMINATIM) | ||
|
Comment on lines
+22
to
+26
|
||
| if (BACKEND) options = options.replace(/http[s]?:\/\/router\.project-osrm\.org/, BACKEND) | ||
| if (LABEL) options = options.replace('Car (fastest)', LABEL) | ||
| if (ZOOM) options = options.replace('zoom: 13', `zoom: ${ZOOM}`) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ function makeIcon(i, n) { | |
| } | ||
|
|
||
| var plan = new ReversablePlan([], { | ||
| geocoder: Geocoder.nominatim(), | ||
| geocoder: Geocoder.nominatim({serviceUrl:leafletOptions.nominatim.url}), | ||
| routeWhileDragging: true, | ||
|
Comment on lines
96
to
98
|
||
| createMarker: function(i, wp, n) { | ||
| var options = { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in documentation: “Nominmatim” should be “Nominatim” (environment variable description).