{"version":3,"file":"ShipAccidentSymbol.mjs","sources":["../../../../../../../packages/sdk/plugins/AreaView/layer/ShipAccidentSymbol.ts"],"sourcesContent":["/*\n * @Author: Yolo\n * @Date: 2024-07-19 09:11:46\n * @Last Modified by: Yolo\n * @Last Modified time: 2024-07-19 09:24:51\n * @Desc 船舶事故\n */\n\nimport L from 'leaflet'\nimport {\n  AreaViewBase,\n  type AreaViewBaseOptions,\n} from '@map-sdk/sdk/plugins/AreaView/AreaViewBase'\nimport { result } from '@map-sdk/sdk/plugins/AreaView/layer/ShipAccidentData'\nimport type { MyMap } from '@map-sdk/sdk/ShipxyAPISDK'\nimport 'leaflet.heat'\n\nclass ShipAccidentSymbol extends AreaViewBase {\n  constructor(map: MyMap, options?: Partial<AreaViewBaseOptions>) {\n    super(map, { ...(options || {}), minzoom: 3 })\n    this._data = result\n  }\n  _show() {\n    this._areaLayers.push(\n      L.heatLayer(this._data, {\n        minOpacity: 0.6,\n        radius: 15,\n      }).addTo(this._map)\n    )\n  }\n}\n\nconst shipAccidentSymbol = (\n  map: MyMap,\n  options?: Partial<AreaViewBaseOptions>\n): ShipAccidentSymbol => new ShipAccidentSymbol(map, options)\n\nexport { shipAccidentSymbol, ShipAccidentSymbol }\n"],"names":["t","r","constructor","a","e","super","minzoom","this","_data","o","_show","_areaLayers","push","s","heatLayer","minOpacity","radius","addTo","_map","p","i"],"mappings":"+IAAoM,MAAMA,UAAUC,EAAE,WAAAC,CAAYC,EAAEC,GAAGC,MAAMF,EAAE,IAAIC,GAAG,CAAE,EAACE,QAAQ,IAAIC,KAAKC,MAAMC,CAAC,CAAC,KAAAC,GAAQH,KAAKI,YAAYC,KAAKC,EAAEC,UAAUP,KAAKC,MAAM,CAACO,WAAW,GAAGC,OAAO,KAAKC,MAAMV,KAAKW,MAAM,EAAO,MAACC,EAAE,CAACC,EAAEjB,IAAI,IAAIH,EAAEoB,EAAEjB"}