import L from 'leaflet'; import type { MyMap } from 'map-sdk-leaflet/es/sdk/ShipxyAPISDK'; import type { Layer, Marker } from 'leaflet'; declare class OverLayers { map: MyMap; options: { shape: string; templineStyle: { color: string; dashArray: number[]; }; hintlineStyle: { color: string; dashArray: number[]; }; markerStyle: { draggable: boolean; }; pathOptions: { dash: boolean; dashArray: number[]; }; draggable: boolean; snappable: boolean; }; Rectange: { options: { shape: string; templineStyle: { color: string; dashArray: number[]; weight: number; }; hintlineStyle: { color: string; dashArray: number[]; weight: number; }; pathOptions: { color: string; fillColor: string; fillOpacity: number; dashArray: number[]; weight: number; }; }; }; Polygon: { options: { shape: string; templineStyle: { color: string; dashArray: number[]; weight: number; }; hintlineStyle: { color: string; dashArray: number[]; weight: number; }; pathOptions: { color: string; fillColor: string; fillOpacity: number; dashArray: number[]; weight: number; }; }; }; Circle: { options: { shape: string; templineStyle: { color: string; dashArray: number[]; weight: number; }; hintlineStyle: { color: string; dashArray: number[]; weight: number; }; pathOptions: { color: string; fillColor: string; fillOpacity: number; dashArray: number[]; weight: number; }; radius: number; }; }; Sector: { options: { radius: number; startAngle: number; stopAngle: number; fillColor: string; fillOpacity: number; stroke: boolean; color: string; dashArray: never[]; weight: number; opacity: number; clickable: boolean; draggable: boolean; keyboard: boolean; zIndexOffset: number; }; }; FreeDraw: { options: { shape: string; templineStyle: { color: string; dashArray: number[]; weight: number; }; hintlineStyle: { color: string; dashArray: number[]; weight: number; }; pathOptions: { color: string; fillColor: string; fillOpacity: number; dashArray: number[]; weight: number; }; }; }; callbackWin: number; temp_areaID: string; _drawInstance: any; layerHash: {}; layerHashName: Record; _zoomend: boolean; _tempAreaArray: any[]; hashData: never[]; drawMarker: Record; constructor(map: MyMap, options?: any); init(): void; _showInputArea(): void; _layerChange(): void; onLayerChange(): void; polyNameChange(): void; showName(p: Layer, name?: string): L.Polygon | null; initDraw(type: string): void; remove(id: string): void; clear(): void; start(opts: any): void; end(areaid?: undefined): void; endEdit(id: string): void; removeInstanceLayer(): void; setOpts(ops: any): void; getLayer(): any; showArea(d: { Points: any; AreaID: string; AreaStyle: string; AreaShape: number; Radius: number; AreaName: string | undefined; }, locate: boolean): void; /** * 清除绘制的marker */ drawMarkClear(): void; /** * 显示marker * @param item * @param locate 是否定位 */ showMarker(item: { MarkerType: string; Lat: number; Lon: number; MarkerName: string; MarkerID: string | number; IsShow: number; }, locate?: boolean): void; getDescriptOffset(): { X: number; Y: number; }; _showLatLntToGPS(latLng: any): L.LatLng; } export { OverLayers };