@yarrow-uz/yarrow-map-web-sdk 1.0.42 → 1.0.44
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/CHANGELOG.md +55 -0
- package/README.md +70 -49
- package/dist/config/main.d.ts +2 -0
- package/dist/main.js +2 -2
- package/dist/maps/yarrow.d.ts +3 -1
- package/dist/module.js +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/useYarrowMap.d.ts +1 -0
- package/package.json +3 -2
package/dist/maps/yarrow.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ type YarrowMapConfigOptions = {
|
|
|
16
16
|
cache?: CacheConfig;
|
|
17
17
|
brandBadgePosition?: BrandBadgePosition;
|
|
18
18
|
controls?: YarrowControlsConfig;
|
|
19
|
+
apiKey: string;
|
|
19
20
|
};
|
|
20
21
|
type NormalizedCacheConfig = {
|
|
21
22
|
enabled: boolean;
|
|
@@ -76,8 +77,8 @@ declare class YarrowMapConfig {
|
|
|
76
77
|
cache: NormalizedCacheConfig;
|
|
77
78
|
brandBadgePosition: BrandBadgePosition;
|
|
78
79
|
controls: NormalizedYarrowControlsConfig;
|
|
80
|
+
apiKey: string;
|
|
79
81
|
constructor(config: YarrowMapConfigOptions);
|
|
80
|
-
constructor(container: HTMLElement | string, center: [number, number], zoom?: number, minZoom?: number, maxZoom?: number, theme?: 'light' | 'dark', cache?: CacheConfig, brandBadgePosition?: BrandBadgePosition, controls?: YarrowControlsConfig);
|
|
81
82
|
}
|
|
82
83
|
declare class YarrowMap {
|
|
83
84
|
private static isCacheProtocolRegistered;
|
|
@@ -107,6 +108,7 @@ declare class YarrowMap {
|
|
|
107
108
|
init(): Promise<void>;
|
|
108
109
|
changeStyles(styleType: string | undefined): Promise<StyleSpecification>;
|
|
109
110
|
changeTheme(theme: 'light' | 'dark'): Promise<StyleSpecification>;
|
|
111
|
+
changeBrandBadgePosition(position: BrandBadgePosition): BrandBadgePosition;
|
|
110
112
|
zoomTo(lat: number, lng: number, zoom: number): void;
|
|
111
113
|
fitBounds(data: BoundsInput): void;
|
|
112
114
|
getBoundingBox(data: BoundsInput): {
|