gralobe 1.0.25 → 1.0.26
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/README.md +0 -4
- package/dist/gralobe.js +135 -126
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +2 -2
- package/dist/gralobe.umd.cjs.map +1 -1
- package/dist/index.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -258,6 +258,11 @@ export declare interface GlobeVizConfig {
|
|
|
258
258
|
* @default 'satellite' (NASA Blue Marble)
|
|
259
259
|
*/
|
|
260
260
|
texture?: TexturePreset;
|
|
261
|
+
/**
|
|
262
|
+
* Custom map topology configuration
|
|
263
|
+
* Allows loading custom borders (cities, states) instead of countries
|
|
264
|
+
*/
|
|
265
|
+
topology?: TopologyConfig;
|
|
261
266
|
/**
|
|
262
267
|
* Country label display style
|
|
263
268
|
* @default 'all'
|
|
@@ -444,6 +449,18 @@ export declare type TexturePreset = "satellite" | "natural" | "dark" | "light" |
|
|
|
444
449
|
*/
|
|
445
450
|
export declare function toNumericCode(input: string): string;
|
|
446
451
|
|
|
452
|
+
/**
|
|
453
|
+
* Configuration for custom map topology (GeoJSON/TopoJSON)
|
|
454
|
+
*/
|
|
455
|
+
declare interface TopologyConfig {
|
|
456
|
+
/** URL to the TopoJSON/GeoJSON file */
|
|
457
|
+
url?: string;
|
|
458
|
+
/** Name of the object in TopoJSON objects (files can containing multiple) */
|
|
459
|
+
objectName?: string;
|
|
460
|
+
/** Property key to use as ID (default: "id" or "ISO_A3") */
|
|
461
|
+
idProperty?: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
447
464
|
export declare const WORLD_STATISTICS: CountryStatistics[];
|
|
448
465
|
|
|
449
466
|
export { }
|
package/package.json
CHANGED