3582002059839d95e8820d076f5f78a59d8b42147db01368c057eafb4fd57cc35b7e67506702c9690426d1e6f35176dd93c5f63558853129790ea92051353d 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import BoundingRect from 'zrender/lib/core/BoundingRect.js';
  2. import { GeoJSONRegion } from './Region.js';
  3. import { GeoJSON, GeoJSONCompressed, GeoJSONSourceInput, GeoResource, GeoSpecialAreas, NameMap } from './geoTypes.js';
  4. export declare class GeoJSONResource implements GeoResource {
  5. readonly type = "geoJSON";
  6. private _geoJSON;
  7. private _specialAreas;
  8. private _mapName;
  9. private _parsedMap;
  10. constructor(mapName: string, geoJSON: GeoJSONSourceInput, specialAreas: GeoSpecialAreas);
  11. /**
  12. * @param nameMap can be null/undefined
  13. * @param nameProperty can be null/undefined
  14. */
  15. load(nameMap: NameMap, nameProperty: string): {
  16. regions: GeoJSONRegion[];
  17. boundingRect: BoundingRect;
  18. regionsMap: import("zrender/lib/core/util").HashMap<GeoJSONRegion, string | number>;
  19. };
  20. private _parseToRegions;
  21. /**
  22. * Only for exporting to users.
  23. * **MUST NOT** used internally.
  24. */
  25. getMapForUser(): {
  26. geoJson: GeoJSON | GeoJSONCompressed;
  27. geoJSON: GeoJSON | GeoJSONCompressed;
  28. specialAreas: GeoSpecialAreas;
  29. };
  30. }