olamaps-web-sdk 1.1.1 → 1.1.3

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/dist/index.d.ts CHANGED
@@ -6,6 +6,10 @@ import { NavigationControlOptions } from 'maplibre-gl';
6
6
  import * as OlaMapsGl from 'maplibre-gl';
7
7
  import { PopupOptions } from 'maplibre-gl';
8
8
 
9
+ declare type MapMethods = {
10
+ [key: string]: any;
11
+ };
12
+
9
13
  declare interface olaMapProps {
10
14
  apiKey: string;
11
15
  mode?: string;
@@ -24,7 +28,7 @@ export declare class OlaMaps {
24
28
  private addAttribution;
25
29
  private fetchStaticMap;
26
30
  private add3dLayer;
27
- init(options?: MapOptions): Map_2 & typeof OlaMapsGl;
31
+ init(options?: MapOptions): Map_2 & MapMethods;
28
32
  addNavigationControls(options?: NavigationControlOptions): OlaMapsGl.NavigationControl;
29
33
  addGeolocateControls(options: GeolocateControlOptions): OlaMapsGl.GeolocateControl;
30
34
  getMercatorCoordinate(): typeof OlaMapsGl.MercatorCoordinate;