@performant-software/geospatial 1.1.5-beta.2 → 1.1.6-beta.0
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { MixedGeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';
|
|
4
|
+
import React, { useEffect } from 'react';
|
|
5
5
|
import { DEFAULT_FILL_STYLE, DEFAULT_POINT_STYLE, DEFAULT_STROKE_STYLE } from '../utils/MapStyles';
|
|
6
6
|
import MapUtils from '../utils/Map';
|
|
7
7
|
|
|
@@ -29,12 +29,7 @@ type Props = {
|
|
|
29
29
|
/**
|
|
30
30
|
* GeoJSON layer stroke style
|
|
31
31
|
*/
|
|
32
|
-
strokeStyle?: { [key: string]: any }
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Hook used to retrieve the map instance.
|
|
36
|
-
*/
|
|
37
|
-
useMap?: () => Map
|
|
32
|
+
strokeStyle?: { [key: string]: any }
|
|
38
33
|
};
|
|
39
34
|
|
|
40
35
|
const DEFAULT_BUFFER = 2;
|
|
@@ -43,7 +38,7 @@ const DEFAULT_BUFFER = 2;
|
|
|
43
38
|
* This component renders a location marker to be used in a Peripleo context.
|
|
44
39
|
*/
|
|
45
40
|
const LocationMarker = (props: Props) => {
|
|
46
|
-
const map =
|
|
41
|
+
const map = useMap();
|
|
47
42
|
|
|
48
43
|
/**
|
|
49
44
|
* Sets the bounding box on the map.
|