Skip to content

Commit

Permalink
FCRM-5568 - adding maxExtent to map, adding build-map to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
teddmason committed Jan 28, 2025
1 parent 00dacf3 commit 3922c5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ FROM base AS development
# Temporarily disable the postinstall NPM script
RUN npm pkg set scripts.postinstall="echo no-postinstall" \
&& npm ci --ignore-scripts --omit dev \
&& npm run build \
&& npm run build-map
&& npm run build

USER node
EXPOSE ${PORT}/tcp
Expand Down
1 change: 1 addition & 0 deletions client/js/defra-map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ getDefraMapConfig().then((defraMapConfig) => {
minZoom: 6,
maxZoom: 20,
centre: [340367, 322766],
maxExtent: [0, 0, 700000, 1300000],
height: '100%',
hasGeoLocation: false,
framework: 'esri',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"copy": "npm run copy:gov && npm run copy:assets",
"copy:gov": "sh ./bin/copy-gov && node ./bin/fix-layout.js",
"copy:assets": "sh ./bin/copy-assets",
"build:js": "sh ./bin/build-js",
"build:js": "sh ./bin/build-js && npm run build-map",
"build:css": "sh ./bin/build-css",
"build": "sh ./bin/build",
"build-map": "rm dist/* -f && webpack",
Expand Down

0 comments on commit 3922c5c

Please sign in to comment.