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D,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBlC,EAASK,IAAM,EAEhC,OAAOb,EAAoBM,EAAEC,EAAO,EAGjC0C,EAAqBxE,KAAyB,mBAAIA,KAAyB,oBAAK,GACpFwE,EAAmBlM,QAAQ6L,EAAqBM,KAAK,KAAM,IAC3DD,EAAmBpQ,KAAO+P,EAAqBM,KAAK,KAAMD,EAAmBpQ,KAAKqQ,KAAKD,G,KC7CvF,IAAIE,EAAsBnD,EAAoBM,OAAEH,EAAW,CAAC,MAAM,IAAOH,EAAoB,QAC7FmD,EAAsBnD,EAAoBM,EAAE6C,G","sources":["webpack://[name]/webpack/runtime/chunk loaded","webpack://[name]/./Scripts/BuckinghamshireRecordTypes.ts","webpack://[name]/./Scripts/CustomClient_BaseLayerFactory_27700.ts","webpack://[name]/./Scripts/DefaultLayerConfigurationFactory.ts","webpack://[name]/./Scripts/DefaultMapOptions.ts","webpack://[name]/./Scripts/HbsmrRecordTypeResource.ts","webpack://[name]/./Scripts/HbsmrResourceFactory.ts","webpack://[name]/./Scripts/HbsmrStyleFactory.ts","webpack://[name]/./Scripts/HbsmrUser.ts","webpack://[name]/./Scripts/MapBase.ts","webpack://[name]/./Scripts/MonumentStructuredSearchMap.ts","webpack://[name]/./Scripts/TextPackLoader.ts","webpack://[name]/external var \"bootstrap\"","webpack://[name]/webpack/bootstrap","webpack://[name]/webpack/runtime/compat get default export","webpack://[name]/webpack/runtime/define property getters","webpack://[name]/webpack/runtime/global","webpack://[name]/webpack/runtime/hasOwnProperty shorthand","webpack://[name]/webpack/runtime/make namespace object","webpack://[name]/webpack/runtime/jsonp chunk loading","webpack://[name]/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","\r\nexport enum BuckinghamshireRecordType { \r\n Consultation = \"cons\",\r\n Monument = \"mon\",\r\n Event = \"event\",\r\n Source = \"source\",\r\n Designation = \"desig\", \r\n Hlc_1820 = \"hlc1820\",\r\n Hlc_1880 = \"hlc1880\",\r\n Hlc_2000 = \"hlc2000\",\r\n HistoricRidgeAndFurrow= \"hraf\"\r\n} \r\n\r\nexport enum BuckinghamshireRecordSubType { \r\n ConservationArea = \"COA\",\r\n ScheduledMonument = \"SAM\",\r\n RegisteredParksAndGardens = \"RG\",\r\n ArchaeologicalNotificationAreas = \"PLN\",\r\n ListedBuilding = \"LB\",\r\n LocallyListedBuilding = \"LLB\" \r\n} \r\n","import {\r\n BaseLayer,\r\n BaseLayerFactory_27700,\r\n BaseLayerType\r\n} from \"esdm-map\";\r\nimport { IBaseLayer } from \"esdm-map/dist/baselayers/interfaces/IBaseLayer\";\r\nimport { Tile } from \"ol\";\r\nimport TileLayer from \"ol/layer/Tile\";\r\nimport TileGrid from \"ol/tilegrid/TileGrid\";\r\nimport WMTS from 'ol/source/WMTS';\r\nimport WMTSTileGrid from 'ol/tilegrid/WMTS';\r\nimport TileWMS from 'ol/source/TileWMS';\r\n\r\n\r\n//declare module 'esdm-map/dist/baselayers/BaseLayerType' {\r\n// export enum BaseLayerType {\r\n// BucksOS = 999,\r\n// BucksAerial = 1000\r\n// }\r\n//}\r\n\r\nexport const BucksBaseLayers = {\r\n ...BaseLayerType,\r\n BucksOS : 999,\r\n BucksAerial: 1000,\r\n BucksHistoricRidgeAndFurrow: 1001,\r\n BucksOS1stEdition: 1002\r\n};\r\n\r\nexport class CustomClient_BaseLayerFactory_27700 extends BaseLayerFactory_27700 {\r\n\r\n public GetBaseLayerByType(baseLayerType: BaseLayerType, bingApiKey: string = \"\", esdmApiKey: string = \"\"): IBaseLayer {\r\n if (baseLayerType === BucksBaseLayers.BucksOS) {\r\n return this.GetBucksOS();\r\n } else if (baseLayerType === BucksBaseLayers.BucksAerial) {\r\n return this.GetBucksAerial();\r\n } else if (baseLayerType === BucksBaseLayers.BucksHistoricRidgeAndFurrow) {\r\n return this.HistoricRidgeAndFurrow();\r\n } else if (baseLayerType === BucksBaseLayers.BucksOS1stEdition) {\r\n return this.BucksOS1stEdition();\r\n }\r\n return super.GetBaseLayerByType(baseLayerType, bingApiKey, esdmApiKey);\r\n }\r\n\r\n \r\n private GetBucksOS(): IBaseLayer {\r\n\r\n let lyr = new TileLayer({\r\n visible: false,\r\n source: new WMTS({ \r\n url: 'https://maps.buckscc.gov.uk/arcgis/rest/services/Bucks_Basemapping/MapServer/WMTS/',\r\n layer: 'Bucks_Basemapping',\r\n matrixSet: 'default028mm',\r\n format: 'image/png',\r\n projection: 'EPSG:27700',\r\n tileGrid: new WMTSTileGrid({\r\n origin: [-5220400,4470200],\r\n resolutions: [264.58386250102507, 132.29193125051253, 66.14596562525627, 33.07298281262813, 16.933367200065604, 8.466683600032802, 4.233341800016401, 2.1166709000082005, 1.0583354500041002, 0.5291677250020501, 0.26458386250102506],\r\n matrixIds: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"]\r\n }),\r\n style: 'default',\r\n wrapX: false, \r\n crossOrigin: \"Anonymous\",\r\n attributions: `OS mapping: © Crown copyright OS 0100062456. You are granted a non-exclusive, royalty free, revocable licence solely to view the Licensed Data for non-commercial purposes for the period during which Buckinghamshire Council makes it available. You are not permitted to copy, sub-license, distribute, sell or otherwise make available the Licensed Data to third parties in any form. Third party rights to enforce the terms of this licence shall be reserved to OS.` \r\n })\r\n })\r\n return new BaseLayer(\"BucksCustom\", \"Ordnance Survey\", lyr); \r\n }\r\n\r\n\r\n private GetBucksAerial(): IBaseLayer {\r\n let lyr = new TileLayer({\r\n visible: false,\r\n source: new TileWMS({\r\n urls: [\"/api/ogcservice/BucksAerial\"],\r\n params: {\r\n LAYERS: 'APGB_Latest_UK_250mm',\r\n TILED: 'true',\r\n FORMAT: 'image/png',\r\n SRS: 'EPSG:27700'\r\n },\r\n projection: \"EPSG:27700\", \r\n crossOrigin: \"Anonymous\",\r\n attributions: \"Aerial photography: © Getmapping plc. www.getmapping.com\"\r\n })\r\n })\r\n return new BaseLayer(\"BucksCustomAerial\", \"Aerial Photography\", lyr);\r\n }\r\n\r\n private HistoricRidgeAndFurrow(): IBaseLayer {\r\n let lyr = new TileLayer({\r\n visible: false,\r\n source: new TileWMS({\r\n urls: [\"/api/ogcservice/BucksHistoric\"],\r\n params: {\r\n LAYERS: '1',\r\n TILED: 'true',\r\n FORMAT: 'image/png',\r\n SRS: 'EPSG:27700'\r\n },\r\n projection: \"EPSG:27700\", \r\n crossOrigin: \"Anonymous\",\r\n attributions: `

