@dacostafilipe/react-geoportail 0.1.6 → 0.1.8
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/components/GeoportailMap.d.ts +16 -0
- package/dist/components/GeoportailMap.test.d.ts +1 -0
- package/dist/react-geoportail.js +297 -237
- package/dist/react-geoportail.js.map +1 -1
- package/dist/react-geoportail.umd.cjs +2 -2
- package/dist/react-geoportail.umd.cjs.map +1 -1
- package/dist/types/lux.d.ts +16 -0
- package/package.json +5 -3
|
@@ -56,3 +56,19 @@ export interface GeoportailMapHandle {
|
|
|
56
56
|
* or imperatively control the view.
|
|
57
57
|
*/
|
|
58
58
|
export declare const GeoportailMap: React.ForwardRefExoticComponent<GeoportailMapProps & React.RefAttributes<GeoportailMapHandle>>;
|
|
59
|
+
/**
|
|
60
|
+
* Place/move an SVG pin marker on the map.
|
|
61
|
+
* lux.Map is built on OpenLayers 3 — overlays must use the view projection.
|
|
62
|
+
*/
|
|
63
|
+
export declare function setMarkerPosition(map: LuxMapInstance, position: LatLon, layerRef: React.MutableRefObject<unknown>): void;
|
|
64
|
+
export declare function setMarkerCoordinate(map: LuxMapInstance, coordinate: [number, number], position: LatLon, layerRef: React.MutableRefObject<unknown>): void;
|
|
65
|
+
export declare function clearMarker(layerRef: React.MutableRefObject<unknown>): void;
|
|
66
|
+
export declare function ensureMarkerOverlay(map: LuxMapInstance, _position: LatLon, layerRef: React.MutableRefObject<unknown>): OlOverlay | null;
|
|
67
|
+
export declare function convertLatLonToMarkerCoordinate(position: LatLon): [number, number];
|
|
68
|
+
export declare function resolveDisplayMarkerPosition(markerMode: MarkerMode, markerPosition: LatLon | undefined, center: LatLon): LatLon | undefined;
|
|
69
|
+
export declare function resolveInitialCenter(center: LatLon | undefined, markerMode: MarkerMode, markerPosition: LatLon | undefined): LatLon;
|
|
70
|
+
interface OlOverlay {
|
|
71
|
+
setPosition(pos: [number, number] | undefined): void;
|
|
72
|
+
}
|
|
73
|
+
export declare function convertMapClickCoordinateToLatLon(_map: LuxMapInstance, coordinate: [number, number]): LatLon;
|
|
74
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|