diff --git a/Dockerfile b/Dockerfile index 2c3887c2..b59addae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/client/js/defra-map/index.js b/client/js/defra-map/index.js index 04700a33..aa05a9bf 100644 --- a/client/js/defra-map/index.js +++ b/client/js/defra-map/index.js @@ -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', diff --git a/package.json b/package.json index d009b058..0d328254 100644 --- a/package.json +++ b/package.json @@ -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",