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,GAAgC,IAAxBkM,EAAgBlM,KAAa,CACtD,IAAIsJ,KAAYgD,EACZjD,EAAoB+B,EAAEkB,EAAahD,KACrCD,EAAoBQ,EAAEP,GAAYgD,EAAYhD,IAGhD,GAAGiD,EAAS,IAAIxC,EAASwC,EAAQlD,EAClC,CAEA,IADGgD,GAA4BA,EAA2B1Q,GACrD0O,EAAIL,EAAS3G,OAAQgH,IACzB8B,EAAUnC,EAASK,GAChBhB,EAAoB+B,EAAEc,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBlC,EAASK,IAAM,EAEhC,OAAOhB,EAAoBS,EAAEC,EAAO,EAGjC0C,EAAqBC,KAAyB,mBAAIA,KAAyB,oBAAK,GACpFD,EAAmBE,QAAQP,EAAqBQ,KAAK,KAAM,IAC3DH,EAAmBlN,KAAO6M,EAAqBQ,KAAK,KAAMH,EAAmBlN,KAAKqN,KAAKH,G,KC7CvF,IAAII,EAAsBxD,EAAoBS,OAAEN,EAAW,CAAC,MAAM,IAAOH,EAAoB,QAC7FwD,EAAsBxD,EAAoBS,EAAE+C,G","sources":["webpack://[name]/webpack/runtime/chunk loaded","webpack://[name]/./Scripts/DefaultLayerConfigurationFactory.ts","webpack://[name]/./Scripts/DefaultMapOptions.ts","webpack://[name]/./Scripts/ExmoorBaseMapping_27700.ts","webpack://[name]/./Scripts/ExmoorRecordTypes.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/MapSingleRecord.ts","webpack://[name]/./Scripts/TextPackLoader.ts","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};","import { IVectorLayerGroupConfig } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupConfig\";\r\nimport { WfsParamSourceMapServer, IWfsParamSource, WfsBboxAsWktRequestParams } from \"esdm-map/dist/layers/vector/sources/wfs\";\r\nimport { VectorLayerStrategy } from \"esdm-map/dist/layers/vector/VectorLayerStrategy\";\r\nimport { ExmoorRecordSubType, ExmoorRecordType } from \"./ExmoorRecordTypes\";\r\n\r\n\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: ExmoorRecordType,\r\n recordSubType: ExmoorRecordSubType = null,\r\n opts: IVectorLayerGroupConfig = {}\r\n ): IVectorLayerGroupConfig => {\r\n let layerConfig: IVectorLayerGroupConfig = null;\r\n\r\n switch (recordType) {\r\n case ExmoorRecordType.Monument:\r\n layerConfig = this.Monument(opts);\r\n break; \r\n\r\n case ExmoorRecordType.Event:\r\n layerConfig = this.Event(opts);\r\n break; \r\n }\r\n\r\n if (layerConfig === null && recordSubType !== null) {\r\n switch (recordSubType) {\r\n\r\n case ExmoorRecordSubType.ListedBuilding:\r\n layerConfig = this.ListedBuilding(opts);\r\n break;\r\n\r\n case ExmoorRecordSubType.ScheduledMonument:\r\n layerConfig = this.ScheduledMonument(opts);\r\n break; \r\n \r\n case ExmoorRecordSubType.RegisteredParksAndGardens:\r\n layerConfig = this.RegisteredParksAndGardens(opts);\r\n break; \r\n\r\n case ExmoorRecordSubType.ConservationArea:\r\n layerConfig = this.ConservationArea(opts);\r\n break;\r\n\r\n case ExmoorRecordSubType.LocalList:\r\n layerConfig = this.LocalList(opts);\r\n break;\r\n\r\n case ExmoorRecordSubType.PrincipalArchaeologicalLandscape:\r\n layerConfig = this.PrincipalArchaeologicalLandscape(opts);\r\n break;\r\n }\r\n }\r\n\r\n return layerConfig;\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: ExmoorRecordType.Monument,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 2000,\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: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentLinesWFS\",\r\n minZoom: 7,\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: 6\r\n },\r\n {\r\n layerName: \"MonumentPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 6\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: ExmoorRecordType.Event,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 2000, \r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"EventPolygonsWFS\",\r\n minZoom: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"EventLinesWFS\",\r\n minZoom: 7,\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: 6\r\n },\r\n {\r\n layerName: \"EventPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 6\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: ExmoorRecordType.Designation,\r\n subType: ExmoorRecordSubType.ListedBuilding,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: ExmoorRecordSubType.ListedBuilding },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationLinesWFS\",\r\n minZoom: 1,\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: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 6\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: ExmoorRecordType.Designation,\r\n subType: ExmoorRecordSubType.ScheduledMonument,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: ExmoorRecordSubType.ScheduledMonument },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { line: false, point: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 6\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: ExmoorRecordType.Designation,\r\n subType: ExmoorRecordSubType.RegisteredParksAndGardens,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: ExmoorRecordSubType.RegisteredParksAndGardens },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { line: false, point: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\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: ExmoorRecordType.Designation,\r\n subType: ExmoorRecordSubType.ConservationArea,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: ExmoorRecordSubType.ConservationArea },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { line: false, point: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private PrincipalArchaeologicalLandscape = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Principal Archaeological Landscapes\",\r\n ref: \"PrincipalArchaeologicalLandscape\",\r\n type: ExmoorRecordType.Designation,\r\n subType: ExmoorRecordSubType.PrincipalArchaeologicalLandscape,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: ExmoorRecordSubType.PrincipalArchaeologicalLandscape },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { line: false, point: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n private LocalList = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Local List\",\r\n ref: \"LocalList\",\r\n type: ExmoorRecordType.Designation,\r\n subType: ExmoorRecordSubType.LocalList,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: ExmoorRecordSubType.LocalList },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationLinesWFS\",\r\n minZoom: 1,\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: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 6\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n}\r\n\r\n","import {\r\n MapOptions\r\n} from \"esdm-map/dist\";\r\nimport { ExmoorBaseLayerTypes } from \"./ExmoorBaseMapping_27700\";\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 = [ \r\n ExmoorBaseLayerTypes.ExmoorOS,\r\n ExmoorBaseLayerTypes.ExmoorAerial\r\n ];\r\n opt.defaultBaseMap = ExmoorBaseLayerTypes.ExmoorOS;\r\n opt.enableBoundsTracking = true;\r\n opt.zoomToNearestBounds = false;\r\n opt.maxZoomToBounds = 18;\r\n opt.mapElementId = mapElementId;\r\n opt.mapStoreKey = mapStoreKey;\r\n opt.mapZoom = 11;\r\n opt.minZoom = 7;\r\n opt.maxZoom = 16;\r\n \r\n opt.extent = [220000, 120000, 350000, 155000];\r\n opt.mapCentre = [\r\n 271996, 149354\r\n ]; \r\n\r\n opt.displayProjection = \"EPSG:27700\";\r\n opt.dataProjection = \"EPSG:27700\";\r\n opt.dragRotateAndZoom = false; \r\n return opt;\r\n }\r\n\r\n}\r\n","import {\r\n BaseLayer,\r\n BaseLayerFactory_27700,\r\n BaseLayerFactory_3857,\r\n BaseLayerType,\r\n DualBaseLayerWithResolutionSwitch\r\n} from \"esdm-map\";\r\n\r\nimport { IBaseLayer } from \"esdm-map/dist/baselayers/interfaces/IBaseLayer\";\r\nimport TileLayer from \"ol/layer/Tile\";\r\nimport TileWMS from 'ol/source/TileWMS';\r\n\r\nimport * as olProj from 'ol/proj';\r\nimport proj4 from \"proj4\";\r\nimport { register } from 'ol/proj/proj4';\r\nimport Projection from \"ol/proj/Projection\";\r\nimport XYZ from 'ol/source/XYZ';\r\nimport OSM from 'ol/source/OSM';\r\nimport ImageLayer from \"ol/layer/Image\";\r\nimport ImageWMS from 'ol/source/ImageWMS';\r\nimport TileGrid from \"ol/tilegrid/TileGrid\";\r\nimport Attribution from \"ol/control/Attribution\";\r\nimport WMTS from 'ol/source/WMTS';\r\nimport WMTSTileGrid from 'ol/tilegrid/WMTS';\r\n\r\nexport const ExmoorBaseLayerTypes = {\r\n ...BaseLayerType,\r\n ExmoorOS: 999,\r\n ExmoorAerial: 1010\r\n};\r\n\r\nexport class ExmoorBaseMapping_27700 extends BaseLayerFactory_27700 {\r\n \r\n public constructor() {\r\n super();\r\n \r\n proj4.defs('EPSG:27700', '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 ' +\r\n '+x_0=400000 +y_0=-100000 +ellps=airy ' +\r\n '+towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 ' +\r\n '+units=m +no_defs');\r\n register(proj4);\r\n var proj27700 = olProj.get('EPSG:27700');\r\n proj27700.setExtent([0, 0, 700000, 1300000]);\r\n }\r\n \r\n\r\n public GetBaseLayerByType(baseLayerType: BaseLayerType, bingApiKey: string, esdmOsmApiKey:string): IBaseLayer {\r\n if (baseLayerType === ExmoorBaseLayerTypes.ExmoorOS) {\r\n return this.ExmoorOS();\r\n }\r\n if (baseLayerType === ExmoorBaseLayerTypes.ExmoorAerial) {\r\n return this.ExmoorAerial(); \r\n }\r\n\r\n return super.GetBaseLayerByType(baseLayerType, bingApiKey, esdmOsmApiKey);\r\n }\r\n\r\n private ExmoorOS(): IBaseLayer { \r\n let roadLyr = new TileLayer({\r\n visible: false,\r\n source: new WMTS({\r\n url: \"/api/OgcService/ExmoorBaseMapping\",\r\n layer: 'Road_27700',\r\n format: 'image/png',\r\n version: '1.0.0',\r\n matrixSet: 'EPSG:27700',\r\n projection: \"EPSG:27700\",\r\n tileGrid: new WMTSTileGrid({\r\n origin: [-238375.0, 1376256.0],\r\n resolutions: [896, 448, 224, 112, 56, 28, 14, 7, 3.5, 1.75, 0.8749999998622047, 0.43749999993110233, 0.21874999996555117, 0.10937499998277558],\r\n matrixIds: ['EPSG:27700:0', 'EPSG:27700:1', 'EPSG:27700:2', 'EPSG:27700:3', 'EPSG:27700:4', 'EPSG:27700:5', 'EPSG:27700:6', 'EPSG:27700:7', 'EPSG:27700:8', 'EPSG:27700:9', 'EPSG:27700:10', 'EPSG:27700:11', 'EPSG:27700:12', 'EPSG:27700:13']\r\n }),\r\n style: 'default',\r\n wrapX: true,\r\n attributions: [\r\n `© Crown Copyright and database rights ${new Date().getFullYear()} Ordnance Survey AC0000824720
HER data copyright details`\r\n ]\r\n })\r\n }); \r\n roadLyr.setVisible(false);\r\n\r\n let leisureLyr = new TileLayer({\r\n visible: false,\r\n source: new WMTS({\r\n url: \"/api/OgcService/ExmoorBaseMapping\",\r\n layer: 'Leisure_27700',\r\n format: 'image/png',\r\n version: '1.0.0',\r\n matrixSet: 'EPSG:27700',\r\n projection: \"EPSG:27700\",\r\n tileGrid: new WMTSTileGrid({\r\n origin: [-238375.0, 1376256.0],\r\n resolutions: [896, 448, 224, 112, 56, 28, 14, 7, 3.5, 1.75, 0.8749999998622047],\r\n matrixIds: ['EPSG:27700:0', 'EPSG:27700:1', 'EPSG:27700:2', 'EPSG:27700:3', 'EPSG:27700:4', 'EPSG:27700:5', 'EPSG:27700:6', 'EPSG:27700:7', 'EPSG:27700:8', 'EPSG:27700:9', 'EPSG:27700:10', 'EPSG:27700:11', 'EPSG:27700:12', 'EPSG:27700:13']\r\n }),\r\n style: 'default',\r\n wrapX: true,\r\n attributions: [\r\n `© Crown Copyright and database rights ${new Date().getFullYear()} Ordnance Survey AC0000824720
HER data copyright details`\r\n ]\r\n })\r\n });\r\n leisureLyr.setVisible(false); \r\n\r\n return new DualBaseLayerWithResolutionSwitch(\"Road\", \"Ordnance Survey\", roadLyr, leisureLyr, 11);\r\n } \r\n\r\n private ExmoorAerial(): IBaseLayer { \r\n let lyr = new TileLayer({\r\n visible: false,\r\n source: new TileWMS({ \r\n urls: [\"/api/OgcService/ExmoorAerialMapping\"],\r\n params: {\r\n LAYERS: 'AP-25CM-GB-LATEST',\r\n TILED: 'true',\r\n FORMAT: 'image/png',\r\n SRS: 'EPSG:27700'\r\n },\r\n projection: \"EPSG:27700\",\r\n tileGrid: new TileGrid({\r\n origin: [-118397.0013883789, 1260607.8180415547],\r\n resolutions: [\r\n 72,\r\n 38,\r\n 16,\r\n 8,\r\n 4,\r\n 2,\r\n 1,\r\n 0.5,\r\n 0.25,\r\n 0.125\r\n ],\r\n tileSize: [512, 512]\r\n }),\r\n attributions: [\r\n \"© Bluesky International Limited and Getmapping Plc 2024
HER data copyright details\"\r\n ]\r\n })\r\n });\r\n lyr.setVisible(false);\r\n return new BaseLayer(\"ExmoorAerial\", \"Aerial Photography 2021-3\", lyr);\r\n }\r\n\r\n}","\r\nexport enum ExmoorRecordType {\r\n Monument = \"mon\",\r\n Event = \"event\",\r\n Source = \"source\",\r\n Designation = \"desig\"\r\n}\r\n\r\nexport enum ExmoorRecordSubType {\r\n ConservationArea = \"COA\",\r\n ListedBuilding = \"LB\",\r\n RegisteredParksAndGardens = \"RG\",\r\n ScheduledMonument = \"SM\",\r\n PrincipalArchaeologicalLandscape = \"PAL\",\r\n LocalList = \"LL\"\r\n}\r\n","import {\r\n ExmoorRecordType,\r\n ExmoorRecordSubType\r\n} from \"./ExmoorRecordTypes\";\r\n\r\nimport {\r\n IRecordTypeFeatureInfoClick,\r\n RecordTypeResource,\r\n IRecordTypeHeading, \r\n IMappingTextPack\r\n} from \"esdm-map\";\r\nimport { ILayerGroup } from \"esdm-map/dist/layers/groups/ILayerGroup\";\r\n\r\n\r\nlet headingConfiguration = (): Array => {\r\n let items = new Array();\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Monument,\r\n recordSubTypeCode: null,\r\n heading: \"Monument(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Event,\r\n recordSubTypeCode: null,\r\n heading: \"Event(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: null,\r\n heading: \"Designation(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: ExmoorRecordSubType.ConservationArea,\r\n heading: \"Conservation Area(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: ExmoorRecordSubType.ListedBuilding,\r\n heading: \"Listed Building(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: ExmoorRecordSubType.RegisteredParksAndGardens,\r\n heading: \"Registered Park / Garden\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: ExmoorRecordSubType.ScheduledMonument,\r\n heading: \"Scheduled Monument(s)\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: ExmoorRecordSubType.PrincipalArchaeologicalLandscape,\r\n heading: \"Principal Archaeological Landscape\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: ExmoorRecordType.Designation,\r\n recordSubTypeCode: ExmoorRecordSubType.LocalList,\r\n heading: \"Local List\"\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 ) {\r\n super(headingConfiguration());\r\n }\r\n \r\n public groupByRecordSubTypeCode(recordTypeCode: string): boolean \r\n {\r\n return (recordTypeCode.toLowerCase() === ExmoorRecordType.Designation); \r\n } \r\n\r\n public mapToIRecordTypeInfoClick(featureProperties: any, layerGroup: ILayerGroup): IRecordTypeFeatureInfoClick \r\n {\r\n return {\r\n id: featureProperties.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 {\r\n let html: string = \"\";\r\n let featurePropertyNameForId = \"uid\";\r\n let layerType: string = recordTypeInfoClick.layerGroup.layerType;\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 break;\r\n case \"event\":\r\n recordTypeInfoClick.data.controller = \"Event\"; \r\n break;\r\n case \"desig\":\r\n recordTypeInfoClick.data.controller = \"Designation\"; \r\n break; \r\n }\r\n\r\n html = `\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 return html;\r\n }\r\n\r\n \r\n}","import { HbsmrRecordTypeResource } from \"./HbsmrRecordTypeResource\";\r\nimport { IResourceFactory, IRecordTypeResource, IMappingTextPack } from \"esdm-map\";\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 ) {\r\n }\r\n\r\n public getRecordTypeResource(): IRecordTypeResource {\r\n return new HbsmrRecordTypeResource(this._mappingTextPack);\r\n }\r\n\r\n}","import {\r\n ExmoorRecordType,\r\n ExmoorRecordSubType\r\n} from \"./ExmoorRecordTypes\";\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\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 case ExmoorRecordSubType.ConservationArea:\r\n style = this.ConservationArea();\r\n break;\r\n\r\n case ExmoorRecordSubType.ListedBuilding:\r\n style = this.ListedBuilding();\r\n break;\r\n\r\n case ExmoorRecordSubType.ScheduledMonument:\r\n style = this.ScheduledMonument();\r\n break;\r\n\r\n case ExmoorRecordSubType.RegisteredParksAndGardens:\r\n style = this.RegisteredParksAndGardens();\r\n break;\r\n\r\n case ExmoorRecordSubType.PrincipalArchaeologicalLandscape:\r\n style = this.PrincipalArchaeologicalLandscaps();\r\n break;\r\n\r\n case ExmoorRecordSubType.LocalList:\r\n style = this.LocalList();\r\n break;\r\n }\r\n\r\n }\r\n\r\n if (style === null) {\r\n switch (recordType) {\r\n case ExmoorRecordType.Monument:\r\n style = this.Monument();\r\n break;\r\n\r\n case ExmoorRecordType.Event:\r\n style = this.Event();\r\n break;\r\n\r\n case ExmoorRecordType.Designation:\r\n style = this.Designation();\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 = ExmoorRecordType.Monument): Style[] {\r\n return this.SelectedRecord();\r\n }\r\n\r\n private CommonStyle(fillColour: string): Style[] {\r\n var fill = new Fill({\r\n color: fillColour\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(255,255,255,1)',\r\n width: 3\r\n });\r\n\r\n return [\r\n new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: stroke,\r\n radius: 12\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })\r\n ];\r\n }\r\n\r\n private Monument(): Style[] { \r\n var fill = new Fill({\r\n color: 'rgba(45, 250, 70, 0.2)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(45, 250, 70, 1)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: new Fill({ color: 'rgba(45, 250, 70, 0.3)' }),\r\n stroke: new Stroke({ color: 'rgba(45, 250, 70, 5)', width: 1 }),\r\n radius: 4\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n\r\n private Event(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(165, 42, 42, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(165, 42, 42, 1)',\r\n width: 3\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 rotation: 0,\r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n \r\n private Designation(): Style[] {\r\n return this.CommonStyle('rgba(132, 71, 15,0.4)');\r\n }\r\n\r\n private ListedBuilding(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(27, 15, 220, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(27, 15, 220, 1)',\r\n width: 3\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: 5,\r\n radius: 8,\r\n radius2: 4,\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 //return this.CommonStyle('rgba(27, 15, 220, 0.4)'); \r\n var fill = new Fill({\r\n color: 'rgba(255, 153, 0, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(255, 153, 0, 1)',\r\n width: 3\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: 5,\r\n radius: 8,\r\n radius2: 4,\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(255, 0, 0, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(226, 0, 0, 1)',\r\n width: 3\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: 5,\r\n radius: 8,\r\n radius2: 4,\r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private PrincipalArchaeologicalLandscaps(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(185, 107, 225, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(185, 107, 225, 1)',\r\n width: 3\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: new Fill({ color: 'rgba(185, 107, 225, 1)' }),\r\n stroke: new Stroke({ color: 'rgba(50, 50, 50, 1)', width: 1 }),\r\n radius: 4\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private LocalList(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(71, 133, 137, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(71, 133, 137, 1)',\r\n width: 3\r\n });\r\n\r\n return [new Style({\r\n image: new Circle({\r\n fill: new Fill({ color: 'rgba(71, 133, 137, 1)' }),\r\n stroke: new Stroke({ color: 'rgba(71, 133, 137, 1)', width: 1 }),\r\n radius: 4\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(249, 89, 236, 0.2)'\r\n });\r\n\r\n var stroke = new Stroke({\r\n color: 'rgba(249, 89, 236, 1)',\r\n width: 3\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: 5,\r\n radius: 8,\r\n radius2: 4,\r\n angle: 0\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(63, 211, 0, 0.6)'\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(76, 255, 0, 0.6)',\r\n width: 5\r\n }),\r\n radius: 12\r\n }),\r\n fill: fill,\r\n stroke: new Stroke({\r\n color: 'rgba(76, 255, 0, 0.6)',\r\n width: 5\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 { IMappingTextPack, IMap } from \"esdm-map\";\r\nimport { HbsmrUser } from \"./HbsmrUser\";\r\nimport { IVectorLayerGroupConfig } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupConfig\";\r\nimport { ExmoorRecordType, ExmoorRecordSubType } from \"./ExmoorRecordTypes\";\r\n\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 = (value.subType === HighlandRecordSubType.Shine || value.type === HighlandRecordType.Consultation);\r\n // return !authlayers;\r\n // });\r\n //} else {\r\n return layerGroupConfig;\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 { ToolTipProvider } from \"esdm-map/dist/map/tooltip/ToolTipProvider\";\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 { 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\n\r\nimport { IMappingTextPack } from \"esdm-map/dist/resources/MappingTextPack\";\r\nimport { FeatureAdd, FeatureAddSmallGeomsAsPoint } from \"esdm-map/dist/layers/vector/sources/loaders\";\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 { FilterType } from \"esdm-map/dist/map/filters/FilterType\";\r\nimport { VectorLayerStrategy } from \"esdm-map/dist/layers/vector/VectorLayerStrategy\";\r\nimport { ZoomToDataBounds } from \"esdm-map/dist/layers/vector/ZoomToDataBounds\";\r\nimport { MousePosition } from \"esdm-map/dist/map/controls/MousePosition\";\r\nimport { MouseWheelZoom } from \"esdm-map/dist/map/controls/MouseWheelZoom\";\r\n\r\nimport {\r\n MapOptions,\r\n IMap,\r\n MapLayerSwitcher,\r\n IMapAreaMask,\r\n ILogger,\r\n IResourceFactory,\r\n IMapListRecordItem,\r\n IMapFactory,\r\n BaseLayerFactory_3857,\r\n MapFactory,\r\n Logger,\r\n MapFeatureInfo\r\n} from \"esdm-map\";\r\nimport { HbsmrStyleFactory } from \"./HbsmrStyleFactory\";\r\nimport { HbsmrResourcefactory } from \"./HbsmrResourceFactory\";\r\nimport { ExmoorRecordType, ExmoorRecordSubType } from \"./ExmoorRecordTypes\";\r\nimport { DefaultLayerConfigurationFactory } from \"./DefaultLayerConfigurationFactory\";\r\nimport { ExmoorHerBoundary } from \"./ExmoorHerBoundary\";\r\nimport { DefaultMapOptions } from \"./DefaultMapOptions\";\r\nimport { TextPacks, TextPackLoader } from \"./TextPackLoader\";\r\nimport { HbsmrIdentity, HbsmrUser } from \"./HbsmrUser\";\r\nimport { MapBase } from \"./MapBase\";\r\nimport { IDragPan } from \"esdm-map/dist/map/controls/Interfaces/IDragPan\";\r\nimport { DragPan } from \"esdm-map/dist/map/controls/DragPan\";\r\nimport { LayerGroupCollections } from \"esdm-map/dist/layers/groups/LayerGroupCollections\";\r\nimport { IlayerGroupCollectionConfig } from \"esdm-map/dist/layers/groups/IlayerGroupCollectionConfig\";\r\nimport { ExmoorBaseMapping_27700 } from \"./ExmoorBaseMapping_27700\";\r\n\r\nimport \"../wwwroot/css/ol.css\";\r\nimport \"../wwwroot/css/ol3-contextmenu.css\";\r\n\r\n$(document).ready(function () {\r\n let printOptions: PrintMap = new PrintMap();\r\n let ele = $(\"#theMap\");\r\n if (ele.length === 1) {\r\n HbsmrIdentity.fetch().then(function (e) {\r\n let user = e;\r\n let maxFeatureCount: number = ele.data(\"max-feature-count\");\r\n let mapData = $(\"#SingleRecordMapData\");\r\n let recordType: string = mapData.data(\"record-type\");\r\n\r\n let init = function (textpacks: TextPacks) { \r\n let map: MapSingleRecord = new MapSingleRecord(\"theMap\", recordType, null, maxFeatureCount, printOptions, textpacks.mapping, user);\r\n }\r\n TextPackLoader.load().then(init);\r\n });\r\n }\r\n});\r\n\r\n\r\nexport class MapSingleRecord extends MapBase{\r\n\r\n private map: IMap;\r\n private mapStore: IMapViewStore;\r\n private ls: MapLayerSwitcher;\r\n private initialised: boolean = false;\r\n private loadingCount = 0;\r\n private mfOptions: MapOptions;\r\n private layerGroups: LayerGroupCollections;\r\n private styleFactory: IStyleFactory;\r\n //private herMask: IMapAreaMask;\r\n private infoPopup: MapFeatureInfo;\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 layerGroupFactory: LayerGroupFactory;\r\n private boundsLoaderBehaviour: ILoaderExtentsBehaviour;\r\n private mapContextMenu: IMapContextMenu;\r\n private resourcefactory: IResourceFactory;\r\n private downloadPng: DownloadMapPng;\r\n private featureLoader: IFeatureLoader;\r\n private featureAdd: IFeatureAdd;\r\n private mapFilter: MapFilters;\r\n private layerConfigFactory: DefaultLayerConfigurationFactory;\r\n private mousePosition: MousePosition;\r\n private dragPan: IDragPan; \r\n\r\n constructor(\r\n private _mapElementId: string,\r\n private _recordType: string,\r\n private _recordSubType: string,\r\n private _maxRecordCount: 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 this.layerConfigFactory = new DefaultLayerConfigurationFactory();\r\n this.vectorLayerGroupFactory = new VectorLayerGroupFactory();\r\n this.layerGroupFactory = new LayerGroupFactory(this.vectorLayerGroupFactory, null);\r\n this.baseLayerFactory = new ExmoorBaseMapping_27700();\r\n this.featureLoader = new GeoJsonFeatureLoader();\r\n\r\n //this.featureAdd = new FeatureAddSmallGeomsAsPoint(4.5);\r\n this.featureAdd = new FeatureAdd();\r\n\r\n this.mapFactory = new MapFactory();\r\n this.logger = new Logger();\r\n this.styleFactory = new HbsmrStyleFactory();\r\n this.resourcefactory = new HbsmrResourcefactory(this.mappingTextPack);\r\n\r\n this.mapFilter = new MapFilters();\r\n this.mapFilter.OgcFilter = new OgcMapFilter();\r\n\r\n this.mfOptions = DefaultMapOptions.GetDefaultOptions(this._mapElementId, \"SingleRecordMap27700\");\r\n this.mfOptions.mapZoom = 16;\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 //clear the store so we don't remember the layers etc?\r\n this.mapStore.clear();\r\n\r\n this.boundsLoaderBehaviour = new BoundsLoaderExtentsBehaviour(this.logger);\r\n //this.herMask = new ExmoorHerBoundary();\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.dragPan = new DragPan(this.map, 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: false,\r\n rememberActivePanel: true\r\n });\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.mousePosition = new MousePosition(this.map, this.mappingTextPack);\r\n\r\n //hide the gazetteer, temp fix possibly pending redoing of the html\r\n $(\"#slide-panel-btn-search\").hide();\r\n\r\n this.ctrlZoomHandler();\r\n\r\n this.initialised = true;\r\n }\r\n\r\n private ctrlZoomHandler = (): void => {\r\n let z = new MouseWheelZoom(this.map, this.mappingTextPack);\r\n $(\"#slide-panel,#slide-headers,.ol-control,#mouse-position,.ol-scale-line\").on('wheel', function (e) {\r\n e.preventDefault();\r\n });\r\n }\r\n\r\n private getLayerGroupConfig = (): Array => {\r\n let url: string = \"/api/MapServer/Hbsmr\";\r\n\r\n let layerGroupConfig: Array = [\r\n //THE SELECTED RECORD \r\n {\r\n ref: \"SelectedRecord\",\r\n displayName: \"Selected record\",\r\n type: this._recordType,\r\n subType: this._recordSubType,\r\n strategy: VectorLayerStrategy.OgcFilterAll,\r\n zoomToDataBounds: ZoomToDataBounds.Always,\r\n useSelectedStyle: true,\r\n visibleOnLoad: true,\r\n displayInLayerSwitcher: true,\r\n url: url,\r\n queryable:false,\r\n legend: { polygon: false, line: false },\r\n restrictMapExtentToDataBounds: true,\r\n filterOptions: {\r\n filterType: FilterType.Ogc,\r\n filters: [\"Uid\"],\r\n },\r\n layers: [\r\n {\r\n layerName: `${this.getLayerNameFromType()}PolygonsWFS`,\r\n minZoom: 1,\r\n maxZoom: 19\r\n }\r\n ,\r\n {\r\n layerName: `${this.getLayerNameFromType()}LinesWFS`,\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: `${this.getLayerNameFromType()}PointsWFS`,\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n ]\r\n },\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Monument, null, { visibleOnFirstLoad: false }),\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Event), \r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.ScheduledMonument),\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.ListedBuilding),\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.PrincipalArchaeologicalLandscape),\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.LocalList),\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.ConservationArea),\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.RegisteredParksAndGardens)\r\n\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 }\r\n\r\n public getLayerNameFromType = (): string => {\r\n let name: string = null;\r\n let recordType = this._recordType;\r\n let recordSubType = this._recordSubType;\r\n\r\n switch (recordType) {\r\n case ExmoorRecordType.Monument:\r\n name = \"Monument\"\r\n break;\r\n\r\n case ExmoorRecordType.Event:\r\n name = \"Event\"\r\n break;\r\n\r\n case ExmoorRecordType.Designation:\r\n name = \"Designation\"\r\n break;\r\n }\r\n\r\n\r\n if (name === null && recordSubType !== null) {\r\n switch (recordSubType) {\r\n\r\n case ExmoorRecordSubType.ListedBuilding:\r\n name = \"ListedBuilding\";\r\n break;\r\n\r\n case ExmoorRecordSubType.ScheduledMonument:\r\n name = \"ScheduledMonument\";\r\n break;\r\n\r\n case ExmoorRecordSubType.RegisteredParksAndGardens:\r\n name = \"DesignedLandscape\";\r\n break;\r\n\r\n case ExmoorRecordSubType.ConservationArea:\r\n name = \"ConservationAreas\";\r\n break; \r\n }\r\n }\r\n return name;\r\n }\r\n}\r\n\r\n","import {\r\n IMappingTextPack,\r\n MappingTextPack\r\n} 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}","// 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\t81: 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__(7560)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","mapFileUrl","layerConfig","recordType","recordSubType","opts","ExmoorRecordType","Monument","Event","ExmoorRecordSubType","ListedBuilding","ScheduledMonument","RegisteredParksAndGardens","ConservationArea","LocalList","PrincipalArchaeologicalLandscape","displayName","ref","type","strategy","VectorLayerStrategy","Bbox","url","wfsParams","paramSource","maxFeatureCount","visibleOnFirstLoad","alwaysLoadOnZoom","layers","layerName","minZoom","maxZoom","Designation","subType","urlParams","recsubtypecode","legend","line","point","WfsParamSourceMapServer","WfsBboxAsWktRequestParams","srsName","DefaultLayerConfigurationFactory","GetDefaultOptions","mapElementId","mapStoreKey","opt","MapOptions","bingApiKey","$","data","esdmOsmApiKey","baseMaps","ExmoorBaseLayerTypes","ExmoorOS","ExmoorAerial","defaultBaseMap","enableBoundsTracking","zoomToNearestBounds","maxZoomToBounds","mapZoom","extent","mapCentre","displayProjection","dataProjection","dragRotateAndZoom","DefaultMapOptions","BaseLayerType","defs","register","olProj","get","setExtent","GetBaseLayerByType","baseLayerType","this","roadLyr","visible","source","layer","format","version","matrixSet","projection","tileGrid","origin","resolutions","matrixIds","style","wrapX","attributions","Date","getFullYear","setVisible","leisureLyr","DualBaseLayerWithResolutionSwitch","lyr","urls","params","LAYERS","TILED","FORMAT","SRS","tileSize","BaseLayer","BaseLayerFactory_27700","ExmoorBaseMapping_27700","_mappingTextPack","items","Array","push","recordTypeCode","recordSubTypeCode","heading","groupByRecordSubTypeCode","toLowerCase","mapToIRecordTypeInfoClick","featureProperties","layerGroup","id","uid","name","rectype","recsubtype","getHeading","getInfoClickHtmlTemplate","recordTypeInfoClick","layerType","controller","goToDetails","centreOnMap","RecordTypeResource","HbsmrRecordTypeResource","getRecordTypeResource","HbsmrResourcefactory","getStyle","PrincipalArchaeologicalLandscaps","getSelectedStyle","SelectedRecord","CommonStyle","fillColour","fill","color","stroke","width","image","radius","points","rotation","angle","radius2","HbsmrStyleFactory","fetch","Promise","resolve","reject","getJSON","response","fail","HbsmrIdentity","HbsmrUser","MapBase","mappingTextPack","user","isAuthenticated","filterMapLayers","layerGroupConfig","document","ready","printOptions","PrintMap","ele","length","then","e","TextPackLoader","load","textpacks","MapSingleRecord","mapping","_mapElementId","_recordType","_recordSubType","_maxRecordCount","initialised","loadingCount","init","layerConfigFactory","vectorLayerGroupFactory","VectorLayerGroupFactory","layerGroupFactory","LayerGroupFactory","baseLayerFactory","featureLoader","GeoJsonFeatureLoader","featureAdd","FeatureAdd","mapFactory","MapFactory","logger","Logger","styleFactory","resourcefactory","mapFilter","MapFilters","OgcFilter","OgcMapFilter","mfOptions","layerGroups","getLayerGroups","getLayerGroupConfig","layerGroupCollection","mapStore","MapViewStore","clear","boundsLoaderBehaviour","BoundsLoaderExtentsBehaviour","mapContextMenu","MapContextMenu","vectorLayerSourceFactory","VectorLayerSourceFactory","map","instance","dragPan","DragPan","infoPopup","MapFeatureInfo","ls","MapLayerSwitcher","baseLayers","showList","showOpenPanelByDefault","rememberActivePanel","isPrintMap","setMap","downloadPng","DownloadMapPng","mousePosition","MousePosition","hide","ctrlZoomHandler","MouseWheelZoom","on","preventDefault","OgcFilterAll","zoomToDataBounds","ZoomToDataBounds","Always","useSelectedStyle","visibleOnLoad","displayInLayerSwitcher","queryable","polygon","restrictMapExtentToDataBounds","filterOptions","filterType","FilterType","Ogc","filters","getLayerNameFromType","useAccordion","expandedOnFirstLoad","layerGroupConfigs","TextPacks","MappingTextPack","all","results","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","g","globalThis","Function","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}