aviation-chart 0.1.35 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGES.md +0 -0
  2. package/README.md +286 -0
  3. package/dist/MapSDK.d.ts +128 -0
  4. package/dist/apis/index.d.ts +60 -0
  5. package/dist/constants/aviation-sources.d.ts +28 -0
  6. package/dist/constants/builtin-layers.d.ts +3 -0
  7. package/dist/index.d.ts +21 -0
  8. package/dist/layericons/Airport-Civil-Selected.png +0 -0
  9. package/dist/layericons/Airport-Joint-Selected.png +0 -0
  10. package/dist/layericons/Airport-Military-Selected.png +0 -0
  11. package/dist/layericons/NDB-Mandatory-Selected.png +0 -0
  12. package/dist/layericons/NDB-Optional-Selected.png +0 -0
  13. package/dist/layericons/VOR-Mandatory-S-Selected.png +0 -0
  14. package/dist/layericons/VOR-Optional-S-Selected.png +0 -0
  15. package/dist/layericons/Waypoint-Mandatory-Selected.png +0 -0
  16. package/dist/layericons/Waypoint-Optional-Selected.png +0 -0
  17. package/dist/layericons/adsb-airplane.png +0 -0
  18. package/dist/layericons/air-label-left1.png +0 -0
  19. package/dist/layericons/air-label-none1.png +0 -0
  20. package/dist/layericons/air-label-right1.png +0 -0
  21. package/dist/layericons/airport-civ.png +0 -0
  22. package/dist/layericons/airport-mil.png +0 -0
  23. package/dist/layericons/airport-milext.png +0 -0
  24. package/dist/layericons/airport-userfoc.png +0 -0
  25. package/dist/layericons/airspace-line.png +0 -0
  26. package/dist/layericons/border.png +0 -0
  27. package/dist/layericons/controlled copy.png +0 -0
  28. package/dist/layericons/controlled-line.png +0 -0
  29. package/dist/layericons/controlled.png +0 -0
  30. package/dist/layericons/designate_point_inway.png +0 -0
  31. package/dist/layericons/designate_point_notinway.png +0 -0
  32. package/dist/layericons/line-blue-pattenr.png +0 -0
  33. package/dist/layericons/line-blue-pattern.png +0 -0
  34. package/dist/layericons/ndb-inway.png +0 -0
  35. package/dist/layericons/ndb-notinway.png +0 -0
  36. package/dist/layericons/notam-fill.png +0 -0
  37. package/dist/layericons/place-label.png +0 -0
  38. package/dist/layericons/re-text-bg.png +0 -0
  39. package/dist/layericons/restricted-line.png +0 -0
  40. package/dist/layericons/restricted.png +0 -0
  41. package/dist/layericons/segment-both.png +0 -0
  42. package/dist/layericons/segment-left.png +0 -0
  43. package/dist/layericons/segment-right.png +0 -0
  44. package/dist/layericons/sprite.json +352 -0
  45. package/dist/layericons/sprite.png +0 -0
  46. package/dist/layericons/sprite@2x.json +352 -0
  47. package/dist/layericons/sprite@2x.png +0 -0
  48. package/dist/layericons/taix-text-bg.png +0 -0
  49. package/dist/layericons/text-bg-orange.png +0 -0
  50. package/dist/layericons/text-bg-t.png +0 -0
  51. package/dist/layericons/text-bg.png +0 -0
  52. package/dist/layericons/vor-inway.png +0 -0
  53. package/dist/layericons/vor-notinway.png +0 -0
  54. package/dist/managers/ADSBManager.d.ts +39 -0
  55. package/dist/managers/ClickManager.d.ts +15 -0
  56. package/dist/managers/ErrorManager.d.ts +25 -0
  57. package/dist/managers/GeoJSONManager.d.ts +29 -0
  58. package/dist/managers/GlobalConfigManager.d.ts +48 -0
  59. package/dist/managers/Graticule.d.ts +41 -0
  60. package/dist/managers/HoverManage.d.ts +26 -0
  61. package/dist/managers/LayerManager.d.ts +33 -0
  62. package/dist/managers/LineLabelOptimizer.d.ts +38 -0
  63. package/dist/managers/NotamManager.d.ts +40 -0
  64. package/dist/managers/PerformanceManager.d.ts +40 -0
  65. package/dist/managers/PluginManager.d.ts +17 -0
  66. package/dist/managers/PopupManager.d.ts +2 -0
  67. package/dist/managers/RasterManager.d.ts +16 -0
  68. package/dist/managers/SelectFeature.d.ts +34 -0
  69. package/dist/managers/ThemeManage.d.ts +11 -0
  70. package/dist/managers/WindManager.d.ts +21 -0
  71. package/dist/nav-sdk.cjs +27061 -0
  72. package/dist/nav-sdk.d.ts +3228 -0
  73. package/dist/nav-sdk.esm.js +27037 -0
  74. package/dist/nav-sdk.min.js +1 -0
  75. package/dist/nav-sdk.umd.js +27067 -0
  76. package/dist/plugins/DrawPlugin.d.ts +14 -0
  77. package/dist/plugins/MeasurePlugin.d.ts +26 -0
  78. package/dist/sdk.style.css +696 -0
  79. package/dist/style/amm-chart.d.ts +439 -0
  80. package/dist/style/aviation-chart.d.ts +2354 -0
  81. package/dist/types/index.d.ts +212 -0
  82. package/package.json +64 -21
  83. package/dist/aviation-chart.umd.js +0 -6
  84. package/dist/index.cjs +0 -6
  85. package/dist/index.js +0 -3571
  86. package/preview.html +0 -48