© Crown copyright 2020 Ordnance Survey 0100062456 Use of this data is subject to terms and conditions. You are granted a non-exclusive, royalty free, revocable licence solely to view the Licensed Data for non-commercial purposes for the period during which Buckinghamshire Council makes it available; You are not permitted to copy, sub-license, distribute, sell or otherwise make available the Licensed Data to third parties in any form; Third party rights to enforce the terms of this licence shall be reserved to Ordnance Survey

\r\n

© Copyright Buckinghamshire Council Historic Environment Record 2020.

` \r\n })\r\n })\r\n return new BaseLayer(\"HistoricRidgeAndFurrow\", \"Historic ridge and furrow\", lyr);\r\n }\r\n\r\n private BucksOS1stEdition(): IBaseLayer {\r\n let lyr = new TileLayer({\r\n visible: false,\r\n source: new TileWMS({\r\n urls: [\"/api/ogcservice/BucksHistoric\"],\r\n params: {\r\n LAYERS: '11,12',\r\n TILED: 'true',\r\n FORMAT: 'image/png',\r\n SRS: 'EPSG:27700'\r\n },\r\n projection: \"EPSG:27700\", \r\n crossOrigin: \"Anonymous\",\r\n attributions: \"©Landmark Information Group\" \r\n })\r\n })\r\n return new BaseLayer(\"BucksOS1stEdition\", \"OS 1st edition (1876-1885)\", lyr);\r\n }\r\n}","import { IVectorLayerGroupConfig } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupConfig\";\r\nimport { WfsParamSourceMapServer, IWfsParamSource } from \"esdm-map/dist/layers/vector/sources/wfs\";\r\nimport { VectorLayerStrategy } from \"esdm-map/dist/layers/vector/VectorLayerStrategy\";\r\n\r\nimport { BuckinghamshireRecordType, BuckinghamshireRecordSubType} from \"./BuckinghamshireRecordTypes\";\r\nimport { IWmsLayerGroupConfig } from \"esdm-map/dist/layers/groups/wms/interfaces/IWmsLayerGroupConfig\";\r\nimport { WfsBboxAsWktRequestParams } from \"esdm-map/dist/layers/vector/sources/wfs/WfsBboxAsWktRequestParams\";\r\n\r\nexport class DefaultLayerConfigurationFactory {\r\n\r\n private mapFileUrl: string = \"/api/MapServer/Hbsmr\";\r\n\r\n private paramSource(): IWfsParamSource {\r\n return new WfsParamSourceMapServer(new WfsBboxAsWktRequestParams(),{srsName: \"EPSG:27700\"});\r\n }\r\n\r\n constructor() {\r\n }\r\n\r\n public layerConfig = (\r\n recordType: BuckinghamshireRecordType,\r\n recordSubType: BuckinghamshireRecordSubType = null,\r\n opts: IVectorLayerGroupConfig = {}\r\n ): IVectorLayerGroupConfig | IWmsLayerGroupConfig => {\r\n let layerConfig: IVectorLayerGroupConfig | IWmsLayerGroupConfig = null;\r\n\r\n switch (recordType) {\r\n case BuckinghamshireRecordType.Monument:\r\n layerConfig = this.Monument(opts);\r\n break;\r\n\r\n case BuckinghamshireRecordType.Event:\r\n layerConfig = this.Event(opts);\r\n break;\r\n\r\n case BuckinghamshireRecordType.Consultation:\r\n layerConfig = this.Consultation(opts);\r\n break; \r\n\r\n case BuckinghamshireRecordType.Hlc_1820:\r\n layerConfig = this.Hlc1820();\r\n break;\r\n\r\n case BuckinghamshireRecordType.Hlc_1880:\r\n layerConfig = this.Hlc1880();\r\n break;\r\n\r\n case BuckinghamshireRecordType.Hlc_2000:\r\n layerConfig = this.Hlc2000();\r\n break;\r\n\r\n case BuckinghamshireRecordType.HistoricRidgeAndFurrow:\r\n layerConfig = this.HistoricRidgeAndFurrow();\r\n break;\r\n }\r\n\r\n if (layerConfig === null && recordSubType !== null) {\r\n switch (recordSubType) {\r\n\r\n case BuckinghamshireRecordSubType.ConservationArea:\r\n layerConfig = this.ConservationArea(opts);\r\n break; \r\n\r\n case BuckinghamshireRecordSubType.ScheduledMonument:\r\n layerConfig = this.ScheduledMonument(opts);\r\n break;\r\n\r\n case BuckinghamshireRecordSubType.RegisteredParksAndGardens:\r\n layerConfig = this.RegisteredParksAndGardens(opts);\r\n break; \r\n\r\n case BuckinghamshireRecordSubType.ArchaeologicalNotificationAreas:\r\n layerConfig = this.ArchaeologicalNotificationAreas(opts);\r\n break; \r\n\r\n case BuckinghamshireRecordSubType.ListedBuilding:\r\n layerConfig = this.ListedBuilding(opts);\r\n break;\r\n \r\n case BuckinghamshireRecordSubType.LocallyListedBuilding:\r\n layerConfig = this.LocallyListedBuilding(opts);\r\n break;\r\n }\r\n }\r\n\r\n return layerConfig;\r\n }\r\n\r\n private HistoricRidgeAndFurrow = (): IWmsLayerGroupConfig => {\r\n return {\r\n displayName: \"Historic ridge and furrow\",\r\n ref: \"HRAF\",\r\n type: BuckinghamshireRecordType.HistoricRidgeAndFurrow,\r\n url: \"/api/ogcservice/BucksHistoric\",\r\n displayInLayerSwitcher: true,\r\n displayInLegend: false,\r\n visibleOnFirstLoad: false,\r\n queryable: false, \r\n layers: [\r\n {\r\n layerName: \"1\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ]\r\n }\r\n }\r\n\r\n private Hlc1820 = (): IWmsLayerGroupConfig => {\r\n return {\r\n displayName: \"HLC 1820\",\r\n ref: \"HLC1820\",\r\n type: BuckinghamshireRecordType.Hlc_1820,\r\n url: \"/api/ogcservice/BucksUbp\",\r\n displayInLayerSwitcher: true,\r\n displayInLegend: false,\r\n visibleOnFirstLoad: false,\r\n queryable: false,\r\n info_format: \"text/html\",\r\n layers: [\r\n {\r\n layerName: \"5\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ]\r\n }\r\n }\r\n\r\n private Hlc1880 = (): IWmsLayerGroupConfig => {\r\n return {\r\n displayName: \"HLC 1880\",\r\n ref: \"HLC1880\",\r\n type: BuckinghamshireRecordType.Hlc_1880,\r\n url: \"/api/ogcservice/BucksUbp\",\r\n displayInLayerSwitcher: true,\r\n displayInLegend: false,\r\n visibleOnFirstLoad: false,\r\n queryable: false,\r\n info_format: \"text/html\",\r\n layers: [\r\n {\r\n layerName: \"6\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ]\r\n }\r\n }\r\n\r\n private Hlc2000 = (): IWmsLayerGroupConfig => {\r\n return {\r\n displayName: \"HLC 2000\",\r\n ref: \"HLC2000\",\r\n type: BuckinghamshireRecordType.Hlc_2000,\r\n url: \"/api/ogcservice/BucksUbp\",\r\n displayInLayerSwitcher: true,\r\n displayInLegend: false,\r\n visibleOnFirstLoad: false,\r\n queryable: false,\r\n info_format: \"text/html\",\r\n layers: [\r\n {\r\n layerName: \"7\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ]\r\n }\r\n } \r\n\r\n private Monument = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Monuments\",\r\n ref: \"Monuments\",\r\n type: BuckinghamshireRecordType.Monument,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"MonumentPolygonsWFS\",\r\n minZoom: 10,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentLinesWFS\",\r\n minZoom: 10,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentLinesAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 11\r\n },\r\n {\r\n layerName: \"MonumentPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 11\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private Event = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Events\",\r\n ref: \"Events\",\r\n type: BuckinghamshireRecordType.Event,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"EventPolygonsWFS\",\r\n minZoom: 10,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"EventLinesWFS\",\r\n minZoom: 10,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"EventPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"EventLinesAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 11\r\n },\r\n {\r\n layerName: \"EventPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 11\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private Consultation = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Consultations\",\r\n ref: \"Consultations\",\r\n type: BuckinghamshireRecordType.Consultation,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"ConsultationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"ConsultationLinesWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"ConsultationPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"ConsultationLinesAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n },\r\n {\r\n layerName: \"ConsultationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private ListedBuilding = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Listed Buildings\",\r\n ref: \"ListedBuildings\",\r\n type: BuckinghamshireRecordType.Designation,\r\n subType: BuckinghamshireRecordSubType.ListedBuilding,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: BuckinghamshireRecordSubType.ListedBuilding },\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: false,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationLinesWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationLinesAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private LocallyListedBuilding = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Local Heritage List\",\r\n ref: \"LocallyListedBuildings\",\r\n type: BuckinghamshireRecordType.Designation,\r\n subType: BuckinghamshireRecordSubType.LocallyListedBuilding,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: BuckinghamshireRecordSubType.LocallyListedBuilding },\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: false,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationLinesWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationLinesAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private ScheduledMonument = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Scheduled Monuments\",\r\n ref: \"ScheduledMonuments\",\r\n type: BuckinghamshireRecordType.Designation,\r\n subType: BuckinghamshireRecordSubType.ScheduledMonument,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: BuckinghamshireRecordSubType.ScheduledMonument },\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n }, \r\n \r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n \r\n private RegisteredParksAndGardens = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Registered Parks and Gardens\",\r\n ref: \"RegisteredParksAndGardens\",\r\n type: BuckinghamshireRecordType.Designation,\r\n subType: BuckinghamshireRecordSubType.RegisteredParksAndGardens,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: BuckinghamshireRecordSubType.RegisteredParksAndGardens },\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n }, \r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private ConservationArea = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Conservation Areas\",\r\n ref: \"ConservationArea\",\r\n type: BuckinghamshireRecordType.Designation,\r\n subType: BuckinghamshireRecordSubType.ConservationArea,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: BuckinghamshireRecordSubType.ConservationArea },\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private ArchaeologicalNotificationAreas = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Archaeological Notification Areas\",\r\n ref: \"ArchaeologicalNotificationAreas\",\r\n type: BuckinghamshireRecordType.Designation,\r\n subType: BuckinghamshireRecordSubType.ArchaeologicalNotificationAreas,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: BuckinghamshireRecordSubType.ArchaeologicalNotificationAreas },\r\n wfsParams: this.paramSource(),\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 11,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n}\r\n\r\n","import {\r\n MapOptions\r\n} from \"esdm-map\";\r\nimport { LayerGroupCollection } from \"esdm-map/dist/layers/groups/LayerGroupCollection\";\r\nimport { BucksBaseLayers } from \"./CustomClient_BaseLayerFactory_27700\";\r\n\r\n\r\nexport class DefaultMapOptions {\r\n\r\n public static GetDefaultOptions(\r\n mapElementId: string,\r\n mapStoreKey: string\r\n ): MapOptions { \r\n\r\n let opt = new MapOptions(); \r\n opt.bingApiKey = $(`#${mapElementId}`).data(\"bing-api-key\");\r\n opt.esdmOsmApiKey = $(`#${mapElementId}`).data(\"esdm-osm-api-key\");\r\n opt.baseMaps = [BucksBaseLayers.BucksOS,BucksBaseLayers.BucksAerial, BucksBaseLayers.BucksOS1stEdition];\r\n opt.defaultBaseMap = BucksBaseLayers.BucksOS;\r\n opt.enableBoundsTracking = true;\r\n opt.mapElementId = mapElementId;\r\n opt.mapStoreKey = mapStoreKey;\r\n opt.mapZoom = 13;\r\n opt.minZoom = 9;\r\n opt.maxZoom = 19;\r\n opt.extent = [455674.40, 172322.31, 514896.93, 261953.12];\r\n opt.mapCentre = [469191.36, 233854.64];\r\n opt.displayProjection = \"EPSG:27700\";\r\n opt.dataProjection = \"EPSG:27700\";\r\n opt.dragRotateAndZoom = false; \r\n opt.zoomToNearestBounds = false;\r\n return opt;\r\n }\r\n\r\n}","import {\r\n BuckinghamshireRecordType,\r\n BuckinghamshireRecordSubType\r\n} from \"./BuckinghamshireRecordTypes\";\r\n\r\nimport {\r\n IRecordTypeFeatureInfoClick,\r\n RecordTypeResource,\r\n IRecordTypeHeading,\r\n\r\n IMappingTextPack\r\n} from \"esdm-map\";\r\nimport { ILayerGroup } from \"esdm-map/dist/layers/groups/ILayerGroup\";\r\nimport { HbsmrUser } from \"./HbsmrUser\";\r\n\r\n\r\nlet headingConfiguration = (): Array => {\r\n let items = new Array();\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Monument,\r\n recordSubTypeCode: null,\r\n heading: \"Monument(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Event,\r\n recordSubTypeCode: null,\r\n heading: \"Event(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: null,\r\n heading: \"Designation(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Consultation,\r\n recordSubTypeCode: null,\r\n heading: \"Consultation(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: BuckinghamshireRecordSubType.ListedBuilding,\r\n heading: \"Listed Building(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: BuckinghamshireRecordSubType.LocallyListedBuilding,\r\n heading: \"Local Heritage List\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: BuckinghamshireRecordSubType.RegisteredParksAndGardens,\r\n heading: \"Registered Park / Garden\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: BuckinghamshireRecordSubType.ScheduledMonument,\r\n heading: \"Scheduled Monument(s)\"\r\n }); \r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: BuckinghamshireRecordSubType.ConservationArea,\r\n heading: \"Conservation Areas\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: BuckinghamshireRecordType.Designation,\r\n recordSubTypeCode: BuckinghamshireRecordSubType.ArchaeologicalNotificationAreas,\r\n heading: \"Archaeological Notification Areas\"\r\n });\r\n\r\n return items;\r\n}\r\n\r\nexport class HbsmrRecordTypeResource extends RecordTypeResource {\r\n\r\n public constructor(\r\n private _mappingTextPack: IMappingTextPack,\r\n private _user: HbsmrUser\r\n ) {\r\n super(headingConfiguration());\r\n }\r\n \r\n public groupByRecordSubTypeCode(recordTypeCode: string): boolean \r\n {\r\n return (recordTypeCode.toLowerCase() === BuckinghamshireRecordType.Designation); \r\n } \r\n\r\n public mapToIRecordTypeInfoClick(featureProperties: any, layerGroup: ILayerGroup): IRecordTypeFeatureInfoClick \r\n {\r\n return {\r\n id: \"\",\r\n uid: featureProperties.uid,\r\n ref: featureProperties.ref,\r\n name: featureProperties.name,\r\n recordType: featureProperties.rectype,\r\n recordSubType: featureProperties.recsubtype,\r\n recordSubTypeCode: featureProperties.recsubtypecode,\r\n data: featureProperties,\r\n heading: this.getHeading(featureProperties.rectype, featureProperties.recsubtypecode),\r\n layerGroup: layerGroup\r\n }\r\n }\r\n\r\n public getInfoClickHtmlTemplate(recordTypeInfoClick: IRecordTypeFeatureInfoClick): string {\r\n let html: string = \"\";\r\n let featurePropertyNameForId = \"uid\";\r\n let layerType: string = recordTypeInfoClick.layerGroup.layerType;\r\n\r\n let fullHtml = `\r\n
  • \r\n \r\n  \r\n \r\n [name] \r\n \r\n \r\n \r\n \r\n
  • `;\r\n\r\n let noLinksHtml = `\r\n
  • \r\n [name] \r\n \r\n \r\n \r\n
  • `;\r\n\r\n //add controller (or any arbitrary data) to the data object\r\n switch (recordTypeInfoClick.recordType.toLowerCase()) {\r\n case \"mon\":\r\n recordTypeInfoClick.data.controller = \"Monument\";\r\n html = fullHtml;\r\n break;\r\n\r\n case \"event\":\r\n recordTypeInfoClick.data.controller = \"Event\";\r\n html = this.isAuthenticated() ? fullHtml : noLinksHtml;\r\n break;\r\n\r\n case \"desig\":\r\n recordTypeInfoClick.data.controller = \"Designation\";\r\n\r\n if (recordTypeInfoClick.recordSubTypeCode == BuckinghamshireRecordSubType.LocallyListedBuilding) {\r\n //LocallyListedBuilding links visible to all users\r\n html = fullHtml;\r\n } else {\r\n html = this.isAuthenticated() ? fullHtml : noLinksHtml;\r\n }\r\n \r\n break;\r\n\r\n case \"cons\":\r\n recordTypeInfoClick.data.controller = \"Consultation\";\r\n html = this.isAuthenticated() ? fullHtml : noLinksHtml;\r\n break;\r\n } \r\n\r\n return html;\r\n }\r\n\r\n\r\n protected isAuthenticated = (): boolean => {\r\n return this._user !== null;\r\n }\r\n\r\n} ","import { HbsmrRecordTypeResource } from \"./HbsmrRecordTypeResource\";\r\nimport { IResourceFactory, IRecordTypeResource, IMappingTextPack } from \"esdm-map\";\r\nimport { HbsmrUser } from \"./HbsmrUser\";\r\n\r\n\r\n\r\nexport class HbsmrResourcefactory implements IResourceFactory {\r\n\r\n public constructor(\r\n private _mappingTextPack: IMappingTextPack,\r\n private _user: HbsmrUser\r\n ) {\r\n }\r\n\r\n public getRecordTypeResource(): IRecordTypeResource {\r\n return new HbsmrRecordTypeResource(this._mappingTextPack, this._user);\r\n }\r\n}\r\n\r\n","import {\r\n BuckinghamshireRecordType,\r\n BuckinghamshireRecordSubType\r\n} from \"./BuckinghamshireRecordTypes\";\r\nimport { IStyleFactory } from \"esdm-map/dist/layers/vector/styles/IStyleFactory\";\r\nimport Style, { StyleFunction } from \"ol/style/Style\";\r\nimport Fill from 'ol/style/Fill';\r\nimport Circle from 'ol/style/Circle';\r\nimport Stroke from 'ol/style/Stroke';\r\nimport RegularShape from \"ol/style/RegularShape\";\r\nimport * as olHas from 'ol/has';\r\n\r\n\r\nexport class HbsmrStyleFactory implements IStyleFactory {\r\n\r\n public getStyle(recordType: string, recordSubType: string = null): Style[]\r\n {\r\n let style: Style[] = null;\r\n\r\n //try and resolve sub type first\r\n if (recordSubType !== null) {\r\n switch (recordSubType) { \r\n\r\n case BuckinghamshireRecordSubType.ListedBuilding:\r\n style = this.ListedBuilding();\r\n break;\r\n\r\n case BuckinghamshireRecordSubType.LocallyListedBuilding:\r\n style = this.LocallyListedBuilding();\r\n break;\r\n\r\n case BuckinghamshireRecordSubType.ScheduledMonument:\r\n style = this.ScheduledMonument();\r\n break;\r\n \r\n case BuckinghamshireRecordSubType.RegisteredParksAndGardens:\r\n style = this.RegisteredParksAndGardens();\r\n break;\r\n\r\n case BuckinghamshireRecordSubType.ConservationArea:\r\n style = this.ConservationArea();\r\n break;\r\n\r\n case BuckinghamshireRecordSubType.ArchaeologicalNotificationAreas:\r\n style = this.ArchaeologicalNotificationAreas();\r\n break;\r\n }\r\n }\r\n\r\n if (style === null) {\r\n switch (recordType) {\r\n case BuckinghamshireRecordType.Monument:\r\n style = this.Monument();\r\n break;\r\n\r\n case BuckinghamshireRecordType.Event:\r\n style = this.Event();\r\n break;\r\n\r\n //case BuckinghamshireRecordType.Designation:\r\n // style = this.Designation();\r\n // break;\r\n\r\n case BuckinghamshireRecordType.Consultation:\r\n style = this.Consultation();\r\n break;\r\n }\r\n }\r\n\r\n return style;\r\n }\r\n\r\n public getSelectedStyle(\r\n recordType: string = BuckinghamshireRecordType.Monument): Style[]\r\n { \r\n return this.SelectedRecord();\r\n }\r\n\r\n \r\n \r\n private Monument(): Style[] { \r\n var fill = new Fill({\r\n color: 'rgba(56, 168, 0, 0.4)'\r\n }); \r\n var stroke = new Stroke({\r\n color: 'rgba(56, 168, 0, 1)',\r\n width: 2\r\n });\r\n return [\r\n new Style({\r\n image: new Circle({ \r\n stroke: stroke,\r\n radius: 5,\r\n fill: fill\r\n }), \r\n stroke: stroke,\r\n fill: fill\r\n })\r\n ];\r\n }\r\n\r\n private Event(): Style[] { \r\n var fill = new Fill({\r\n color: 'rgba(153, 204, 255, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(153, 204, 255, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: fill,\r\n stroke: stroke,\r\n points: 4,\r\n radius: 10,\r\n rotation: 0,\r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private ListedBuilding(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(168, 0, 0, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(168, 0, 0, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: stroke, \r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private LocallyListedBuilding(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(138, 117, 0, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(138, 117, 0, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: stroke,\r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private Consultation(): Style[] { \r\n var fill = new Fill({\r\n color: 'rgba(230, 0, 0, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(230, 0, 0, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: fill,\r\n stroke: stroke,\r\n points: 3,\r\n radius: 10, \r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private ScheduledMonument(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(230, 0, 0, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(230, 0, 0, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: stroke,\r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n \r\n private RegisteredParksAndGardens(): Style[] {\r\n //return this.CommonStyle('rgba(45, 123, 9,0.5)'); \r\n var fill = new Fill({\r\n color: 'rgba(255, 115, 223, 0.4)'\r\n });\r\n\r\n var stroke = new Stroke({\r\n color: 'rgba(255, 115, 223, 1)',\r\n width: 2\r\n });\r\n \r\n return [new Style({\r\n image: new RegularShape({\r\n fill: fill,\r\n stroke: stroke,\r\n points: 4,\r\n radius: 10, \r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private ConservationArea(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(222, 158, 102, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(222, 158, 102, 1)',\r\n width: 2\r\n });\r\n \r\n return [new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: stroke,\r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n \r\n private ArchaeologicalNotificationAreas(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(255, 255, 115, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(255, 255, 115, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: stroke,\r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n \r\n private SelectedRecord(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(255, 255, 0, 0.4)'\r\n });\r\n\r\n return [\r\n new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: new Stroke({\r\n color: 'rgba(255, 173, 10, 1)',\r\n width: 3\r\n }),\r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: new Stroke({\r\n color: 'rgba(255, 173, 10, 1)',\r\n width: 3\r\n })\r\n })\r\n ];\r\n }\r\n\r\n}\r\n","\r\nexport class HbsmrIdentity {\r\n\r\n public static fetch(): Promise { \r\n return new Promise(\r\n function (resolve, reject) {\r\n $.getJSON(\"/api/hbsmridentity/get\", function (response) {\r\n resolve(response);\r\n }).fail(function () {\r\n resolve(null);\r\n });\r\n }\r\n );\r\n }\r\n\r\n}\r\n\r\nexport class HbsmrUser {\r\n public userId: string; \r\n public roles: Array;\r\n}","import { IVectorLayerGroupConfig } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupConfig\";\r\nimport { IMappingTextPack, IMap } from \"esdm-map\";\r\nimport { HbsmrUser } from \"./HbsmrUser\";\r\nimport { BuckinghamshireRecordType, BuckinghamshireRecordSubType } from \"./BuckinghamshireRecordTypes\";\r\n\r\n\r\nexport class MapBase {\r\n\r\n constructor( \r\n protected mappingTextPack: IMappingTextPack,\r\n protected user: HbsmrUser) { \r\n }\r\n\r\n protected isAuthenticated = (): boolean => {\r\n return this.user !== null;\r\n }\r\n\r\n protected filterMapLayers = (layerGroupConfig: Array ): Array => {\r\n if (!this.isAuthenticated()) {\r\n //remove layers that require authentication\r\n return layerGroupConfig.filter(function (value, index, arr) {\r\n let authlayers = (\r\n value.type === BuckinghamshireRecordType.Consultation ||\r\n value.type === BuckinghamshireRecordType.Event\r\n );\r\n return !authlayers;\r\n });\r\n } else {\r\n return layerGroupConfig;\r\n }\r\n } \r\n\r\n protected setWmsOpactity = (map: IMap): void => {\r\n let wmslayers: string[];\r\n wmslayers = [BuckinghamshireRecordType.HistoricRidgeAndFurrow, BuckinghamshireRecordType.Hlc_1820, BuckinghamshireRecordType.Hlc_1880, BuckinghamshireRecordType.Hlc_2000];\r\n\r\n map.options.layerGroupCollection.wmsLayerGroups.forEach(lg => {\r\n if (wmslayers.indexOf(lg.layerType) > -1) {\r\n lg.layers.forEach(lyr => {\r\n lyr.olWmsLayer.setOpacity(0.7);\r\n });\r\n }\r\n });\r\n }\r\n}","import { PrintMap } from \"esdm-map/dist/map/tools/PrintMap\";\r\nimport { IPrintOptions } from \"esdm-map/dist/map/tools/IPrintOptions\";\r\nimport { DownloadMapPng } from \"esdm-map/dist/map/tools/DownloadMapPng\";\r\nimport { IMapViewStore } from \"esdm-map/dist/map/store/IMapViewStore\";\r\nimport { IVectorLayerGroupFactory } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupFactory\";\r\nimport { IMapContextMenu } from \"esdm-map/dist/map/tools/IMapContextMenu\";\r\nimport { IFeatureLoader } from \"esdm-map/dist/layers/vector/sources/loaders/interfaces/IFeatureLoader\";\r\nimport { OgcMapFilter } from \"esdm-map/dist/map/filters/OgcMapFilter\";\r\nimport { VectorLayerGroupFactory } from \"esdm-map/dist/layers/groups/vector/VectorLayerGroupFactory\";\r\nimport { MapViewStore } from \"esdm-map/dist/map/store/MapViewStore\";\r\nimport { MapContextMenu } from \"esdm-map/dist/map/tools/MapContextMenu\";\r\nimport { IVectorLayerGroupConfig } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupConfig\";\r\nimport { GeoJsonFeatureLoader } from \"esdm-map/dist/layers/vector/sources/loaders/GeoJsonFeatureLoader\";\r\nimport { ILoaderExtentsBehaviour } from \"esdm-map/dist/layers/vector/sources/loaders/behaviours/ILoaderExtentsBehaviour\";\r\nimport { BoundsLoaderExtentsBehaviour } from \"esdm-map/dist/layers/vector/sources/loaders/behaviours/BoundsLoaderBehaviour\";\r\nimport { IFeatureAdd } from \"esdm-map/dist/layers/vector/sources/loaders/interfaces/IFeatureAdd\";\r\nimport { ExtentsNavigation } from \"esdm-map/dist/map/controls/ExtentsNavigation\";\r\nimport { LayerGroupFactory } from \"esdm-map/dist/layers/groups/LayerGroupFactory\";\r\nimport { LayerGroupCollection } from \"esdm-map/dist/layers/groups/LayerGroupCollection\";\r\nimport { MapFilters } from \"esdm-map/dist/map/filters/MapFilters\";\r\nimport { GridRef } from \"esdm-map/dist/map/controls/GridRef\";\r\nimport { IMappingTextPack } from \"esdm-map/dist/resources/MappingTextPack\";\r\nimport { MousePosition } from \"esdm-map/dist/map/controls/MousePosition\";\r\nimport { GeoNames } from \"esdm-map/dist/gazetteer/geonames\";\r\nimport { IStyleFactory } from \"esdm-map/dist/layers/vector/styles/IStyleFactory\";\r\nimport { IVectorLayerSourceFactory } from \"esdm-map/dist/layers/vector/sources/interfaces\";\r\nimport { VectorLayerSourceFactory } from \"esdm-map/dist/layers/vector/sources\";\r\nimport { IBaseLayerFactory } from \"esdm-map/dist/baselayers/interfaces/IBaseLayerFactory\";\r\nimport { IVectorLayerGroup } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroup\";\r\nimport { ZoomToDataBounds } from \"esdm-map/dist/layers/vector/ZoomToDataBounds\";\r\nimport { VectorLayerStrategy } from \"esdm-map/dist/layers/vector/VectorLayerStrategy\";\r\nimport {\r\n MapOptions,\r\n IMap,\r\n MapLayerSwitcher,\r\n IMapAreaMask,\r\n ILogger,\r\n IResourceFactory,\r\n IMapFactory, \r\n MapFactory,\r\n Logger,\r\n MiniMapsForLists,\r\n BaseLayerType,\r\n MapFeatureInfo,\r\n olMap\r\n} from \"esdm-map\";\r\n\r\n\r\nimport { HbsmrStyleFactory } from \"./HbsmrStyleFactory\";\r\nimport { HbsmrResourcefactory } from \"./HbsmrResourceFactory\";\r\nimport { BuckinghamshireRecordType, BuckinghamshireRecordSubType } from \"./BuckinghamshireRecordTypes\";\r\nimport { DefaultLayerConfigurationFactory } from \"./DefaultLayerConfigurationFactory\";\r\nimport { TextPackLoader, TextPacks } from \"./TextPackLoader\";\r\nimport { DefaultMapOptions } from \"./DefaultMapOptions\";\r\nimport { FeatureAddSmallGeomsAsPoint } from \"esdm-map/dist/layers/vector/sources/loaders\";\r\nimport { HbsmrUser, HbsmrIdentity } from \"./HbsmrUser\";\r\nimport { MapBase } from \"./MapBase\";\r\nimport { IWmsLayerGroupConfig, IWmsLayerGroupFactory } from \"esdm-map/dist/layers/groups/wms/interfaces\";\r\nimport { WmsLayerGroupFactory } from \"esdm-map/dist/layers/groups/wms\";\r\n\r\nimport { CustomClient_BaseLayerFactory_27700, BucksBaseLayers } from \"./CustomClient_BaseLayerFactory_27700\";\r\nimport { IlayerGroupCollectionConfig } from \"esdm-map/dist/layers/groups/IlayerGroupCollectionConfig\";\r\nimport { LayerGroupCollections } from \"esdm-map/dist/layers/groups/LayerGroupCollections\";\r\nimport { Popover } from \"bootstrap\";\r\nimport { debounce } from \"debounce\";\r\n\r\nimport \"../wwwroot/css/bootstrap-select.css\"\r\n//import \"../wwwroot/css/ol.css\";\r\n//import \"../wwwroot/css/bootstrap-slider.min.css\";\r\n//import \"../wwwroot/css/ol-contextmenu.css\";\r\n\r\n$(function () {\r\n //selectPicker\r\n //($('.hbsmrSelectPicker')).selectpicker({\r\n // noneSelectedText: \"\",\r\n // \"selected-text-format\": \"count > 1\",\r\n // dropupAuto: false\r\n //});\r\n\r\n ($('.hbsmrSelectPicker')).selectpicker({\r\n noneSelectedText: \"\",\r\n \"selected-text-format\": \"count > 1\"\r\n });\r\n\r\n $('.hbsmrSelectPicker').on('loaded.bs.select', function (e) {\r\n var name = $(this).attr(\"name\").replace(/([A-Z])/g, ' $1').trim();\r\n $(this).next(\".btn\").append(\"\" + name + \"\");\r\n });\r\n\r\n var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle=\"popover\"]'))\r\n var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {\r\n return new Popover(popoverTriggerEl, {\r\n html: true,\r\n trigger: 'focus',\r\n content: function () {\r\n var content = $(this).attr(\"data-popover-content\");\r\n return $(content).children(\".popover-body\").html();\r\n }\r\n })\r\n })\r\n \r\n let didLoadMap = false; \r\n let ele = $(\"#theMap\");\r\n let maxFeatureCount: number = ele.data(\"max-feature-count\");\r\n let searchMap: MonumentStructuredSearchMap = null;\r\n\r\n let data = $(\"#searchMapData\");\r\n let searchOptions: IMonumentSearch = {\r\n searchString: data.data(\"search-string\"),\r\n searchMode: data.data(\"search-mode\"),\r\n recordType: data.data(\"record-type\"),\r\n monType: data.data(\"mon-type\"),\r\n objectType: data.data(\"object-type\"),\r\n adminArea: data.data(\"admin-area\"),\r\n periodFrom: data.data(\"period-from\"),\r\n periodTo: data.data(\"period-to\"),\r\n periodIncludeOverlaps: data.data(\"period-overlaps\")\r\n }; \r\n\r\n let printOptions: PrintMap = new PrintMap();\r\n\r\n\r\n function addHandlers() {\r\n $(\".scrollTo\").on(\"click\", function (e) {\r\n let id = $(this).data(\"scrollto\");\r\n if (id) {\r\n $('html, body').animate({\r\n scrollTop: ($(id).offset().top)\r\n }, 500);\r\n }\r\n e.preventDefault();\r\n });\r\n }\r\n addHandlers();\r\n\r\n\r\n function resizeMap() {\r\n //use max footer height, especially on mobile\r\n //var fHeight = $(\"footer\").height();\r\n //fHeight = Math.min(fHeight, 200);\r\n\r\n var height = $(window).height() - $(\"#mapContainer\").offset().top;\r\n if (height <= 400) {\r\n height = 400;\r\n }\r\n $('#mapContainer').height(height); \r\n $(\"#slide-content\").height(height - 55);\r\n\r\n if (searchMap) {\r\n searchMap.map.olMap.updateSize();\r\n }\r\n };\r\n\r\n let loadMap = function () {\r\n HbsmrIdentity.fetch().then(function (e) {\r\n let user = e;\r\n let init = function (textpacks: TextPacks) { \r\n searchMap = new MonumentStructuredSearchMap(\"theMap\", searchOptions, maxFeatureCount, printOptions, textpacks.mapping, user);\r\n didLoadMap = true;\r\n }\r\n TextPackLoader.load().then(init);\r\n });\r\n }\r\n\r\n if (printOptions.isPrintMap) {\r\n loadMap();\r\n }\r\n else {\r\n window.addEventListener('resize', debounce(resizeMap, 250)); \r\n\r\n let bingAPIKey: string = ele.data(\"bing-api-key\");\r\n let esdmOsmApiKey: string = ele.data(\"esdm-osm-api-key\");\r\n let baseLayerFactory: IBaseLayerFactory = new CustomClient_BaseLayerFactory_27700(); \r\n let miniMaps = new MiniMapsForLists(BucksBaseLayers.BucksOS, bingAPIKey, esdmOsmApiKey, baseLayerFactory, \"EPSG:27700\", \"EPSG:27700\");\r\n\r\n //only show the map when the map tab is visible\r\n $('a[data-bs-toggle=\"tab\"]').on('shown.bs.tab', function (e) {\r\n let target = $(e.target).attr(\"href\") // activated tab\r\n if (target === \"#tabMap\") {\r\n if (didLoadMap === false) {\r\n resizeMap();\r\n loadMap(); \r\n }\r\n } else if (target === \"#tabList\" && didLoadMap === true) {\r\n // If the map has loaded it means the user has visited the 'Map' tab, they could have possibly also put the map into fullscreen mode\r\n // if they have then we need to redraw/refresh the miniMaps on the search results list, as they don't refresh correctly after exiting\r\n // the fullscreen mode\r\n miniMaps.refreshMiniMaps();\r\n }\r\n });\r\n }\r\n});\r\n\r\nexport interface IMonumentSearch\r\n{\r\n searchString: string;\r\n searchMode: string;\r\n recordType: string;\r\n monType: string;\r\n objectType: string;\r\n adminArea: string;\r\n periodFrom: string;\r\n periodTo: string;\r\n periodIncludeOverlaps: string;\r\n}\r\n\r\nexport class MonumentStructuredSearchMap extends MapBase {\r\n\r\n public map: IMap;\r\n private mfOptions: MapOptions;\r\n private mapStore: IMapViewStore;\r\n private styleFactory: IStyleFactory;\r\n private ls: MapLayerSwitcher;\r\n private vectorLayerGroups: Array;\r\n private infoPopup: MapFeatureInfo;\r\n private initialised = false;\r\n private herMask: IMapAreaMask;\r\n private geoNames: GeoNames;\r\n private logger: ILogger;\r\n private vectorLayerSourceFactory: IVectorLayerSourceFactory;\r\n private baseLayerFactory: IBaseLayerFactory;\r\n private mapFactory: IMapFactory;\r\n private vectorLayerGroupFactory: IVectorLayerGroupFactory;\r\n private wmsLayerGroupFactory: IWmsLayerGroupFactory;\r\n private boundsLoaderBehaviour: ILoaderExtentsBehaviour;\r\n private mapContextMenu: IMapContextMenu;\r\n private resourcefactory: IResourceFactory;\r\n private downloadPng: DownloadMapPng;\r\n private extentsNavigation: ExtentsNavigation;\r\n private gridRefFinder: GridRef;\r\n private mousePosition: MousePosition;\r\n private featureLoader: IFeatureLoader;\r\n private featureAdd: IFeatureAdd;\r\n private mapFilter: MapFilters;\r\n private layerConfigFactory: DefaultLayerConfigurationFactory;\r\n private layerGroups: LayerGroupCollections;\r\n private layerGroupFactory: LayerGroupFactory;\r\n\r\n constructor(\r\n private _mapElementId: string, \r\n private _searchOptions: IMonumentSearch,\r\n private _maxFeatureCount: number,\r\n public printOptions: IPrintOptions,\r\n mappingTextPack: IMappingTextPack,\r\n user: HbsmrUser)\r\n {\r\n super(mappingTextPack, user);\r\n this.init();\r\n }\r\n\r\n private init = () => {\r\n if (this.initialised) {\r\n return;\r\n }\r\n\r\n $(\"#printButton\").hide();\r\n\r\n this.layerConfigFactory = new DefaultLayerConfigurationFactory();\r\n this.wmsLayerGroupFactory = new WmsLayerGroupFactory();\r\n this.vectorLayerGroupFactory = new VectorLayerGroupFactory();\r\n this.layerGroupFactory = new LayerGroupFactory(this.vectorLayerGroupFactory, this.wmsLayerGroupFactory);\r\n this.mapFilter = new MapFilters();\r\n this.mapFilter.OgcFilter = new OgcMapFilter();\r\n this.baseLayerFactory = new CustomClient_BaseLayerFactory_27700(); \r\n this.featureLoader = new GeoJsonFeatureLoader();\r\n this.featureAdd = new FeatureAddSmallGeomsAsPoint(4.5);\r\n this.mapFactory = new MapFactory();\r\n this.logger = new Logger();\r\n this.boundsLoaderBehaviour = new BoundsLoaderExtentsBehaviour(this.logger);\r\n this.styleFactory = new HbsmrStyleFactory();\r\n this.resourcefactory = new HbsmrResourcefactory(this.mappingTextPack, this.user);\r\n\r\n this.mfOptions = DefaultMapOptions.GetDefaultOptions(this._mapElementId, \"MonumentSearchMap\");\r\n this.mfOptions.enableBoundsTracking = false;\r\n //zoom & centre determines the start position of the map\r\n this.mfOptions.mapZoom = 10; \r\n //don't want the default centre of Buckingham\r\n this.mfOptions.mapCentre = [480191, 212854];\r\n\r\n this.layerGroups = this.layerGroupFactory.getLayerGroups(this.getLayerGroupConfig(), this.styleFactory);\r\n this.mfOptions.layerGroupCollection = this.layerGroups;\r\n\r\n this.mapStore = new MapViewStore(this.mfOptions.mapStoreKey); \r\n this.mapContextMenu = new MapContextMenu(this.mappingTextPack);\r\n this.vectorLayerSourceFactory = new VectorLayerSourceFactory(this.logger, this.boundsLoaderBehaviour, this.featureLoader, this.featureAdd);\r\n this.map = this.mapFactory.instance(this.mfOptions, this.mapStore, this.logger, this.vectorLayerSourceFactory, this.baseLayerFactory, this.boundsLoaderBehaviour, this.mapContextMenu, this.printOptions, this.mapFilter, this.mappingTextPack);\r\n this.infoPopup = new MapFeatureInfo(this.map, this.resourcefactory.getRecordTypeResource(), this.mappingTextPack);\r\n this.ls = new MapLayerSwitcher(this.map, this.mapStore, this.styleFactory, this.map.baseLayers, this.layerGroups, this.mappingTextPack, {\r\n showList: false,\r\n showOpenPanelByDefault: !this.printOptions.isPrintMap,\r\n rememberActivePanel: true\r\n });\r\n this.geoNames = new GeoNames(this.map, this.mappingTextPack);\r\n\r\n if (this.printOptions.isPrintMap) {\r\n this.printOptions.setMap(this.map);\r\n }\r\n this.downloadPng = new DownloadMapPng(this.map, this.mappingTextPack);\r\n this.gridRefFinder = new GridRef(this.map, this.mappingTextPack, this.logger);\r\n this.extentsNavigation = new ExtentsNavigation(this.map, this.logger, this.mappingTextPack);\r\n this.mousePosition = new MousePosition(this.map, this.mappingTextPack);\r\n this.setWmsOpactity(this.map);\r\n\r\n this.initialised = true;\r\n }\r\n\r\n\r\n private getLayerGroupConfig = (): Array => {\r\n let self = this; \r\n\r\n let layerGroupConfig: Array = [\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Monument),\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Event),\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Consultation),\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Designation, BuckinghamshireRecordSubType.ScheduledMonument),\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Designation, BuckinghamshireRecordSubType.ListedBuilding),\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Designation, BuckinghamshireRecordSubType.RegisteredParksAndGardens), \r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Designation, BuckinghamshireRecordSubType.LocallyListedBuilding), \r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Designation, BuckinghamshireRecordSubType.ConservationArea), \r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Designation, BuckinghamshireRecordSubType.ArchaeologicalNotificationAreas),\r\n self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.HistoricRidgeAndFurrow)\r\n ];\r\n\r\n layerGroupConfig.forEach(function (layer: IVectorLayerGroupConfig, index: number) {\r\n if (layer.type === self._searchOptions.recordType) {\r\n layer.displayName = layer.displayName + ' ',\r\n layer.layers.forEach(l => { l.layerName += \"_StructuredSearch\" });\r\n layer.zoomToDataBounds = ZoomToDataBounds.Never;\r\n layer.strategy = VectorLayerStrategy.Bbox;\r\n layer.allowZoomToLoadedDataBounds = true;\r\n layer.visibleOnLoad = true;\r\n layer.maxFeatureCount = self._maxFeatureCount;\r\n layer.useWfsBboxRequestParameter = true;\r\n layer.urlParams = {\r\n ...{ \r\n monTypeTerm: self._searchOptions.monType,\r\n findTypeTerm: self._searchOptions.objectType,\r\n adminArea: self._searchOptions.adminArea,\r\n period1: self._searchOptions.periodFrom,\r\n period2: self._searchOptions.periodTo,\r\n periodIncludeOverlaps: self._searchOptions.periodIncludeOverlaps,\r\n maxFeatureCount: self._maxFeatureCount\r\n }, ...layer.urlParams\r\n }\r\n }\r\n });\r\n\r\n\r\n //layerGroupConfig.push(self.layerConfigFactory.layerConfig(BuckinghamshireRecordType.BuckinghamshireBoundary));\r\n\r\n return [\r\n {\r\n ref: \"all_layers\",\r\n name: \"All layers\",\r\n useAccordion: false,\r\n expandedOnFirstLoad: true,\r\n layerGroupConfigs: this.filterMapLayers(layerGroupConfig)\r\n },\r\n {\r\n ref: \"hlc_1820\",\r\n name: \"HLC 1820\",\r\n useAccordion: true,\r\n expandedOnFirstLoad: false,\r\n layerGroupConfigs: [\r\n this.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Hlc_1820)\r\n ]\r\n },\r\n {\r\n ref: \"hlc_1880\",\r\n name: \"HLC 1880\",\r\n useAccordion: true,\r\n expandedOnFirstLoad: false,\r\n layerGroupConfigs: [\r\n this.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Hlc_1880)\r\n ]\r\n },\r\n {\r\n ref: \"hlc_2000\",\r\n name: \"HLC 2000\",\r\n useAccordion: true,\r\n expandedOnFirstLoad: false,\r\n layerGroupConfigs: [\r\n this.layerConfigFactory.layerConfig(BuckinghamshireRecordType.Hlc_2000)\r\n ]\r\n }\r\n ];\r\n }\r\n\r\n}\r\n","import { IMappingTextPack, MappingTextPack } from \"esdm-map\";\r\n\r\nexport class TextPacks {\r\n public constructor( \r\n public mapping: IMappingTextPack\r\n ) { }\r\n}\r\n\r\nexport class TextPackLoader {\r\n\r\n public static load(): Promise { \r\n let mapping = MappingTextPack.load();\r\n\r\n return Promise.all([mapping]).then(\r\n function (results) {\r\n return new TextPacks(results[0]);\r\n }\r\n )\r\n }\r\n}","module.exports = bootstrap;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t14: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_name_\"] = self[\"webpackChunk_name_\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [216], () => (__webpack_require__(6984)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","BuckinghamshireRecordSubType","BuckinghamshireRecordType","BucksBaseLayers","BaseLayerType","BucksOS","BucksAerial","BucksHistoricRidgeAndFurrow","BucksOS1stEdition","GetBaseLayerByType","baseLayerType","bingApiKey","esdmApiKey","this","GetBucksOS","GetBucksAerial","HistoricRidgeAndFurrow","lyr","visible","source","url","layer","matrixSet","format","projection","tileGrid","origin","resolutions","matrixIds","style","wrapX","crossOrigin","attributions","BaseLayer","urls","params","LAYERS","TILED","FORMAT","SRS","BaseLayerFactory_27700","CustomClient_BaseLayerFactory_27700","mapFileUrl","layerConfig","recordType","recordSubType","opts","Monument","Event","Consultation","Hlc_1820","Hlc1820","Hlc_1880","Hlc1880","Hlc_2000","Hlc2000","ConservationArea","ScheduledMonument","RegisteredParksAndGardens","ArchaeologicalNotificationAreas","ListedBuilding","LocallyListedBuilding","displayName","ref","type","displayInLayerSwitcher","displayInLegend","visibleOnFirstLoad","queryable","layers","layerName","minZoom","maxZoom","info_format","strategy","VectorLayerStrategy","Bbox","wfsParams","paramSource","legend","point","line","alwaysLoadOnZoom","Designation","subType","urlParams","recsubtypecode","WfsParamSourceMapServer","WfsBboxAsWktRequestParams","srsName","DefaultLayerConfigurationFactory","GetDefaultOptions","mapElementId","mapStoreKey","opt","MapOptions","$","data","esdmOsmApiKey","baseMaps","defaultBaseMap","enableBoundsTracking","mapZoom","extent","mapCentre","displayProjection","dataProjection","dragRotateAndZoom","zoomToNearestBounds","DefaultMapOptions","_mappingTextPack","_user","items","Array","push","recordTypeCode","recordSubTypeCode","heading","isAuthenticated","groupByRecordSubTypeCode","toLowerCase","mapToIRecordTypeInfoClick","featureProperties","layerGroup","id","uid","name","rectype","recsubtype","getHeading","getInfoClickHtmlTemplate","recordTypeInfoClick","html","layerType","fullHtml","goToDetails","centreOnMap","noLinksHtml","controller","RecordTypeResource","HbsmrRecordTypeResource","getRecordTypeResource","HbsmrResourcefactory","getStyle","getSelectedStyle","SelectedRecord","fill","color","stroke","width","image","radius","points","rotation","angle","HbsmrStyleFactory","fetch","Promise","resolve","reject","getJSON","response","fail","HbsmrIdentity","HbsmrUser","MapBase","mappingTextPack","user","filterMapLayers","layerGroupConfig","filter","value","index","arr","setWmsOpactity","map","wmslayers","options","layerGroupCollection","wmsLayerGroups","forEach","lg","indexOf","olWmsLayer","setOpacity","selectpicker","noneSelectedText","on","e","attr","replace","trim","next","append","slice","call","document","querySelectorAll","popoverTriggerEl","Popover","trigger","content","children","didLoadMap","ele","maxFeatureCount","searchMap","searchOptions","searchString","searchMode","monType","objectType","adminArea","periodFrom","periodTo","periodIncludeOverlaps","printOptions","PrintMap","resizeMap","height","window","offset","top","olMap","updateSize","animate","scrollTop","preventDefault","loadMap","then","TextPackLoader","load","textpacks","MonumentStructuredSearchMap","mapping","isPrintMap","addEventListener","debounce","bingAPIKey","baseLayerFactory","MiniMapsForLists","target","refreshMiniMaps","_mapElementId","_searchOptions","_maxFeatureCount","initialised","init","hide","layerConfigFactory","wmsLayerGroupFactory","WmsLayerGroupFactory","vectorLayerGroupFactory","VectorLayerGroupFactory","layerGroupFactory","LayerGroupFactory","mapFilter","MapFilters","OgcFilter","OgcMapFilter","featureLoader","GeoJsonFeatureLoader","featureAdd","FeatureAddSmallGeomsAsPoint","mapFactory","MapFactory","logger","Logger","boundsLoaderBehaviour","BoundsLoaderExtentsBehaviour","styleFactory","resourcefactory","mfOptions","layerGroups","getLayerGroups","getLayerGroupConfig","mapStore","MapViewStore","mapContextMenu","MapContextMenu","vectorLayerSourceFactory","VectorLayerSourceFactory","instance","infoPopup","MapFeatureInfo","ls","MapLayerSwitcher","baseLayers","showList","showOpenPanelByDefault","rememberActivePanel","geoNames","GeoNames","setMap","downloadPng","DownloadMapPng","gridRefFinder","GridRef","extentsNavigation","ExtentsNavigation","mousePosition","MousePosition","self","l","zoomToDataBounds","ZoomToDataBounds","Never","allowZoomToLoadedDataBounds","visibleOnLoad","useWfsBboxRequestParameter","monTypeTerm","findTypeTerm","period1","period2","useAccordion","expandedOnFirstLoad","layerGroupConfigs","TextPacks","MappingTextPack","all","results","module","exports","bootstrap","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","bind","__webpack_exports__"],"sourceRoot":""}