Skip to content

Commit 4a2543f

Browse files
committed
Update domain adn urls for ohm
1 parent d2006db commit 4a2543f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ WORKDIR /app
88
COPY package.json yarn.lock /app/
99
RUN yarn set version stable
1010
RUN yarn install
11-
RUN sed -i "s|mapbox://styles/[^\"']*|https://gist.githubusercontent.com/Rub21/27be2d3482f66743393af068ff68985d/raw/3cee0905224fc8dcac5a34937fad036c9f6fbbf9/historical.json|g" node_modules/changeset-map/dist/*.js
11+
12+
## Replace values for ohm
13+
RUN sed -i "s|mapbox://styles/[^\"']*|https://www.openhistoricalmap.org/map-styles/historical/historical.json|g" node_modules/changeset-map/dist/*.js
14+
RUN sed -i "s|www.openstreetmap.org|www.openhistoricalmap.org|g" node_modules/changeset-map/dist/*.js
15+
RUN sed -i "s|overpass.osmcha.org|overpass-api.openhistoricalmap.org|g" node_modules/changeset-map/dist/*.js
16+
RUN sed -i "s|osmcha.org|osmcha.openhistoricalmap.org|g" node_modules/changeset-map/dist/*.js
1217

1318
COPY src/ /app/src
1419
COPY public/ /app/public

src/components/changeset/map_options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class MapOptions extends React.PureComponent {
6060
r &&
6161
r() &&
6262
r().renderMap(
63-
'https://gist.githubusercontent.com/Rub21/27be2d3482f66743393af068ff68985d/raw/3cee0905224fc8dcac5a34937fad036c9f6fbbf9/historical.json'
63+
'https://www.openhistoricalmap.org/map-styles/historical/historical.json'
6464
)
6565
);
6666
};

0 commit comments

Comments
 (0)