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C,EAAUqC,EAAaC,GAAW3R,EAGhB0P,EAAI,EAC3B,GAAGL,EAASuC,MAAMvN,GAAgC,IAAxBiN,EAAgBjN,KAAa,CACtD,IAAIyK,KAAY4C,EACZ7C,EAAoB4B,EAAEiB,EAAa5C,KACrCD,EAAoBK,EAAEJ,GAAY4C,EAAY5C,IAGhD,GAAG6C,EAAS,IAAIvC,EAASuC,EAAQ9C,EAClC,CAEA,IADG4C,GAA4BA,EAA2BzR,GACrD0P,EAAIL,EAASlH,OAAQuH,IACzB6B,EAAUlC,EAASK,GAChBb,EAAoB4B,EAAEa,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBjC,EAASK,IAAM,EAEhC,OAAOb,EAAoBM,EAAEC,EAAO,EAGjCyC,EAAqBC,KAAyB,mBAAIA,KAAyB,oBAAK,GACpFD,EAAmBE,QAAQP,EAAqBvJ,KAAK,KAAM,IAC3D4J,EAAmBjO,KAAO4N,EAAqBvJ,KAAK,KAAM4J,EAAmBjO,KAAKqE,KAAK4J,G,KC7CvF,IAAIG,EAAsBnD,EAAoBM,OAAEH,EAAW,CAAC,MAAM,IAAOH,EAAoB,QAC7FmD,EAAsBnD,EAAoBM,EAAE6C,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/MainMap.ts","webpack://[name]/./Scripts/MapBase.ts","webpack://[name]/./Scripts/TextPackLoader.ts","webpack://[name]/external var \"bootstrap\"","webpack://[name]/external var \"jQuery\"","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 { 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 { FeatureAdd } from \"esdm-map/dist/layers/vector/sources/loaders/FeatureAdd\";\r\nimport { MapListRecordsInViewport } from \"esdm-map/dist/map/MapListRecordsInViewport\";\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 { GeoLocation } from \"esdm-map/dist/map/geolocation/geolocation\";\r\nimport { IMappingTextPack } from \"esdm-map/dist/resources/MappingTextPack\";\r\nimport { MousePosition } from \"esdm-map/dist/map/controls/MousePosition\";\r\nimport { OsOpenNames } from \"esdm-map/dist/gazetteer/os/OsOpenNames\";\r\nimport { MapViewSettingsUrlProvider } from \"esdm-map/dist/map/store/MapViewSettingsUrlProvider\";\r\nimport { IMapViewPermaLink } from \"esdm-map/dist/map/Tools/IMapViewPermaLink\";\r\nimport { MapViewPermaLink } from \"esdm-map/dist/map/Tools/MapViewPermaLink\";\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 Style from \"ol/style/Style\";\r\nimport Fill from \"ol/style/Fill\";\r\nimport TextStyle from \"ol/style/Text\";\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 MapFactory,\r\n Logger,\r\n MapFeatureInfo\r\n} from \"esdm-map\";\r\n\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 { TextPackLoader, TextPacks } from \"./TextPackLoader\";\r\nimport { HbsmrIdentity, HbsmrUser } from \"./HbsmrUser\";\r\nimport { MapBase } from \"./MapBase\";\r\nimport { MapToolTip, ToolTipOptions } from \"esdm-map/dist/map/tooltip\";\r\nimport { IDragPan } from \"esdm-map/dist/map/controls/Interfaces/IDragPan\";\r\nimport { DragPan } from \"esdm-map/dist/map/controls/DragPan\";\r\nimport { IlayerGroupCollectionConfig } from \"esdm-map/dist/layers/groups/IlayerGroupCollectionConfig\";\r\nimport { LayerGroupCollections } from \"esdm-map/dist/layers/groups/LayerGroupCollections\";\r\nimport { ExmoorBaseMapping_27700 } from \"./ExmoorBaseMapping_27700\";\r\nimport { FeatureAddSmallGeomsAsPoint } from \"esdm-map/dist/layers/vector/sources/loaders\";\r\nimport { MapEvent } from \"ol\";\r\nimport { METERS_PER_UNIT } from \"ol/proj/Units\";\r\nimport { Tooltip } from \"bootstrap\";\r\n\r\nimport \"../wwwroot/css/ol.css\";\r\nimport \"../wwwroot/css/ol3-contextmenu.css\";\r\nimport \"../node_modules/ol-ext/control/Swipe.css\";\r\n\r\nimport WMTS, { optionsFromCapabilities } from 'ol/source/WMTS';\r\nimport WMTSCapabilities from 'ol/format/WMTSCapabilities';\r\n\r\n\r\n$(function () { \r\n\r\n //const parser = new WMTSCapabilities();\r\n\r\n //fetch('https://ogc.apps.midgard.airbusds-cint.com/apgb/wms?guid=71ea1cbf-162c-46f0-8aca-1a0d786e481f&request=getcapabilities')\r\n // .then(function (response) {\r\n // return response.text();\r\n // })\r\n // .then(function (text) {\r\n // debugger;\r\n // const result = parser.read(text);\r\n // const options = optionsFromCapabilities(result, {\r\n // layer: 'Outdoor_27700',\r\n // matrixSet: 'EPSG:27700',\r\n // });\r\n\r\n // var x = 2;\r\n // });\r\n\r\n var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle=\"tooltip\"]'))\r\n var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {\r\n return new Tooltip(tooltipTriggerEl)\r\n }) \r\n let printOptions: PrintMap = new PrintMap();\r\n\r\n if (!printOptions.isPrintMap) { \r\n resizeMap();\r\n $(window).bind('resize', function () { resizeMap(); });\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\r\n\r\n\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 //if (e) {\r\n // console.log(e.userId);\r\n //} else {\r\n // console.log(\"401 - UnAuthorised\");\r\n //}\r\n loadMap(e);\r\n });\r\n } \r\n\r\n function loadMap(user: HbsmrUser) {\r\n let maxFeatureCount: number = ele.data(\"max-feature-count\");\r\n let init = function (textpacks: TextPacks) {\r\n let map = new MainMap(\"theMap\", maxFeatureCount, printOptions, textpacks.mapping, user);\r\n }\r\n TextPackLoader.load().then(init);\r\n }\r\n\r\n});\r\n\r\nexport class MainMap extends MapBase {\r\n \r\n private mfOptions: MapOptions;\r\n public map: IMap;\r\n private mapStore: IMapViewStore;\r\n private ls: MapLayerSwitcher;\r\n private infoPopup: MapFeatureInfo;\r\n private initialised: boolean = false;\r\n private layerGroups: LayerGroupCollections;\r\n private styleFactory: IStyleFactory;\r\n //private herMask: IMapAreaMask;\r\n private geoNames: GeoNames;\r\n private gridRefFinder: GridRef;\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 recordList: MapListRecordsInViewport;\r\n private geoLocation: GeoLocation;\r\n private extentsNavigation: ExtentsNavigation;\r\n private layerConfigFactory: DefaultLayerConfigurationFactory;\r\n private mapViewSettingProvider: MapViewSettingsUrlProvider;\r\n private mapListRecordItem: IMapListRecordItem;\r\n private mapViewPermaLink: IMapViewPermaLink;\r\n private mousePosition: MousePosition;\r\n private mapToolTip: MapToolTip;\r\n private dragPan: IDragPan;\r\n\r\n public constructor(\r\n public mapElementId: string, \r\n public 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 = (): void => {\r\n if (!this.initialised) {\r\n //strip-loader should take this out for production\r\n console.log(\"Initialising main map\"); \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 HighlandBaseMapping_3857(); \r\n this.baseLayerFactory = new ExmoorBaseMapping_27700(); \r\n \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.mapFilter = new MapFilters();\r\n this.mapFilter.OgcFilter = new OgcMapFilter();\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.mfOptions = DefaultMapOptions.GetDefaultOptions(this.mapElementId, \"MainMap27700\"); \r\n this.layerGroups = this.layerGroupFactory.getLayerGroups(this.getLayerGroupConfig(), this.styleFactory);\r\n this.mfOptions.layerGroupCollection = this.layerGroups;\r\n \r\n this.mapViewSettingProvider = new MapViewSettingsUrlProvider();\r\n this.mapStore = new MapViewStore(this.mfOptions.mapStoreKey, this.mapViewSettingProvider);\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 \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\r\n //let mapScale = (): number => {\r\n // const unit = this.map.olMap.getView().getProjection().getUnits();\r\n // const resolution = this.map.olMap.getView().getResolution();\r\n // const inchesPerMetre = 39.37;\r\n // //const dpi = 25.4 / 0.28;\r\n // const dpi = 72; //mapserver uses 72\r\n // return resolution * METERS_PER_UNIT[unit] * inchesPerMetre * dpi;\r\n //}\r\n\r\n //for debug\r\n //this.map.olMap.on('moveend', function (e: MapEvent) {\r\n // let res = e.map.getView().getResolution();\r\n // console.log(\"Map resolution:\" + res);\r\n // console.log(\"Map scale:\" + mapScale());\r\n //});\r\n\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 {\r\n showOpenPanelByDefault: !this.printOptions.isPrintMap,\r\n rememberActivePanel: true,\r\n useBaseLayerSlider: false,\r\n baseLayerSliderPosition: 0.6\r\n });\r\n this.gridRefFinder = new GridRef(this.map, this.mappingTextPack, this.logger);\r\n this.geoNames = new GeoNames(this.map, this.mappingTextPack, 12); \r\n this.geoNames.locationPinStyle = new Style({\r\n text: new TextStyle({\r\n text: '\\uf3c5',\r\n font: 'normal 52px \"Font Awesome 6 Pro\"',\r\n textBaseline: 'bottom',\r\n fill: new Fill({\r\n color: '#ff0000'\r\n })\r\n })\r\n });\r\n\r\n if (this.printOptions.isPrintMap) { \r\n this.printOptions.setMap(this.map);\r\n setTimeout(()=> {\r\n this.map.olMap.updateSize();\r\n }, 0);\r\n } \r\n\r\n this.downloadPng = new DownloadMapPng(this.map, this.mappingTextPack);\r\n //this.mapListRecordItem = new HighlandMapListRecordItem(this.mappingTextPack);\r\n this.recordList = new MapListRecordsInViewport(this.map, this.mapStore, this.styleFactory, this.layerGroups.vectorLayerGroups, this.mappingTextPack, 14, this.mapListRecordItem);\r\n //this.geoLocation = new GeoLocation(this.map, 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.mapViewPermaLink = new MapViewPermaLink(this.map, this.mapViewSettingProvider, this.mappingTextPack, { activePanel: \"overlays\" });\r\n\r\n if (!('ontouchstart' in window)) {\r\n //add tooltip if not touch\r\n this.mapToolTip = new MapToolTip(this.map, new ToolTipProvider(), new ToolTipOptions(7));\r\n } \r\n\r\n this.initialised = true;\r\n }\r\n }\r\n\r\n private getLayerGroupConfig = (): Array => { \r\n\r\n let layerGroupConfig: Array = [\r\n this.layerConfigFactory.layerConfig(ExmoorRecordType.Monument,null, { visibleOnFirstLoad: true}),\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\r\n}\r\n\r\n\r\n\r\n\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 {\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}","module.exports = bootstrap;","module.exports = jQuery;","// 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\t854: 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__(8792)))\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","slice","call","document","querySelectorAll","map","tooltipTriggerEl","Tooltip","printOptions","PrintMap","resizeMap","fHeight","height","Math","min","window","offset","top","isPrintMap","bind","ele","length","then","e","user","init","textpacks","MainMap","mapping","TextPackLoader","load","mappingTextPack","initialised","console","log","layerConfigFactory","vectorLayerGroupFactory","VectorLayerGroupFactory","layerGroupFactory","LayerGroupFactory","baseLayerFactory","featureLoader","GeoJsonFeatureLoader","featureAdd","FeatureAddSmallGeomsAsPoint","mapFilter","MapFilters","OgcFilter","OgcMapFilter","mapFactory","MapFactory","logger","Logger","styleFactory","resourcefactory","mfOptions","layerGroups","getLayerGroups","getLayerGroupConfig","layerGroupCollection","mapViewSettingProvider","MapViewSettingsUrlProvider","mapStore","MapViewStore","boundsLoaderBehaviour","BoundsLoaderExtentsBehaviour","mapContextMenu","MapContextMenu","vectorLayerSourceFactory","VectorLayerSourceFactory","instance","dragPan","DragPan","infoPopup","MapFeatureInfo","ls","MapLayerSwitcher","baseLayers","showOpenPanelByDefault","rememberActivePanel","useBaseLayerSlider","baseLayerSliderPosition","gridRefFinder","GridRef","geoNames","GeoNames","locationPinStyle","text","font","textBaseline","setMap","setTimeout","olMap","updateSize","downloadPng","DownloadMapPng","recordList","MapListRecordsInViewport","vectorLayerGroups","mapListRecordItem","extentsNavigation","ExtentsNavigation","mousePosition","MousePosition","mapViewPermaLink","MapViewPermaLink","activePanel","mapToolTip","MapToolTip","ToolTipProvider","ToolTipOptions","layerGroupConfig","useAccordion","expandedOnFirstLoad","layerGroupConfigs","filterMapLayers","MapBase","isAuthenticated","TextPacks","MappingTextPack","all","results","module","exports","bootstrap","jQuery","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","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","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","value","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","__webpack_exports__"],"sourceRoot":""}