@vinctus/react-maplibre 1.0.0-alpha → 1.0.1

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/Map.js CHANGED
@@ -23,14 +23,14 @@ export const Map = forwardRef(({ longitude, latitude, mapStyle, fallback, childr
23
23
  maxPitch: 0,
24
24
  });
25
25
  setMapInstance(newMap);
26
- newMap.on('load', (ev) => {
27
- if (onLoad) {
26
+ if (onLoad) {
27
+ newMap.on('load', (ev) => {
28
28
  onLoad(ev);
29
- }
30
- setTimeout(() => {
31
- setMapLoaded(true);
32
- }, 1000);
33
- });
29
+ setTimeout(() => {
30
+ setMapLoaded(true);
31
+ }, 500);
32
+ });
33
+ }
34
34
  if (onZoomEnd) {
35
35
  newMap.on('zoomend', onZoomEnd);
36
36
  }
@@ -0,0 +1 @@
1
+ {"root":["../src/ErrorBoundary.tsx","../src/GeolocateControl.tsx","../src/Layer.tsx","../src/Map.tsx","../src/Marker.tsx","../src/NavigationControl.tsx","../src/Popup.tsx","../src/ScaleControl.tsx","../src/index.ts"],"version":"5.8.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinctus/react-maplibre",
3
- "version": "1.0.0-alpha",
3
+ "version": "1.0.1",
4
4
  "description": "Minimalist MapLibre GL JS React wrapper library",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",