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,IACH,oBAAXsC,QAA0BA,OAAOC,aAC1CvB,OAAOa,eAAe7B,EAASsC,OAAOC,YAAa,CAAEC,MAAO,WAE7DxB,OAAOa,eAAe7B,EAAS,aAAc,CAAEwC,OAAO,GAAO,E,MCA9D,IAAIC,EAAkB,CACrB,IAAK,GAaN7C,EAAoBS,EAAEU,EAAK2B,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4BrR,KACvD,IAGIsO,EAAU6C,GAHTnC,EAAUsC,EAAaC,GAAWvR,EAGhBqP,EAAI,EAC3B,GAAGL,EAASwC,MAAMnN,GAAgC,IAAxB6M,EAAgB7M,KAAa,CACtD,IAAIiK,KAAYgD,EACZjD,EAAoBgC,EAAEiB,EAAahD,KACrCD,EAAoBQ,EAAEP,GAAYgD,EAAYhD,IAGhD,GAAGiD,EAAS,IAAIxC,EAASwC,EAAQlD,EAClC,CAEA,IADGgD,GAA4BA,EAA2BrR,GACrDqP,EAAIL,EAASM,OAAQD,IACzB8B,EAAUnC,EAASK,GAChBhB,EAAoBgC,EAAEa,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBlC,EAASK,IAAM,EAEhC,OAAOhB,EAAoBS,EAAEC,EAAO,EAGjC0C,EAAqBpE,KAAyB,mBAAIA,KAAyB,oBAAK,GACpFoE,EAAmBC,QAAQN,EAAqBrJ,KAAK,KAAM,IAC3D0J,EAAmB7N,KAAOwN,EAAqBrJ,KAAK,KAAM0J,EAAmB7N,KAAKmE,KAAK0J,G,KC7CvF,IAAIE,EAAsBtD,EAAoBS,OAAEN,EAAW,CAAC,MAAM,IAAOH,EAAoB,QAC7FsD,EAAsBtD,EAAoBS,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/MapBase.ts","webpack://[name]/./Scripts/SearchMap.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 { FeatureAdd } from \"esdm-map/dist/layers/vector/sources/loaders/FeatureAdd\";\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\n\r\nimport { IMappingTextPack } from \"esdm-map/dist/resources/MappingTextPack\";\r\nimport { MousePosition } from \"esdm-map/dist/map/controls/MousePosition\";\r\nimport { GeoNames } from \"esdm-map/dist/gazetteer/geonames\";\r\nimport { IStyleFactory } from \"esdm-map/dist/layers/vector/styles/IStyleFactory\";\r\nimport { IVectorLayerSourceFactory } from \"esdm-map/dist/layers/vector/sources/interfaces\";\r\nimport { VectorLayerSourceFactory } from \"esdm-map/dist/layers/vector/sources\";\r\nimport { IBaseLayerFactory } from \"esdm-map/dist/baselayers/interfaces/IBaseLayerFactory\";\r\nimport { IVectorLayerGroup } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroup\";\r\nimport { ZoomToDataBounds } from \"esdm-map/dist/layers/vector/ZoomToDataBounds\";\r\nimport { VectorLayerStrategy } from \"esdm-map/dist/layers/vector/VectorLayerStrategy\";\r\nimport { WfsParamSourceMapServer } from \"esdm-map/dist/layers/vector/sources/wfs\";\r\nimport {\r\n MapOptions,\r\n IMap,\r\n MapLayerSwitcher,\r\n IMapAreaMask,\r\n ILogger,\r\n IResourceFactory,\r\n IMapFactory,\r\n BaseLayerFactory_3857,\r\n MapFactory,\r\n Logger,\r\n BaseLayerType,\r\n MiniMapsForLists,\r\n\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 { TextPacks, TextPackLoader } from \"./TextPackLoader\";\r\nimport { MapBase } from \"./MapBase\";\r\nimport { HbsmrUser, HbsmrIdentity } from \"./HbsmrUser\";\r\nimport { IlayerGroupCollectionConfig } from \"esdm-map/dist/layers/groups/IlayerGroupCollectionConfig\";\r\nimport { LayerGroupCollections } from \"esdm-map/dist/layers/groups/LayerGroupCollections\";\r\nimport { ExmoorBaseLayerTypes, ExmoorBaseMapping_27700 } from \"./ExmoorBaseMapping_27700\";\r\nimport { MapToolTip, ToolTipOptions } from \"esdm-map/dist/map/tooltip\";\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 didLoadMap = false;\r\n\r\n let ele = $(\"#theMap\"); \r\n let maxFeatureCount: number = ele.data(\"max-feature-count\");\r\n\r\n let data = $(\"#searchMapData\");\r\n let searchString: string = data.data(\"search-string\");\r\n let searchMode: string = data.data(\"search-mode\");\r\n \r\n let printOptions: PrintMap = new PrintMap();\r\n\r\n if (!printOptions.isPrintMap) { \r\n $(window).bind('resize', function () { resizeMap(); });\r\n } \r\n\r\n let loadMap = function () {\r\n HbsmrIdentity.fetch().then(function (e) {\r\n let user = e;\r\n let init = function (textpacks: TextPacks) {\r\n let map = new SearchMap(\"theMap\", searchString, searchMode, maxFeatureCount, printOptions, textpacks.mapping, user);\r\n didLoadMap = true;\r\n }\r\n TextPackLoader.load().then(init);\r\n }); \r\n }\r\n\r\n 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 - fHeight - 18;\r\n if (height <= 400) {\r\n height = 400;\r\n }\r\n $('#mapContainer').height(height);\r\n };\r\n\r\n if (printOptions.isPrintMap) { \r\n loadMap();\r\n }\r\n else {\r\n let bingAPIKey: string = ele.data(\"bing-api-key\");\r\n let esdmOsmApiKey: string = ele.data(\"esdm-osm-api-key\"); \r\n let baseLayerFactory: IBaseLayerFactory = new ExmoorBaseMapping_27700(); \r\n let miniMaps = new MiniMapsForLists(ExmoorBaseLayerTypes.ExmoorOS, bingAPIKey, esdmOsmApiKey, baseLayerFactory, \"EPSG:27700\", \"EPSG:27700\");\r\n \r\n //only show the map when the map tab is visible\r\n $('a[data-bs-toggle=\"tab\"]').on('shown.bs.tab', function (e) {\r\n let target = $(e.target).attr(\"href\") // activated tab\r\n if (target === \"#tabMap\") {\r\n if (didLoadMap === false) {\r\n loadMap();\r\n }\r\n } else if (target === \"#tabList\" && didLoadMap === true) {\r\n // If the map has loaded it means the user has visited the 'Map' tab, they could have possibly also put the map into fullscreen mode\r\n // if they have then we need to redraw/refresh the miniMaps on the search results list, as they don't refresh correctly after exiting\r\n // the fullscreen mode\r\n miniMaps.refreshMiniMaps();\r\n }\r\n });\r\n }\r\n});\r\n\r\nexport class SearchMap extends MapBase {\r\n\r\n private map: IMap;\r\n private mfOptions: MapOptions;\r\n private mapStore: IMapViewStore;\r\n private styleFactory: IStyleFactory;\r\n private ls: MapLayerSwitcher;\r\n private vectorLayerGroups: Array;\r\n private infoPopup: MapFeatureInfo;\r\n private initialised = false;\r\n //private herMask: IMapAreaMask;\r\n private geoNames: GeoNames;\r\n private logger: ILogger;\r\n private vectorLayerSourceFactory: IVectorLayerSourceFactory;\r\n private baseLayerFactory: IBaseLayerFactory;\r\n private mapFactory: IMapFactory;\r\n private vectorLayerGroupFactory: IVectorLayerGroupFactory;\r\n private boundsLoaderBehaviour: ILoaderExtentsBehaviour;\r\n private mapContextMenu: IMapContextMenu;\r\n private resourcefactory: IResourceFactory;\r\n private downloadPng: DownloadMapPng;\r\n private extentsNavigation: ExtentsNavigation;\r\n private gridRefFinder: GridRef;\r\n private mousePosition: MousePosition;\r\n private featureLoader: IFeatureLoader;\r\n private featureAdd: IFeatureAdd;\r\n private mapFilter: MapFilters;\r\n private layerConfigFactory: DefaultLayerConfigurationFactory;\r\n private layerGroups: LayerGroupCollections;\r\n private layerGroupFactory: LayerGroupFactory;\r\n private mapToolTip: MapToolTip;\r\n\r\n constructor(\r\n private _mapElementId: string, \r\n private _searchString: string,\r\n private _searchMode: string,\r\n private _maxFeatureCount: number,\r\n public printOptions: IPrintOptions,\r\n mappingTextPack: IMappingTextPack,\r\n user:HbsmrUser)\r\n {\r\n super(mappingTextPack, user);\r\n this.init();\r\n }\r\n\r\n private init = () => {\r\n if (this.initialised) {\r\n return;\r\n }\r\n \r\n this.layerConfigFactory = new DefaultLayerConfigurationFactory();\r\n this.vectorLayerGroupFactory = new VectorLayerGroupFactory();\r\n this.layerGroupFactory = new LayerGroupFactory(this.vectorLayerGroupFactory, null);\r\n this.mapFilter = new MapFilters();\r\n this.mapFilter.OgcFilter = new OgcMapFilter();\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.boundsLoaderBehaviour = new BoundsLoaderExtentsBehaviour(this.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, \"SearchMap27700\");\r\n this.mfOptions.enableBoundsTracking = false;\r\n //zoom & centre determines the start position of the map\r\n this.mfOptions.mapZoom = 3;\r\n this.mfOptions.mapCentre = [260345, 841798];\r\n \r\n \r\n this.layerGroups = this.layerGroupFactory.getLayerGroups(this.getLayerGroupConfig(), this.styleFactory);\r\n this.mfOptions.layerGroupCollection = this.layerGroups;\r\n\r\n this.mapStore = new MapViewStore(this.mfOptions.mapStoreKey);\r\n //this.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\r\n this.infoPopup = new MapFeatureInfo(this.map, this.resourcefactory.getRecordTypeResource(), this.mappingTextPack);\r\n this.ls = new MapLayerSwitcher(this.map, this.mapStore, this.styleFactory, this.map.baseLayers, this.layerGroups, this.mappingTextPack, {\r\n showList: false,\r\n showOpenPanelByDefault: !this.printOptions.isPrintMap,\r\n rememberActivePanel: true\r\n });\r\n this.geoNames = new GeoNames(this.map, this.mappingTextPack);\r\n\r\n if (this.printOptions.isPrintMap) {\r\n this.printOptions.setMap(this.map);\r\n }\r\n this.downloadPng = new DownloadMapPng(this.map, this.mappingTextPack);\r\n this.gridRefFinder = new GridRef(this.map, this.mappingTextPack, this.logger);\r\n this.extentsNavigation = new ExtentsNavigation(this.map, this.logger, this.mappingTextPack);\r\n this.mousePosition = new MousePosition(this.map, this.mappingTextPack);\r\n\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 private getLayerGroupConfig = (): Array => {\r\n let self = this;\r\n let layerGroupConfig: Array = [\r\n {\r\n type: ExmoorRecordType.Monument,\r\n displayName: 'Monuments ',\r\n strategy: VectorLayerStrategy.All,\r\n url: \"/api/MapServer/Hbsmr\",\r\n wfsParams: new WfsParamSourceMapServer(null, { srsName: \"EPSG:27700\" }),\r\n legend: { point: false, line: false },\r\n zoomToDataBounds: ZoomToDataBounds.Always,\r\n allowZoomToLoadedDataBounds : false,\r\n alwaysLoadOnZoom: false,\r\n //maxFeatureCount: this._maxFeatureCount, \r\n maxFeatureCount: 10000, // allow lots!\r\n urlParams: {\r\n searchstring: this._searchString,\r\n searchmode: this._searchMode\r\n }, \r\n layers: [\r\n {\r\n layerName: \"MonumentPolygonsWFS_Search\",\r\n minZoom: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentLinesWFS_Search\",\r\n minZoom: 7,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentPointsWFS_Search\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentLinesAsPointsWFS_Search\",\r\n minZoom: 1,\r\n maxZoom: 6\r\n },\r\n {\r\n layerName: \"MonumentPolygonsAsPointsWFS_Search\",\r\n minZoom: 1,\r\n maxZoom: 6\r\n }\r\n ]\r\n }, \r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Event), \r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.ScheduledMonument), \r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.ListedBuilding),\r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.PrincipalArchaeologicalLandscape),\r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.LocalList),\r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.ConservationArea),\r\n self.layerConfigFactory.layerConfig(ExmoorRecordType.Designation, ExmoorRecordSubType.RegisteredParksAndGardens)\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}","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\t386: 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__(6501)))\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","didLoadMap","ele","searchString","searchMode","printOptions","PrintMap","isPrintMap","window","bind","fHeight","height","Math","min","offset","top","resizeMap","loadMap","then","e","TextPackLoader","load","textpacks","SearchMap","mapping","bingAPIKey","baseLayerFactory","MiniMapsForLists","on","target","attr","refreshMiniMaps","_mapElementId","_searchString","_searchMode","_maxFeatureCount","initialised","init","layerConfigFactory","vectorLayerGroupFactory","VectorLayerGroupFactory","layerGroupFactory","LayerGroupFactory","mapFilter","MapFilters","OgcFilter","OgcMapFilter","featureLoader","GeoJsonFeatureLoader","featureAdd","FeatureAdd","mapFactory","MapFactory","logger","Logger","boundsLoaderBehaviour","BoundsLoaderExtentsBehaviour","styleFactory","resourcefactory","mfOptions","layerGroups","getLayerGroups","getLayerGroupConfig","layerGroupCollection","mapStore","MapViewStore","mapContextMenu","MapContextMenu","vectorLayerSourceFactory","VectorLayerSourceFactory","map","instance","infoPopup","MapFeatureInfo","ls","MapLayerSwitcher","baseLayers","showList","showOpenPanelByDefault","rememberActivePanel","geoNames","GeoNames","setMap","downloadPng","DownloadMapPng","gridRefFinder","GridRef","extentsNavigation","ExtentsNavigation","mousePosition","MousePosition","mapToolTip","MapToolTip","ToolTipProvider","ToolTipOptions","self","All","zoomToDataBounds","ZoomToDataBounds","Always","allowZoomToLoadedDataBounds","searchstring","searchmode","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","length","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","forEach","__webpack_exports__"],"sourceRoot":""}