-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update changeset-map and add configuration (#684)
- Loading branch information
1 parent
e6d9faf
commit 39cbd3b
Showing
7 changed files
with
1,895 additions
and
1,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
# misc | ||
.DS_Store | ||
.env | ||
.env.* | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
//@flow | ||
import { API_URL } from './'; | ||
|
||
export const PAGE_SIZE = 25; | ||
export const overpassBase = '//overpass.osmcha.org/api/interpreter'; | ||
export const osmBase = '//www.openstreetmap.org/api/0.6/'; | ||
export const PAGE_SIZE = process.env.REACT_APP_PAGE_SIZE || 25; | ||
export const overpassBase = | ||
process.env.REACT_APP_OVERPASS_BASE || | ||
'//overpass.osmcha.org/api/interpreter'; | ||
export const mapboxAccessToken = | ||
process.env.REACT_APP_MAPBOX_ACCESS_TOKEN || | ||
'pk.eyJ1Ijoib3BlbnN0cmVldG1hcCIsImEiOiJjam10OXpmc2YwMXI5M3BqeTRiMDBqMHVyIn0.LIcIDe3TZLSDdTWDoojzNg'; | ||
export const statusUrl = | ||
'https://raw.githubusercontent.com/mapbox/osmcha-frontend/status/status.json'; | ||
export const enableRealChangesets = process.env.REACT_APP_ENABLE_REAL_CHANGESETS | ||
? Boolean(process.env.REACT_APP_ENABLE_REAL_CHANGESETS) | ||
: true; | ||
|
||
export const osmchaSocialTokenUrl = `${API_URL}/social-auth/`; | ||
export const osmchaUrl = API_URL.replace('api/v1', ''); | ||
|
||
export const osmAuthUrl = 'https://www.openstreetmap.org/oauth/authorize'; | ||
export const apiOSM = 'https://api.openstreetmap.org/api/0.6'; | ||
export const osmUrl = | ||
process.env.REACT_APP_OSM_URL || 'https://www.openstreetmap.org'; | ||
export const osmAuthUrl = `${osmUrl}/oauth/authorize`; | ||
export const isOfficialOSM = osmUrl === 'https://www.openstreetmap.org'; | ||
export const apiOSM = | ||
process.env.REACT_APP_OSM_API || 'https://api.openstreetmap.org/api/0.6'; | ||
|
||
export const whosThat = | ||
'https://rksbsqdel4.execute-api.us-east-1.amazonaws.com/testing?action=names&id='; | ||
|
||
export const nominatimUrl = 'https://nominatim.openstreetmap.org/search.php'; | ||
export const nominatimUrl = | ||
process.env.REACT_APP_NOMINATIM_URL || | ||
'https://nominatim.openstreetmap.org/search.php'; | ||
|
||
// set a default from date x days before today | ||
export const DEFAULT_FROM_DATE = 2; | ||
export const DEFAULT_FROM_DATE = process.env.REACT_APP_DEFAULT_FROM_DATE || 2; | ||
// exclude changesets newer than x minutes. It's needed because of the difference | ||
// between the time a changeset is processed by OSMCha and the time its map | ||
// visualization is available | ||
export const DEFAULT_TO_DATE = 5; | ||
export const DEFAULT_TO_DATE = process.env.REACT_APP_DEFAULT_TO_DATE || 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.