@teeechina/teee-map 0.0.9 → 0.0.11

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.
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { Map as MaplibreMap, LngLat, GeoJSONFeature, LngLatLike } from 'maplibre-gl';
2
2
  import type { LayerSpecification, SourceSpecification } from 'maplibre-gl';
3
+ import type { FeatureCollection } from 'geojson';
3
4
 
4
5
  // ─────────────────────────────────────────────
5
6
  // 基础枚举 & 联合类型
@@ -372,16 +373,20 @@ export declare class TeeeMap {
372
373
  createGraphEncryptedMap(stcode: string, url: string, layers: LayerType[]): void;
373
374
  createGeomEncryptedMap(stcode: string, url: string, layers: LayerType[]): void;
374
375
  createCTCEncryptedMap(stcode: string, url: string, layers: LayerType[]): void;
375
- createGeoJsonStationMap(
376
- stationDatas: {
377
- name: string;
378
- data: GeoJSON.FeatureCollection | string;
379
- }[],
380
- ): Promise<void>;
376
+ createGeoJsonStationMap(stationDatas: GeojsonStationDatas[]): Promise<void>;
381
377
 
382
378
  // ── 其他工具方法 ──
383
379
  getMap(): MaplibreMap;
384
380
  getMapConfigs(): MapForgeConfig;
381
+ getFeatureState(code: string | number): Record<string, unknown> | undefined;
382
+ locateGeojsonFeature(data: GeoJSON.FeatureCollection): void;
385
383
  }
386
384
 
387
385
  export default TeeeMap;
386
+
387
+ export interface GeojsonStationDatas {
388
+ name: string;
389
+ data: GeoJSON.FeatureCollection | string;
390
+ }
391
+
392
+ export declare function transformGeoJsonFrom3857(geojson: FeatureCollection): FeatureCollection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teeechina/teee-map",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "",
5
5
  "main": "dist/teee-map.umd.js",
6
6
  "module": "dist/teee-map.mjs",