Skip to content
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

FCRM-5568 - adding maxExtent to map, adding build-map to build script #463

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading