{"version":3,"sources":["webpack://[name]/webpack/bootstrap","webpack://[name]/./Scripts/TextPackLoader.ts","webpack://[name]/./Scripts/HbsmrUser.ts","webpack://[name]/./Scripts/MapBase.ts","webpack://[name]/./Scripts/MainMap.ts","webpack://[name]/external \"jQuery\"","webpack://[name]/./wwwroot/css/ol.css","webpack://[name]/./Scripts/DerbyshireMapListRecordItem.ts","webpack://[name]/./Scripts/DerbyshireRecordTypes.ts","webpack://[name]/./Scripts/HbsmrStyleFactory.ts","webpack://[name]/./Scripts/HbsmrResourceFactory.ts","webpack://[name]/./Scripts/HbsmrRecordTypeResource.ts","webpack://[name]/./Scripts/DefaultLayerConfigurationFactory.ts","webpack://[name]/./Scripts/DefaultMapOptions.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","mapping","TextPacks","load","MappingTextPack","Promise","all","then","results","TextPackLoader","fetch","resolve","reject","$","getJSON","response","fail","HbsmrIdentity","HbsmrUser","mappingTextPack","user","isAuthenticated","filterMapLayers","layerGroupConfig","MapBase","tooltip","printOptions","PrintMap","resizeMap","fHeight","height","Math","min","offset","top","isPrintMap","addEventListener","debounce","ele","e","maxFeatureCount","textpacks","MainMap","mapElementId","initialised","init","console","log","layerConfigFactory","DefaultLayerConfigurationFactory","vectorLayerGroupFactory","VectorLayerGroupFactory","layerGroupFactory","LayerGroupFactory","baseLayerFactory","BaseLayerFactory_3857","featureLoader","GeoJsonFeatureLoader","featureAdd","FeatureAddSmallGeomsAsPoint","mapFilter","MapFilters","OgcFilter","OgcMapFilter","mapFactory","MapFactory","logger","Logger","styleFactory","HbsmrStyleFactory","resourcefactory","HbsmrResourcefactory","mfOptions","DefaultMapOptions","GetDefaultOptions","layerGroups","getLayerGroups","getLayerGroupConfig","layerGroupCollection","mapViewSettingProvider","MapViewSettingsUrlProvider","mapStore","MapViewStore","mapStoreKey","boundsLoaderBehaviour","BoundsLoaderExtentsBehaviour","mapContextMenu","MapContextMenu","vectorLayerSourceFactory","VectorLayerSourceFactory","map","instance","dragPan","DragPan","infoPopup","MapFeatureInfo","getRecordTypeResource","ls","MapLayerSwitcher","baseLayers","showOpenPanelByDefault","rememberActivePanel","gridRefFinder","GridRef","geoNames","GeoNames","setMap","downloadPng","DownloadMapPng","mapListRecordItem","DerbyshireMapListRecordItem","recordList","MapListRecordsInViewport","vectorLayerGroups","extentsNavigation","ExtentsNavigation","mousePosition","MousePosition","mapViewPermaLink","MapViewPermaLink","activePanel","navigator","msMaxTouchPoints","mapToolTip","MapToolTip","ToolTipProvider","ToolTipOptions","layerConfig","DerbyshireRecordType","Monument","Designation","DerbyshireRecordSubType","ScheduledMonument","ListedBuilding","RegisteredParkAndGarden","ConservationArea","AreaOfArchaeologicalInterest","WorldHeritageSiteBufferZone","WorldHeritageSite","ref","useAccordion","expandedOnFirstLoad","layerGroupConfigs","jQuery","controller","feature","val","recordType","toLowerCase","recordLinkHtml","this","uid","MapListRecordItem","getStyle","recordSubType","style","RegisteredParksAndGardens","WorldHeritageSiteBuffer","AreasOfArchaeologicalInterest","getSelectedStyle","SelectedRecord","CommonStyle","fillColour","fill","color","stroke","width","image","radius","pointfill","canvas","document","createElement","context","getContext","pixelRatio","olHas","DEVICE_PIXEL_RATIO","pattern","fillStyle","fillRect","beginPath","arc","PI","createPattern","setColor","points","rotation","angle","strokeStyle","lineWidth","moveTo","lineTo","x0","x1","radius2","_mappingTextPack","HbsmrRecordTypeResource","items","Array","recordTypeCode","recordSubTypeCode","heading","groupByRecordSubTypeCode","mapToIRecordTypeInfoClick","featureProperties","layerGroup","id","rectype","recsubtype","recsubtypecode","getHeading","getInfoClickHtmlTemplate","recordTypeInfoClick","layerType","goToDetails","centreOnMap","RecordTypeResource","mapFileUrl","opts","displayName","type","strategy","VectorLayerStrategy","Bbox","url","wfsParams","paramSource","visibleOnFirstLoad","alwaysLoadOnZoom","layers","layerName","minZoom","maxZoom","subType","urlParams","legend","line","point","WfsParamSourceMapServer","srsName","opt","MapOptions","bingApiKey","esdmOsmApiKey","baseMaps","BaseLayerType","OSM","BingOS","BingAerial","defaultBaseMap","enableBoundsTracking","mapZoom","extent","mapCentre","displayProjection","dataProjection","dragRotateAndZoom","zoomToNearestBounds"],"mappings":"wBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,O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C,WAiBd,OAhBAD,EAAIE,WAAatO,EAAE,IAAI8B,GAAgBxG,KAAK,gBAC5C8S,EAAIG,cAAgBvO,EAAE,IAAI8B,GAAgBxG,KAAK,oBAC/C8S,EAAII,SAAW,CAAC,EAAAC,cAAcC,IAAK,EAAAD,cAAcE,OAAQ,EAAAF,cAAcG,YACvER,EAAIS,eAAiB,EAAAJ,cAAcC,IACnCN,EAAIU,sBAAuB,EAC3BV,EAAItM,aAAeA,EACnBsM,EAAI9J,YAAcA,EAClB8J,EAAIW,QAAU,GACdX,EAAIT,QAAU,EACdS,EAAIR,QAAU,GACdQ,EAAIY,OAAS,EAAE,OAAQ,SAAU,MAAO,SACxCZ,EAAIa,UAAY,EAAE,OAAQ,SAC1Bb,EAAIc,kBAAoB,YACxBd,EAAIe,eAAiB,aACrBf,EAAIgB,mBAAoB,EACxBhB,EAAIiB,qBAAsB,EACnBjB,GAGf,EA3BA,GAAa,EAAAxK","file":"mainMap.bundle.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \tvar jsonpArray = window[\"webpackJsonp_name_\"] = window[\"webpackJsonp_name_\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([218,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\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}","\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 { DerbyshireRecordType, DerbyshireRecordSubType } from \"./DerbyshireRecordTypes\";\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 === DerbyshireRecordSubType.Shine || value.type === DerbyshireRecordType.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 { 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 { FeatureAddSmallGeomsAsPoint } from \"esdm-map/dist/layers/vector/sources/loaders\";\r\nimport { IStyleFactory } from \"esdm-map/dist/layers/vector/styles/IStyleFactory\";\r\nimport { IVectorLayerSourceFactory } from \"esdm-map/dist/layers/vector/sources/interfaces\";\r\nimport { VectorLayerSourceFactory } from \"esdm-map/dist/layers/vector/sources\";\r\nimport { IMapViewSettingProvider } from \"esdm-map/dist/map/store/IMapViewSettingsProvider\";\r\nimport { IBaseLayerFactory } from \"esdm-map/dist/baselayers/interfaces/IBaseLayerFactory\";\r\n\r\nimport {\r\n MapOptions,\r\n IMap,\r\n MapLayerSwitcher,\r\n IMapAreaMask,\r\n ILogger,\r\n IResourceFactory,\r\n IMapListRecordItem,\r\n IMapFactory,\r\n BaseLayerFactory_3857,\r\n MapFactory,\r\n Logger,\r\n MapFeatureInfo\r\n} from \"esdm-map\";\r\n\r\nimport \"../wwwroot/css/ol.css\";\r\nimport { HbsmrStyleFactory } from \"./HbsmrStyleFactory\";\r\nimport { HbsmrResourcefactory } from \"./HbsmrResourceFactory\";\r\nimport { DerbyshireRecordType, DerbyshireRecordSubType } from \"./DerbyshireRecordTypes\";\r\nimport { DefaultLayerConfigurationFactory } from \"./DefaultLayerConfigurationFactory\";\r\n//import { DerbyshireHerBoundary } from \"./DerbyshireHerBoundary\";\r\nimport { DefaultMapOptions } from \"./DefaultMapOptions\";\r\nimport { TextPackLoader, TextPacks } from \"./TextPackLoader\";\r\nimport { DerbyshireMapListRecordItem } from \"./DerbyshireMapListRecordItem\";\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 { debounce } from \"debounce\";\r\nimport { IlayerGroupCollectionConfig } from \"esdm-map/dist/layers/groups/IlayerGroupCollectionConfig\";\r\nimport { LayerGroupCollections } from \"esdm-map/dist/layers/groups/LayerGroupCollections\";\r\n\r\n$(function () { \r\n\r\n $('[data-bs-toggle=\"tooltip\"]').tooltip(); \r\n let printOptions: PrintMap = new PrintMap();\r\n\r\n if (!printOptions.isPrintMap) {\r\n resizeMap();\r\n window.addEventListener('resize', debounce(resizeMap, 250));\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 BaseLayerFactory_3857(); \r\n this.featureLoader = new GeoJsonFeatureLoader();\r\n this.featureAdd = new FeatureAddSmallGeomsAsPoint(4.5);\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, \"MainMap\"); \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 DerbyshireHerBoundary();\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 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 });\r\n this.gridRefFinder = new GridRef(this.map, this.mappingTextPack, this.logger);\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\r\n this.downloadPng = new DownloadMapPng(this.map, this.mappingTextPack);\r\n this.mapListRecordItem = new DerbyshireMapListRecordItem(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 && navigator.msMaxTouchPoints > 0)) {\r\n this.mapToolTip = new MapToolTip(this.map, new ToolTipProvider(), new ToolTipOptions(10));\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(DerbyshireRecordType.Monument), \r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.ScheduledMonument),\r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.ListedBuilding), \r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.RegisteredParkAndGarden),\r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.ConservationArea),\r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.AreaOfArchaeologicalInterest),\r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.WorldHeritageSiteBufferZone),\r\n this.layerConfigFactory.layerConfig(DerbyshireRecordType.Designation, DerbyshireRecordSubType.WorldHeritageSite)\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","module.exports = jQuery;","// extracted by mini-css-extract-plugin\nexport {};","import {\r\n IRecordTypeFeatureInfoClick,\r\n MapListRecordItem \r\n} from \"esdm-map\";\r\n\r\n\r\nexport class DerbyshireMapListRecordItem extends MapListRecordItem { \r\n protected recordLinkHtml(feature: IRecordTypeFeatureInfoClick): string {\r\n return `\r\n \r\n \r\n \r\n${feature.name}\r\n \r\n  \r\n `;\r\n }\r\n\r\n public controller = (feature: IRecordTypeFeatureInfoClick): string => {\r\n let val: string = \"\";\r\n\r\n switch (feature.recordType.toLowerCase()) {\r\n case \"mon\":\r\n val = \"Monument\";\r\n break;\r\n case \"event\":\r\n val = \"Event\";\r\n break;\r\n case \"desig\":\r\n val = \"Designation\";\r\n break;\r\n case \"cons\":\r\n val = \"Consultation\";\r\n break;\r\n }\r\n\r\n return val;\r\n }\r\n\r\n}","\r\nexport enum DerbyshireRecordType { \r\n Monument = \"mon\", \r\n Source = \"source\",\r\n Designation= \"desig\"\r\n} \r\n\r\nexport enum DerbyshireRecordSubType { \r\n ConservationArea = \"COA\",\r\n ListedBuilding = \"LB\",\r\n RegisteredParkAndGarden = \"RG\",\r\n ScheduledMonument = \"SAM\",\r\n WorldHeritageSite = \"WHS\",\r\n WorldHeritageSiteBufferZone = \"BZ\",\r\n AreaOfArchaeologicalInterest = \"AAI\"\r\n} \r\n","import {\r\n DerbyshireRecordType,\r\n DerbyshireRecordSubType\r\n} from \"./DerbyshireRecordTypes\";\r\nimport { IStyleFactory } from \"esdm-map/dist/layers/vector/styles/IStyleFactory\";\r\nimport Style, { StyleFunction } from \"ol/style/Style\";\r\nimport Fill from 'ol/style/Fill';\r\nimport Circle from 'ol/style/Circle';\r\nimport Stroke from 'ol/style/Stroke';\r\nimport RegularShape from 'ol/style/RegularShape';\r\nimport * as olHas from 'ol/has';\r\n\r\n\r\nexport class HbsmrStyleFactory implements IStyleFactory {\r\n\r\n public getStyle(recordType: string, recordSubType: string = null): Style[]\r\n {\r\n let style: Style[] = null;\r\n\r\n //try and resolve sub type first\r\n if (recordSubType !== null) {\r\n switch (recordSubType) { \r\n\r\n case DerbyshireRecordSubType.ListedBuilding:\r\n style = this.ListedBuilding();\r\n break;\r\n\r\n case DerbyshireRecordSubType.ScheduledMonument:\r\n style = this.ScheduledMonument();\r\n break;\r\n \r\n case DerbyshireRecordSubType.RegisteredParkAndGarden:\r\n style = this.RegisteredParksAndGardens();\r\n break;\r\n\r\n case DerbyshireRecordSubType.ConservationArea:\r\n style = this.ConservationArea();\r\n break;\r\n\r\n case DerbyshireRecordSubType.WorldHeritageSite:\r\n style = this.WorldHeritageSite();\r\n break;\r\n\r\n case DerbyshireRecordSubType.WorldHeritageSiteBufferZone:\r\n style = this.WorldHeritageSiteBuffer();\r\n break;\r\n\r\n case DerbyshireRecordSubType.AreaOfArchaeologicalInterest:\r\n style = this.AreasOfArchaeologicalInterest();\r\n break;\r\n\r\n }\r\n }\r\n\r\n if (style === null) {\r\n switch (recordType) {\r\n case DerbyshireRecordType.Monument:\r\n style = this.Monument();\r\n break;\r\n\r\n case DerbyshireRecordType.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 = DerbyshireRecordType.Monument): Style[]\r\n { \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(134, 140, 227, 0.5)'\r\n });\r\n var pointfill = new Fill({\r\n color: 'rgba(134, 140, 227, 0.9)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(134, 140, 227, 1)',\r\n width: 2\r\n });\r\n\r\n return [\r\n new Style({\r\n image: new Circle({\r\n fill: pointfill,\r\n stroke: stroke,\r\n radius: 4\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })\r\n ];\r\n\r\n }\r\n\r\n private Designation(): Style[] {\r\n return this.CommonStyle('rgba(132, 71, 15,0.8)');\r\n }\r\n\r\n\r\n private ScheduledMonument(): Style[] {\r\n\r\n\r\n // Generate a canvasPattern\r\n var canvas = document.createElement('canvas');\r\n var context = canvas.getContext('2d');\r\n var pixelRatio = olHas.DEVICE_PIXEL_RATIO;\r\n var pattern = (function () {\r\n // background\r\n canvas.width = 6 * pixelRatio;\r\n canvas.height = 6 * pixelRatio;\r\n context.fillStyle = 'rgba(212, 180, 227, 0.1)';\r\n context.fillRect(0, 0, canvas.width, canvas.height);\r\n // outer circle\r\n //context.fillStyle = 'rgba(102, 0, 102, 0.5)';\r\n //context.beginPath();\r\n //context.arc(4 * pixelRatio, 4 * pixelRatio, 3 * pixelRatio, 0, 2 * Math.PI);\r\n //context.fill();\r\n // inner circle\r\n context.fillStyle = 'rgba(212, 180, 227, 1.0)';\r\n context.beginPath();\r\n context.arc(4 * pixelRatio, 4 * pixelRatio, 1.5 * pixelRatio, 0, 2 * Math.PI);\r\n context.fill();\r\n return context.createPattern(canvas, 'repeat');\r\n }());\r\n\r\n\r\n var fill = new Fill({\r\n color: 'rgba(212, 180, 227, 0.6)'\r\n });\r\n fill.setColor(pattern);\r\n\r\n var stroke = new Stroke({\r\n color: 'rgba(212, 180, 227, 1.0)',\r\n width: 2\r\n });\r\n var pointfill = new Fill({\r\n color: 'rgba(212, 180, 227, 0.9)'\r\n });\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: pointfill,\r\n stroke: stroke,\r\n points: 3,\r\n radius: 8,\r\n rotation: 0,\r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private ListedBuilding(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(227, 137, 137, 0.6)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(227, 137, 137, 1.0)',\r\n width: 2\r\n });\r\n var pointfill = new Fill({\r\n color: 'rgba(227, 137, 137, 0.9)'\r\n });\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: pointfill,\r\n stroke: stroke,\r\n points: 3,\r\n radius: 8,\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 RegisteredParksAndGardens(): Style[] {\r\n //return this.CommonStyle('rgba(45, 123, 9,0.5)'); \r\n // Generate a canvasPattern\r\n var canvas = document.createElement('canvas');\r\n var context = canvas.getContext('2d');\r\n var pixelRatio = olHas.DEVICE_PIXEL_RATIO;\r\n var pattern = (function () {\r\n // background\r\n canvas.width = 6 * pixelRatio;\r\n canvas.height = 6 * pixelRatio;\r\n context.fillStyle = 'rgba(146, 183, 131, 0.1)';\r\n context.fillRect(0, 0, canvas.width, canvas.height);\r\n // outer circle\r\n //context.fillStyle = 'rgba(102, 0, 102, 0.5)';\r\n //context.beginPath();\r\n //context.arc(4 * pixelRatio, 4 * pixelRatio, 3 * pixelRatio, 0, 2 * Math.PI);\r\n //context.fill();\r\n // inner circle\r\n context.fillStyle = 'rgba(146, 183, 131, 1.0)';\r\n context.beginPath();\r\n context.arc(4 * pixelRatio, 4 * pixelRatio, 1.5 * pixelRatio, 0, 2 * Math.PI);\r\n context.fill();\r\n return context.createPattern(canvas, 'repeat');\r\n }());\r\n\r\n var fill = new Fill({\r\n color: 'rgba(146, 183, 131, 0.3)'\r\n });\r\n fill.setColor(pattern);\r\n\r\n var stroke = new Stroke({\r\n color: 'rgba(146, 183, 131, 1.0)',\r\n width: 2\r\n });\r\n var pointfill = new Fill({\r\n color: 'rgba(146, 183, 131, 0.9)'\r\n });\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: pointfill,\r\n stroke: stroke,\r\n points: 3,\r\n radius: 8,\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 AreasOfArchaeologicalInterest(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(255,255,102,0.6)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(255,255,102,1)',\r\n width: 2\r\n });\r\n var pointfill = new Fill({\r\n color: 'rgba(255,255,102, 0.9)'\r\n });\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: pointfill,\r\n stroke: stroke,\r\n points: 3,\r\n radius: 8,\r\n rotation: 0,\r\n angle: 0\r\n }),\r\n fill: fill,\r\n stroke: stroke\r\n })];\r\n }\r\n\r\n private ConservationArea(): Style[] {\r\n //return this.CommonStyle('rgba(239, 26, 28,0.5)'); \r\n // Generate a canvasPattern\r\n var canvas = document.createElement('canvas');\r\n var context = canvas.getContext('2d');\r\n // Gradient and pattern are in canvas pixel space, so we adjust for the\r\n // renderer's pixel ratio\r\n var pixelRatio = olHas.DEVICE_PIXEL_RATIO;\r\n var pattern = (function () {\r\n canvas.width = 32 * pixelRatio;\r\n canvas.height = 32 * pixelRatio;\r\n // background\r\n context.fillStyle = \"rgba(238, 194, 85, 0.1)\";\r\n context.fillRect(0, 0, canvas.width, canvas.height);\r\n\r\n var x0 = 36;\r\n var x1 = -4;\r\n var y0 = -4;\r\n var y1 = 36;\r\n var offset = 16;\r\n\r\n context.strokeStyle = \"rgba(238, 194, 85, 1)\";\r\n context.lineWidth = 2;\r\n context.beginPath();\r\n context.moveTo(x0, y0);\r\n context.lineTo(x1, y1);\r\n context.moveTo(x0 - offset, y0);\r\n context.lineTo(x1 - offset, y1);\r\n context.moveTo(x0 + offset, y0);\r\n context.lineTo(x1 + offset, y1);\r\n context.stroke();\r\n\r\n context.fillStyle = context.createPattern(canvas, 'repeat');\r\n context.fillRect(0, 0, canvas.width, canvas.height);\r\n\r\n return context.createPattern(canvas, 'repeat');\r\n }());\r\n var fill = new Fill({\r\n color: 'rgba(238, 194, 85, 0.4)'\r\n });\r\n fill.setColor(pattern);\r\n\r\n var stroke = new Stroke({\r\n color: 'rgba(238, 194, 85, 1)',\r\n width: 2\r\n });\r\n var pointfill = new Fill({\r\n color: 'rgba(238, 194, 85, 0.9)'\r\n });\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: pointfill,\r\n stroke: stroke,\r\n points: 3,\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 WorldHeritageSiteBuffer(): Style[] {\r\n //return this.CommonStyle('rgba(27, 15, 220, 0.8)'); \r\n var fill = new Fill({\r\n color: 'rgba(191, 166, 144, 0.4)'\r\n });\r\n var stroke = new Stroke({\r\n color: 'rgba(191, 166, 144, 1.0)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: fill,\r\n stroke: stroke,\r\n points: 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 WorldHeritageSite(): Style[] {\r\n\r\n // Generate a canvasPattern with two circles on white background\r\n var pattern = (function () {\r\n var canvas = document.createElement('canvas');\r\n var context = canvas.getContext('2d');\r\n // Gradient and pattern are in canvas pixel space, so we adjust for the\r\n // renderer's pixel ratio\r\n var pixelRatio = olHas.DEVICE_PIXEL_RATIO;\r\n canvas.width = 8 * pixelRatio;\r\n canvas.height = 8 * pixelRatio;\r\n context.fillStyle = \"rgba(191, 166, 144, 0.1)\";\r\n context.fillRect(0, 0, canvas.width, canvas.height);\r\n // outer circle\r\n //context.fillStyle = 'rgba(102, 0, 102, 0.5)';\r\n //context.beginPath();\r\n //context.arc(4 * pixelRatio, 4 * pixelRatio, 3 * pixelRatio, 0, 2 * Math.PI);\r\n //context.fill();\r\n // inner circle\r\n context.fillStyle = 'rgb(191, 166, 144)';\r\n context.beginPath();\r\n context.arc(4 * pixelRatio, 4 * pixelRatio, 1.5 * pixelRatio, 0, 2 * Math.PI);\r\n context.fill();\r\n return context.createPattern(canvas, 'repeat');\r\n }());\r\n\r\n\r\n var fill = new Fill({\r\n color: 'rgba(191, 166, 144, 1)'\r\n });\r\n fill.setColor(pattern);\r\n\r\n var stroke = new Stroke({\r\n color: 'rgba(191, 166, 144, 1.0)',\r\n width: 2\r\n });\r\n\r\n return [new Style({\r\n image: new RegularShape({\r\n fill: fill,\r\n stroke: stroke,\r\n points: 3,\r\n radius: 8,\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\r\n \r\n private SelectedRecord(): Style[] {\r\n var fill = new Fill({\r\n color: 'rgba(255, 255, 0, 0.5)'\r\n });\r\n\r\n return [\r\n new Style({\r\n image: new Circle({\r\n fill: fill,\r\n stroke: new Stroke({\r\n color: 'rgba(255, 173, 10, 1)',\r\n width: 3\r\n }),\r\n radius: 10\r\n }),\r\n fill: fill,\r\n stroke: new Stroke({\r\n color: 'rgba(255, 173, 10, 1)',\r\n width: 3\r\n })\r\n })\r\n ];\r\n }\r\n\r\n}\r\n","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 DerbyshireRecordType,\r\n DerbyshireRecordSubType\r\n} from \"./DerbyshireRecordTypes\";\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: DerbyshireRecordType.Monument,\r\n recordSubTypeCode: null,\r\n heading: \"Monuments\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: null,\r\n heading: \"Designations\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.ListedBuilding,\r\n heading: \"Listed Buildings\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.RegisteredParkAndGarden,\r\n heading: \"Registered Parks & Gardens\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.ScheduledMonument,\r\n heading: \"Scheduled Monuments\"\r\n }); \r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.ConservationArea,\r\n heading: \"Conservation Areas\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.WorldHeritageSite,\r\n heading: \"World Heritage Site\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.WorldHeritageSiteBufferZone,\r\n heading: \"World Heritage Site Buffer Zone\"\r\n });\r\n\r\n items.push({\r\n recordTypeCode: DerbyshireRecordType.Designation,\r\n recordSubTypeCode: DerbyshireRecordSubType.AreaOfArchaeologicalInterest,\r\n heading: \"Areas of Archaeological Interest\"\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() === DerbyshireRecordType.Designation); \r\n } \r\n\r\n public mapToIRecordTypeInfoClick(featureProperties: any, layerGroup: ILayerGroup): IRecordTypeFeatureInfoClick \r\n {\r\n return {\r\n id: \"\",\r\n uid: featureProperties.uid,\r\n ref: featureProperties.ref,\r\n name: featureProperties.name,\r\n recordType: featureProperties.rectype,\r\n recordSubType: featureProperties.recsubtype,\r\n recordSubTypeCode: featureProperties.recsubtypecode,\r\n data: featureProperties,\r\n heading: this.getHeading(featureProperties.rectype, featureProperties.recsubtypecode),\r\n layerGroup: layerGroup\r\n }\r\n }\r\n\r\n public getInfoClickHtmlTemplate(recordTypeInfoClick: IRecordTypeFeatureInfoClick): string \r\n {\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 case \"cons\":\r\n recordTypeInfoClick.data.controller = \"Consultation\";\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 { IVectorLayerGroupConfig } from \"esdm-map/dist/layers/groups/vector/interfaces/IVectorLayerGroupConfig\";\r\nimport { WfsParamSourceMapServer, IWfsParamSource } from \"esdm-map/dist/layers/vector/sources/wfs\";\r\nimport { VectorLayerStrategy } from \"esdm-map/dist/layers/vector/VectorLayerStrategy\";\r\n\r\nimport { DerbyshireRecordType, DerbyshireRecordSubType} from \"./DerbyshireRecordTypes\";\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(null,{srsName: \"EPSG:27700\"});\r\n }\r\n\r\n constructor() {\r\n }\r\n\r\n public layerConfig = (\r\n recordType: DerbyshireRecordType,\r\n recordSubType: DerbyshireRecordSubType = null,\r\n opts: IVectorLayerGroupConfig = {}\r\n ): IVectorLayerGroupConfig => {\r\n let layerConfig: IVectorLayerGroupConfig = null;\r\n\r\n switch (recordType) {\r\n case DerbyshireRecordType.Monument:\r\n layerConfig = this.Monument(opts);\r\n break; \r\n }\r\n\r\n if (layerConfig === null && recordSubType !== null) {\r\n switch (recordSubType) {\r\n\r\n case DerbyshireRecordSubType.ListedBuilding:\r\n layerConfig = this.ListedBuilding(opts);\r\n break;\r\n\r\n case DerbyshireRecordSubType.ScheduledMonument:\r\n layerConfig = this.ScheduledMonument(opts);\r\n break; \r\n \r\n case DerbyshireRecordSubType.RegisteredParkAndGarden:\r\n layerConfig = this.RegisteredParkAndGarden(opts);\r\n break; \r\n\r\n case DerbyshireRecordSubType.ConservationArea:\r\n layerConfig = this.ConservationArea(opts);\r\n break; \r\n\r\n case DerbyshireRecordSubType.AreaOfArchaeologicalInterest:\r\n layerConfig = this.AreaOfArchaeologicalInterest(opts);\r\n break; \r\n\r\n case DerbyshireRecordSubType.WorldHeritageSite:\r\n layerConfig = this.WorldHeritageSite(opts);\r\n break; \r\n\r\n case DerbyshireRecordSubType.WorldHeritageSiteBufferZone:\r\n layerConfig = this.WorldHeritageSiteBufferZone(opts);\r\n break; \r\n\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: DerbyshireRecordType.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: true,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"MonumentPolygonsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"MonumentLinesWFS\",\r\n minZoom: 1,\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: 0,\r\n maxZoom: 0\r\n },\r\n {\r\n layerName: \"MonumentPolygonsAsPointsWFS\",\r\n minZoom: 0,\r\n maxZoom: 0\r\n }\r\n ]\r\n }, ...opts\r\n };\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: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.ListedBuilding,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.ListedBuilding },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: false,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 16,\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: 15\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: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.ScheduledMonument,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.ScheduledMonument },\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: 11,\r\n maxZoom: 19\r\n }, \r\n \r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 1,\r\n maxZoom: 10\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n \r\n private RegisteredParkAndGarden = (\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: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.RegisteredParkAndGarden,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.RegisteredParkAndGarden },\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: 1,\r\n maxZoom: 19\r\n }, \r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 0,\r\n maxZoom: 0\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: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.ConservationArea,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.ConservationArea },\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: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 0,\r\n maxZoom: 0\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n\r\n private AreaOfArchaeologicalInterest = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"Areas of Archaeological Interest\",\r\n ref: \"AreaOfArchInterest\",\r\n type: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.AreaOfArchaeologicalInterest,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.AreaOfArchaeologicalInterest },\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: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 0,\r\n maxZoom: 0\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n\r\n private WorldHeritageSite = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"World Heritage Site\",\r\n ref: \"WorldHeritageSite\",\r\n type: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.WorldHeritageSite,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.WorldHeritageSite },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 0,\r\n maxZoom: 0\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n\r\n private WorldHeritageSiteBufferZone = (\r\n opts: IVectorLayerGroupConfig\r\n ): IVectorLayerGroupConfig => {\r\n return {\r\n ...{\r\n displayName: \"World Heritage Site Buffer Zone\",\r\n ref: \"WorldHeritageSiteBufferZone\",\r\n type: DerbyshireRecordType.Designation,\r\n subType: DerbyshireRecordSubType.WorldHeritageSiteBufferZone,\r\n strategy: VectorLayerStrategy.Bbox,\r\n url: this.mapFileUrl,\r\n urlParams: { recsubtypecode: DerbyshireRecordSubType.WorldHeritageSiteBufferZone },\r\n wfsParams: this.paramSource(),\r\n maxFeatureCount: 10000,\r\n legend: { point: false, line: false },\r\n visibleOnFirstLoad: false,\r\n alwaysLoadOnZoom: true,\r\n layers: [\r\n {\r\n layerName: \"DesignationPolygonsWFS\",\r\n minZoom: 1,\r\n maxZoom: 19\r\n },\r\n {\r\n layerName: \"DesignationPolygonsAsPointsWFS\",\r\n minZoom: 0,\r\n maxZoom: 0\r\n }\r\n ]\r\n }, ...opts\r\n };\r\n }\r\n\r\n}\r\n\r\n","import {\r\n MapOptions,\r\n BaseLayerType\r\n} from \"esdm-map/dist\";\r\nimport { LayerGroupCollection } from \"esdm-map/dist/layers/groups/LayerGroupCollection\";\r\n\r\n\r\nexport class DefaultMapOptions {\r\n\r\n public static GetDefaultOptions(\r\n mapElementId: string,\r\n mapStoreKey: string\r\n ): MapOptions { \r\n\r\n let opt = new MapOptions(); \r\n opt.bingApiKey = $(`#${mapElementId}`).data(\"bing-api-key\");\r\n opt.esdmOsmApiKey = $(`#${mapElementId}`).data(\"esdm-osm-api-key\");\r\n opt.baseMaps = [BaseLayerType.OSM, BaseLayerType.BingOS, BaseLayerType.BingAerial];\r\n opt.defaultBaseMap = BaseLayerType.OSM;\r\n opt.enableBoundsTracking = true;\r\n opt.mapElementId = mapElementId;\r\n opt.mapStoreKey = mapStoreKey;\r\n opt.mapZoom = 13;\r\n opt.minZoom = 9;\r\n opt.maxZoom = 19;\r\n opt.extent = [-230699, 6923187, -82717, 7095195];\r\n opt.mapCentre = [-163575, 6969069];\r\n opt.displayProjection = \"EPSG:3857\";\r\n opt.dataProjection = \"EPSG:27700\";\r\n opt.dragRotateAndZoom = false; \r\n opt.zoomToNearestBounds = false;\r\n return opt;\r\n }\r\n\r\n}"],"sourceRoot":""}