Skip to content

Commit d2006db

Browse files
committed
Test map-style url
1 parent 350f0fa commit d2006db

File tree

4 files changed

+800
-299
lines changed

4 files changed

+800
-299
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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://www.openhistoricalmap.org/map-styles/historical/historical.json|g" node_modules/changeset-map/dist/*.js
11+
RUN sed -i "s|mapbox://styles/[^\"']*|https://gist.githubusercontent.com/Rub21/27be2d3482f66743393af068ff68985d/raw/3cee0905224fc8dcac5a34937fad036c9f6fbbf9/historical.json|g" node_modules/changeset-map/dist/*.js
1212

1313
COPY src/ /app/src
1414
COPY public/ /app/public

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@mapbox/mapbox-gl-draw": "^1.3.0",
17+
"@openhistoricalmap/map-styles": "^0.9.4",
1718
"@turf/area": "^7.1.0",
1819
"@turf/bbox": "^7.1.0",
1920
"@turf/simplify": "^7.1.0",
@@ -56,7 +57,7 @@
5657
"husky": "^0.14.2",
5758
"jest": "24.9.0",
5859
"jest-cli": "24.9.0",
59-
"lint-staged": "^4.0.0",
60+
"lint-staged": "^15.5.0",
6061
"mockdate": "^2.0.1",
6162
"nock": "^9.0.13",
6263
"prettier": "^1.18.2",

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://www.openhistoricalmap.org/map-styles/historical/historical.json'
63+
'https://gist.githubusercontent.com/Rub21/27be2d3482f66743393af068ff68985d/raw/3cee0905224fc8dcac5a34937fad036c9f6fbbf9/historical.json'
6464
)
6565
);
6666
};

0 commit comments

Comments
 (0)