package/CHANGES.md ADDED
File without changes
package/README.md ADDED
@@ -0,0 +1,286 @@
1
+ # MapLibre SDK
2
+
3
+ 轻量地图 SDK,采用现代化架构设计,支持插件系统、性能优化和错误处理。
4
+
5
+ ## ✨ 新特性
6
+
7
+ ### 🏗️ 架构重构
8
+ - **依赖注入**: 采用接口抽象和依赖注入,提高代码可测试性和可维护性
9
+ - **模块化设计**: 清晰的管理器分离,每个功能模块独立管理
10
+ - **插件系统**: 支持自定义插件扩展,灵活的功能扩展机制
11
+
12
+ ### 🚀 性能优化
13
+ - **LOD机制**: 基于缩放级别的图层细节层次管理
14
+ - **懒加载**: 图层按需加载,提升初始化和运行性能
15
+ - **聚类支持**: 大数据量点的智能聚合显示
16
+ - **样式优化**: 根据缩放级别自动简化图层样式
17
+
18
+ ### 🛡️ 错误处理
19
+ - **统一错误管理**: 集中的错误处理和日志记录
20
+ - **错误边界**: 防止单个错误影响整个系统
21
+ - **降级策略**: 智能的错误恢复和降级处理
22
+ - **错误统计**: 详细的错误分析和统计信息
23
+
24
+ ### 🔌 插件系统
25
+ - **标准接口**: 统一的插件开发接口
26
+ - **生命周期管理**: 插件的安装、卸载和状态管理
27
+ - **示例插件**: 内置测量工具插件,展示插件开发模式
28
+
29
+ ## 🚀 快速开始
30
+
31
+ ### UMD 使用
32
+
33
+ ```html
34
+ <link href="https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css" rel="stylesheet" />
35
+ <script src="https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.js"></script>
36
+ <script src="/dist/maplibre-sdk.umd.js"></script>
37
+
38
+ <div id="map" style="width:100%;height:600px;"></div>
39
+
40
+ <script>
41
+ const sdk = new SDK.MapSDK({
42
+ container: 'map',
43
+ style: 'https://demotiles.maplibre.org/style.json',
44
+ center: [116.3974, 39.9093],
45
+ zoom: 10,
46
+ errorHandler: (error) => console.error('SDK Error:', error),
47
+ performance: {
48
+ lodEnabled: true,
49
+ clusteringEnabled: true,
50
+ lazyLoadingEnabled: true
51
+ }
52
+ });
53
+ </script>
54
+ ```
55
+
56
+ ### ESM 使用
57
+
58
+ ```javascript
59
+ import { MapSDK, MeasurePlugin } from 'maplibre-sdk';
60
+
61
+ const sdk = new MapSDK({
62
+ container: 'map',
63
+ errorHandler: handleError,
64
+ performance: { lodEnabled: true }
65
+ });
66
+
67
+ // 使用插件
68
+ const measurePlugin = new MeasurePlugin();
69
+ sdk.use(measurePlugin);
70
+ ```
71
+
72
+ ## 📚 API 概览
73
+
74
+ ### 核心功能
75
+
76
+ - **地图初始化**: `new MapSDK(options)` - 支持错误处理和性能配置
77
+ - **错误处理**: `errorHandler` 配置,自动错误捕获和处理
78
+ - **性能优化**: `performance` 配置,支持LOD、聚类、懒加载
79
+
80
+ ### 图层管理
81
+
82
+ ```javascript
83
+ // 基础操作
84
+ await sdk.addBuiltInLayer('水系');
85
+ sdk.removeBuiltInLayer('道路网络');
86
+ sdk.toggleBuiltInLayer('行政边界');
87
+
88
+ // 性能优化
89
+ sdk.layerManager.setLODEnabled(true);
90
+ sdk.layerManager.setLayerLODConfig('layerId', {
91
+ minZoom: 10,
92
+ maxZoom: 18,
93
+ minPixelSize: 10,
94
+ maxPixelSize: 100,
95
+ cullingEnabled: true
96
+ });
97
+ ```
98
+
99
+ ### GeoJSON 操作
100
+
101
+ ```javascript
102
+ // 添加要素
103
+ sdk.addPoint([lng, lat], properties, style);
104
+ sdk.addLine(coordinates, properties, style);
105
+ sdk.addPolygon(coordinates, properties, style);
106
+
107
+ // 性能优化
108
+ sdk.geoJSONManager.setClusteringEnabled(true);
109
+ sdk.geoJSONManager.setClusteringConfig('layerId', {
110
+ enabled: true,
111
+ radius: 50,
112
+ maxZoom: 16,
113
+ minPoinjavascript: 3
114
+ });
115
+ ```
116
+
117
+ ### 插件系统
118
+
119
+ ```javascript
120
+ // 使用内置插件
121
+ const measurePlugin = new MeasurePlugin();
122
+ sdk.use(measurePlugin);
123
+
124
+ // 启用测量功能
125
+ measurePlugin.enable('distance'); // 距离测量
126
+ measurePlugin.enable('area'); // 面积测量
127
+ measurePlugin.disable(); // 禁用测量
128
+
129
+ // 获取插件
130
+ const plugin = sdk.getPlugin<MeasurePlugin>('measure');
131
+ ```
132
+
133
+ ### 错误处理
134
+
135
+ ```javascript
136
+ // 自定义错误处理器
137
+ const errorHandler = (error) => {
138
+ console.error('Error Code:', error.code);
139
+ console.error('Error Details:', error.details);
140
+ console.error('Recoverable:', error.recoverable);
141
+ };
142
+
143
+ const sdk = new MapSDK({
144
+ container: 'map',
145
+ errorHandler
146
+ });
147
+
148
+ // 获取错误统计
149
+ const errorStajavascript = sdk.getErrorStajavascript();
150
+ console.log('Total Errors:', errorStajavascript.total);
151
+ ```
152
+
153
+ ### 性能监控
154
+
155
+ ```javascript
156
+ // 获取性能统计
157
+ const perfStajavascript = sdk.getPerformanceStajavascript();
158
+ console.log('Visible Layers:', perfStajavascript.visibleLayers);
159
+ console.log('LOD Enabled:', perfStajavascript.lodEnabled);
160
+ console.log('Clustering Enabled:', perfStajavascript.clusteringEnabled);
161
+ console.log('Lazy Loading Enabled:', perfStajavascript.lazyLoadingEnabled);
162
+ ```
163
+
164
+ ## 🔧 开发插件
165
+
166
+ ### 插件接口
167
+
168
+ ```javascript
169
+ import type { IPlugin, IMapSDK } from 'maplibre-sdk';
170
+
171
+ export class MyPlugin implemenjavascript IPlugin {
172
+ public name = 'my-plugin';
173
+ public version = '1.0.0';
174
+
175
+ install(sdk: IMapSDK): void {
176
+ // 插件安装逻辑
177
+ console.log('Plugin installed');
178
+ }
179
+
180
+ uninstall(sdk: IMapSDK): void {
181
+ // 插件卸载逻辑
182
+ console.log('Plugin uninstalled');
183
+ }
184
+ }
185
+ ```
186
+
187
+ ### 使用插件
188
+
189
+ ```javascript
190
+ import { MyPlugin } from './MyPlugin';
191
+
192
+ const plugin = new MyPlugin();
193
+ sdk.use(plugin);
194
+
195
+ // 检查插件状态
196
+ const hasPlugin = sdk.pluginManager.hasPlugin('my-plugin');
197
+ const pluginStajavascript = sdk.pluginManager.getPluginStajavascript();
198
+ ```
199
+
200
+ ## 🏗️ 构建与开发
201
+
202
+ ```bash
203
+ # 安装依赖
204
+ pnpm install
205
+
206
+ # 开发模式构建
207
+ pnpm build:dev
208
+
209
+ # 生产模式构建
210
+ pnpm build:prod
211
+
212
+ # 类型检查
213
+ pnpm type-check
214
+
215
+ # 清理构建产物
216
+ pnpm clean
217
+ ```
218
+
219
+ ## 📊 性能特性
220
+
221
+ ### LOD (Level of Detail)
222
+ - 根据缩放级别自动调整图层细节
223
+ - 低缩放级别使用简化样式
224
+ - 高缩放级别显示完整细节
225
+
226
+ ### 懒加载
227
+ - 图层按需加载,提升初始化速度
228
+ - 支持图层加载优先级设置
229
+ - 智能的加载队列管理
230
+
231
+ ### 聚类
232
+ - 大数据量点的智能聚合
233
+ - 可配置的聚类参数
234
+ - 平滑的聚合动画效果
235
+
236
+ ## 🛡️ 错误处理特性
237
+
238
+ ### 错误分类
239
+ - **可恢复错误**: 系统自动处理,不影响主要功能
240
+ - **不可恢复错误**: 需要用户干预或系统重启
241
+
242
+ ### 错误统计
243
+ - 错误历史记录
244
+ - 错误类型分析
245
+ - 错误趋势监控
246
+
247
+ ### 降级策略
248
+ - 功能降级处理
249
+ - 备用方案切换
250
+ - 用户友好的错误提示
251
+
252
+ ## 📁 项目结构
253
+
254
+ ```
255
+ src/
256
+ ├── managers/ # 管理器模块
257
+ │ ├── LayerManager.javascript # 图层管理
258
+ │ ├── GeoJSONManager.javascript # GeoJSON管理
259
+ │ ├── ErrorManager.javascript # 错误管理
260
+ │ ├── PerformanceManager.javascript # 性能管理
261
+ │ └── PluginManager.javascript # 插件管理
262
+ ├── plugins/ # 插件模块
263
+ │ └── MeasurePlugin.javascript # 测量插件示例
264
+ ├── types/ # 类型定义
265
+ ├── constanjavascript/ # 常量定义
266
+ ├── MapSDK.javascript # 主SDK类
267
+ └── index.javascript # 导出文件
268
+ ```
269
+
270
+ ## 🔮 未来规划
271
+
272
+ - [ ] 更多内置插件(编辑工具、分析工具等)
273
+ - [ ] 高级性能优化(WebGL优化、内存管理)
274
+ - [ ] 更多数据源支持(WMS、WFS、3D Tiles等)
275
+ - [ ] 移动端优化
276
+ - [ ] 国际化支持
277
+
278
+ ## 📄 许可证
279
+
280
+ MIT License
281
+
282
+
283
+ ## 开发规范
284
+ - [代码规范](docs/code-specification.md)
285
+ - [JSDoc注释规范](docs/jsdoc-specification.md)
286
+ - [发版说明](docs/release-notes-specification.md)
@@ -0,0 +1,128 @@
1
+ import { Map as MaplibreMap, StyleSpecification, GeoJSONSourceSpecification, FlyToOptions } from "maplibre-gl";
2
+ import type { MapSDKOptions, IMapSDK, StyleConfig, ILayerManager, IGeoJSONManager, IPlugin, LayerConfig, StyleImageMetadata, LayerRef, HtmlFunction } from "./types";
3
+ import { ADSB } from "./managers/ADSBManager";
4
+ import { NOTAM } from "./managers/NotamManager";
5
+ import { HoverManager } from "./managers/HoverManage";
6
+ import { ClickManager } from "./managers/ClickManager";
7
+ import { RasterManager } from "./managers/RasterManager";
8
+ import { GraticuleManager, GraticuleConfig } from "./managers/Graticule";
9
+ import API from "./apis";
10
+ import { SelectFeature } from "./managers/SelectFeature";
11
+ import { LineLabelOptimizer } from "./managers/LineLabelOptimizer";
12
+ import { Theme } from "./managers/ThemeManage";
13
+ import { WindManager } from "./managers/WindManager";
14
+ export declare class MapSDK implements IMapSDK {
15
+ map: MaplibreMap;
16
+ layerManager: ILayerManager;
17
+ geoJSONManager: IGeoJSONManager;
18
+ private performanceManager;
19
+ private pluginManager;
20
+ private isDestroyed;
21
+ adsb: ADSB;
22
+ notam: NOTAM;
23
+ hover: HoverManager;
24
+ clickObj: ClickManager;
25
+ rasterManager: RasterManager;
26
+ graticule: GraticuleManager;
27
+ api: API;
28
+ selector: SelectFeature;
29
+ lineLabelOptimizer: LineLabelOptimizer;
30
+ theme: Theme;
31
+ wind: WindManager;
32
+ private initialOptions;
33
+ private _baseUrl;
34
+ private _landGeojson;
35
+ private _chartApiUrl;
36
+ readonly ready: Promise<void>;
37
+ private _resolveReady;
38
+ private _rejectReady;
39
+ get globalConfig(): import("./managers/GlobalConfigManager").GlobalConfigManager;
40
+ get absb(): ADSB;
41
+ constructor(options: MapSDKOptions);
42
+ private initializeMap;
43
+ private setupMapEventListeners;
44
+ private handleZoomChange;
45
+ private initializeManagers;
46
+ private initializeDefaultLayers;
47
+ private initializeADSB;
48
+ private initializeNOTAM;
49
+ private initializeHover;
50
+ private initializeCLick;
51
+ private initialRaster;
52
+ private initializeGraticule;
53
+ private initializeSelector;
54
+ private initializeLabelOptimizer;
55
+ private initializeTheme;
56
+ private initializeChartFeatures;
57
+ private initializeAviationLayers;
58
+ setCenter(center: [number, number]): void;
59
+ setZoom(zoom: number): void;
60
+ setPitch(pitch: number): void;
61
+ setBearing(bearing: number): void;
62
+ fitBounds(bounds: [[number, number], [number, number]], options?: any): void;
63
+ addBuiltInLayer(layerName: string, zindex: string): Promise<void>;
64
+ removeBuiltInLayer(layerName: string): void;
65
+ toggleBuiltInLayer(layerName: string): void;
66
+ toggleLayer(layerName: string): void;
67
+ showLayer(layerName: string): void;
68
+ hideLayer(layerName: string): void;
69
+ clickLayer(layerName: LayerRef, callback: (e: any) => void): void;
70
+ getBuiltInLayers(): Object;
71
+ isBuiltInLayerVisible(layerId: string): boolean;
72
+ updateLayerStyle(layerId: string, style: StyleConfig): void;
73
+ toggleFullScreen(state: boolean): void;
74
+ private _snapshotVisibleLayers;
75
+ private _restoreAfterStyleLoad;
76
+ setMapStyle(style: string | StyleSpecification, options?: {
77
+ diff?: boolean;
78
+ }): Promise<void>;
79
+ setTheme(theme: "light" | "dark"): void;
80
+ private _themeLayerDefs;
81
+ private _applyThemedProps;
82
+ restoreLandLayer(): void;
83
+ addPoint(coordinates: [number, number], properties?: Record<string, any>, style?: StyleConfig, id?: string): string;
84
+ addLine(coordinates: [], properties?: Record<string, any>, style?: StyleConfig, id?: string): string;
85
+ addPolygon(coordinates: [], properties?: Record<string, any>, style?: StyleConfig, id?: string): string;
86
+ addGeoJSON(sourceId: string, geojson?: any, props?: GeoJSONSourceSpecification | null | undefined): any;
87
+ addLayer(layerConfig: LayerConfig): void;
88
+ hoverLayer(layers: LayerRef, cb: (e: any) => void): void;
89
+ hoverPopup(layerId: LayerRef, f: HtmlFunction): () => void;
90
+ clickPopup(layerId: LayerRef, f: HtmlFunction): () => void;
91
+ showLayers(layerIds: string[]): void;
92
+ hideLayers(layerIds: string[]): void;
93
+ setLayerVisible(key: string, visible: boolean): void;
94
+ flyTo(option: FlyToOptions, eventData?: any): void;
95
+ on(event: string, listenerOrLayerId?: string | Function, listener?: Function): void;
96
+ off(event: string, listenerOrLayerId?: string | Function, listener?: Function): void;
97
+ getCenter(): [number, number];
98
+ getZoom(): number;
99
+ getBounds(): [[number, number], [number, number]];
100
+ use(plugin: IPlugin): void;
101
+ getPlugin<T extends IPlugin>(name: string): T | undefined;
102
+ getPerformanceStats(): {
103
+ visibleLayers: number;
104
+ queuedLayers: number;
105
+ lodEnabled: boolean;
106
+ clusteringEnabled: boolean;
107
+ lazyLoadingEnabled: boolean;
108
+ };
109
+ getErrorStats(): void;
110
+ setPeriod(period: string): void;
111
+ getPeriod(): string | undefined;
112
+ generateCurrentPeriod(): Promise<string>;
113
+ showGraticule(): void;
114
+ hideGraticule(): void;
115
+ toggleGraticule(): void;
116
+ updateGraticuleConfig(config: Partial<GraticuleConfig>): void;
117
+ isGraticuleVisible(): boolean;
118
+ get showTileBoundaries(): boolean;
119
+ set showTileBoundaries(value: boolean);
120
+ enableLineLabelDedup(lineLayerId: string, lineLabelId: string, builtInKey: string, fieldList?: string[], suffix?: string): void;
121
+ disableLineLabelDedup(): void;
122
+ private reinitializeMap;
123
+ registerIcon(id: string, url: string, options?: StyleImageMetadata): Promise<void>;
124
+ setStyle(style: object): void;
125
+ private processGlobalConfig;
126
+ private getCustomLayerStyles;
127
+ destroy(): void;
128
+ }
@@ -0,0 +1,60 @@
1
+ type NotamDetailParams = {
2
+ notamSeries: string;
3
+ notamNoPart1: string;
4
+ notamNoPart2: string;
5
+ nof: string;
6
+ pageNo: number;
7
+ pageSize: number;
8
+ signal?: AbortSignal | null;
9
+ };
10
+ type NotamListParams = {
11
+ pageNo: number;
12
+ pageSize: number;
13
+ onlyGeojson: boolean;
14
+ typeC: boolean;
15
+ notamOffset: string;
16
+ isInternational: boolean;
17
+ isCompanyVersion: boolean;
18
+ signal?: AbortSignal | null;
19
+ };
20
+ type NotamDataParams = {
21
+ pageNo: number;
22
+ pageSize: number;
23
+ nof: string;
24
+ itemA: string;
25
+ itemB: string;
26
+ itemC: string;
27
+ notamSeries: string;
28
+ notamNoPart1: string;
29
+ notamNoPart2: string;
30
+ notamTypeIds: string;
31
+ onlyValid: boolean;
32
+ moduleName: string;
33
+ topic: string;
34
+ notamCode: string;
35
+ signal: AbortSignal | null;
36
+ };
37
+ type TyphoonVolcanoAshParams = {
38
+ AdvisoryText: string;
39
+ signal?: AbortSignal | null;
40
+ };
41
+ type RunwayDataParams = {
42
+ AirportCode: string;
43
+ DataPeriod: string;
44
+ signal?: AbortSignal | null;
45
+ };
46
+ export declare class API {
47
+ constructor();
48
+ _baseUrl: string;
49
+ setBaseUrl(baseUrl: string): void;
50
+ notam_list(params: NotamListParams | {}): Promise<Response>;
51
+ notam_detail(params: NotamDetailParams | {}): Promise<Response>;
52
+ notam_data(params: NotamDataParams): Promise<Response>;
53
+ typhoon_volcano_ash(params: TyphoonVolcanoAshParams | {}): Promise<Response>;
54
+ getRunwayData(params: RunwayDataParams): Promise<Response>;
55
+ getRadarData(signal?: AbortSignal | null): Promise<Response>;
56
+ getPeriodData(signal?: AbortSignal | null): Promise<Response>;
57
+ getIndexData(data: any, signal?: AbortSignal | null): Promise<Response>;
58
+ getAirportPoint(airport: string, signal?: AbortSignal | null): Promise<unknown>;
59
+ }
60
+ export default API;
@@ -0,0 +1,28 @@
1
+ export declare const DEFAULT_CHART_API_URL = "https://aips.siniswift.com";
2
+ export declare function getAviationBaseStyle(opts: {
3
+ apiUrl: string;
4
+ spriteUrl?: string;
5
+ background: string;
6
+ }): any;
7
+ export declare function navdataTilesUrl(apiUrl: string, period: string): string;
8
+ export declare function getNavdataSource(apiUrl: string, period: string): {
9
+ type: "vector";
10
+ tiles: string[];
11
+ minzoom: number;
12
+ maxzoom: number;
13
+ };
14
+ export declare function getChartAmmSource(apiUrl: string): {
15
+ type: "vector";
16
+ tiles: string[];
17
+ minzoom: number;
18
+ maxzoom: number;
19
+ };
20
+ export declare function getTerrainSource(apiUrl: string, terrainUrl?: string | null): {
21
+ type: "raster-dem";
22
+ tiles: string[];
23
+ tileSize: number;
24
+ maxzoom: number;
25
+ };
26
+ export declare const TERRAIN_COLOR_RAMP: (string | number | string[])[];
27
+ export declare function getTerrainLayers(): any[];
28
+ export declare function fetchGzJson(url: string, headers?: Record<string, string>): Promise<any>;
@@ -0,0 +1,3 @@
1
+ export declare const TYPEMAP: Record<string, string[]>;
2
+ export declare const DEFAULT_LAYER_VISIBILITY: Record<string, boolean>;
3
+ export declare const GROUP_ALIASES: Record<string, string>;
@@ -0,0 +1,21 @@
1
+ export { MapSDK } from './MapSDK';
2
+ export { LayerManager } from './managers/LayerManager';
3
+ export { GeoJSONManager } from './managers/GeoJSONManager';
4
+ export { ErrorManager } from './managers/ErrorManager';
5
+ export { PerformanceManager } from './managers/PerformanceManager';
6
+ export { PluginManager } from './managers/PluginManager';
7
+ export { globalConfig, GlobalConfigManager } from './managers/GlobalConfigManager';
8
+ export { MeasurePlugin } from './plugins/MeasurePlugin';
9
+ export { DrawPlugin } from './plugins/DrawPlugin';
10
+ export type { IMapSDK, ILayerManager, IGeoJSONManager, IPlugin, MapSDKOptions, LayerConfig, BuiltInLayer, GeoJSONFeature, GeoJSONCollection, StyleConfig, SDKError, ErrorHandler, LODConfig, ClusteringConfig, MapEvent, EventListener, HookContext, HookCallback, HookRegistry } from './types';
11
+ export { TYPEMAP, GROUP_ALIASES, DEFAULT_LAYER_VISIBILITY } from './constants/builtin-layers';
12
+ export { NOTAM } from "./managers/NotamManager";
13
+ export { WindManager } from "./managers/WindManager";
14
+ export type { WindFrame, WindOptions } from "./managers/WindManager";
15
+ export { MapSDK as default } from './MapSDK';
16
+ export { Popup } from './managers/PopupManager';
17
+ export { API } from './apis';
18
+ export * as MapEngine from "maplibre-gl";
19
+ export { MapSDK as AviationChart } from './MapSDK';
20
+ export { Marker, LngLat, LngLatBounds } from 'maplibre-gl';
21
+ export { CHART_THEMES, LAYER_GROUPS, LAYER_LABELS } from './style/aviation-chart.js';
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file