@mapcomponents/react-maplibre 0.1.60 → 0.1.62
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/.eslintignore +2 -1
- package/CHANGELOG.md +10 -0
- package/coverage/clover.xml +127 -48
- package/coverage/coverage-final.json +4 -3
- package/coverage/lcov-report/index.html +38 -23
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCenterPosition/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx.html +2 -8
- package/coverage/lcov-report/src/components/MlCreatePdfForm/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/index.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/MlMarker.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.stories_.js.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
- package/coverage/lcov-report/src/contexts/MapContext.tsx.html +1 -1
- package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
- package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +1 -1
- package/coverage/lcov-report/src/contexts/index.html +1 -1
- package/coverage/lcov-report/src/hooks/index.html +11 -11
- package/coverage/lcov-report/src/hooks/useCameraFollowPath/index.html +116 -0
- package/coverage/lcov-report/src/hooks/useCameraFollowPath/useCameraFollowPath.tsx.html +661 -0
- package/coverage/lcov-report/src/hooks/useExportMap/index.html +14 -14
- package/coverage/lcov-report/src/hooks/useExportMap/index.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useExportMap/lib.ts.html +21 -108
- package/coverage/lcov-report/src/hooks/useLayer.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayerEvent.js.html +9 -9
- package/coverage/lcov-report/src/hooks/useMap.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useMapState.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useSource.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +8 -2
- package/coverage/lcov.info +222 -72
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.stories.d.ts +1 -0
- package/dist/components/MlCreatePdfForm/lib/PdfContext.d.ts +3 -16
- package/dist/components/MlCreatePdfForm/lib/PdfPreview.d.ts +19 -6
- package/dist/components/MlCreatePdfForm/lib/_PdfPreview.d.ts +13 -0
- package/dist/hooks/useCameraFollowPath/useCameraFollowPath.d.ts +35 -0
- package/dist/hooks/useCameraFollowPath/useCameraFollowPath.stories.d.ts +17 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +656 -597
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -1
- package/scripts/build-catalogue-meta.js +1 -1
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.stories.tsx +16 -1
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx +0 -2
- package/src/components/MlCreatePdfForm/lib/PdfContext.tsx +16 -18
- package/src/components/MlCreatePdfForm/lib/PdfForm.tsx +80 -7
- package/src/components/MlCreatePdfForm/lib/PdfPreview.tsx +285 -357
- package/src/components/MlCreatePdfForm/lib/_PdfPreview.tsx +399 -0
- package/src/components/MlCreatePdfForm/lib/pdfContext.d.ts +24 -0
- package/src/components/MlCreatePdfForm/lib/preview.css +114 -0
- package/src/hooks/useCameraFollowPath/useCameraFollowPath.doc.de.md +4 -0
- package/src/hooks/useCameraFollowPath/useCameraFollowPath.doc.en.md +1 -0
- package/src/hooks/useCameraFollowPath/useCameraFollowPath.meta.json +15 -0
- package/src/hooks/useCameraFollowPath/useCameraFollowPath.stories.tsx +198 -0
- package/src/hooks/useCameraFollowPath/useCameraFollowPath.tsx +192 -0
- package/src/hooks/useExportMap/lib.ts +14 -43
- package/src/index.ts +2 -0
package/coverage/lcov.info
CHANGED
|
@@ -129,13 +129,13 @@ BRH:0
|
|
|
129
129
|
end_of_record
|
|
130
130
|
TN:
|
|
131
131
|
SF:src/components/MlCreatePdfForm/MlCreatePdfForm.tsx
|
|
132
|
-
FN:
|
|
132
|
+
FN:24,(anonymous_0)
|
|
133
133
|
FNF:1
|
|
134
134
|
FNH:0
|
|
135
135
|
FNDA:0,(anonymous_0)
|
|
136
|
-
DA:
|
|
137
|
-
DA:
|
|
138
|
-
DA:
|
|
136
|
+
DA:24,10
|
|
137
|
+
DA:25,0
|
|
138
|
+
DA:34,10
|
|
139
139
|
LF:3
|
|
140
140
|
LH:2
|
|
141
141
|
BRF:0
|
|
@@ -3473,8 +3473,8 @@ FNH:0
|
|
|
3473
3473
|
FNDA:0,useLayerEvent
|
|
3474
3474
|
FNDA:0,(anonymous_1)
|
|
3475
3475
|
FNDA:0,(anonymous_2)
|
|
3476
|
-
DA:6,
|
|
3477
|
-
DA:11,
|
|
3476
|
+
DA:6,0
|
|
3477
|
+
DA:11,0
|
|
3478
3478
|
DA:13,0
|
|
3479
3479
|
DA:14,0
|
|
3480
3480
|
DA:16,0
|
|
@@ -3495,7 +3495,7 @@ DA:38,0
|
|
|
3495
3495
|
DA:39,0
|
|
3496
3496
|
DA:46,0
|
|
3497
3497
|
LF:21
|
|
3498
|
-
LH:
|
|
3498
|
+
LH:0
|
|
3499
3499
|
BRDA:17,0,0,0
|
|
3500
3500
|
BRDA:17,0,1,0
|
|
3501
3501
|
BRDA:18,1,0,0
|
|
@@ -3811,6 +3811,178 @@ BRF:8
|
|
|
3811
3811
|
BRH:0
|
|
3812
3812
|
end_of_record
|
|
3813
3813
|
TN:
|
|
3814
|
+
SF:src/hooks/useCameraFollowPath/useCameraFollowPath.tsx
|
|
3815
|
+
FN:40,(anonymous_0)
|
|
3816
|
+
FN:60,(anonymous_1)
|
|
3817
|
+
FN:66,(anonymous_2)
|
|
3818
|
+
FN:73,(anonymous_3)
|
|
3819
|
+
FN:80,(anonymous_4)
|
|
3820
|
+
FN:84,(anonymous_5)
|
|
3821
|
+
FN:94,(anonymous_6)
|
|
3822
|
+
FN:105,centerRoute
|
|
3823
|
+
FN:117,play
|
|
3824
|
+
FN:145,(anonymous_9)
|
|
3825
|
+
FN:160,reset
|
|
3826
|
+
FN:167,(anonymous_11)
|
|
3827
|
+
FN:173,(anonymous_12)
|
|
3828
|
+
FN:174,(anonymous_13)
|
|
3829
|
+
FNF:14
|
|
3830
|
+
FNH:0
|
|
3831
|
+
FNDA:0,(anonymous_0)
|
|
3832
|
+
FNDA:0,(anonymous_1)
|
|
3833
|
+
FNDA:0,(anonymous_2)
|
|
3834
|
+
FNDA:0,(anonymous_3)
|
|
3835
|
+
FNDA:0,(anonymous_4)
|
|
3836
|
+
FNDA:0,(anonymous_5)
|
|
3837
|
+
FNDA:0,(anonymous_6)
|
|
3838
|
+
FNDA:0,centerRoute
|
|
3839
|
+
FNDA:0,play
|
|
3840
|
+
FNDA:0,(anonymous_9)
|
|
3841
|
+
FNDA:0,reset
|
|
3842
|
+
FNDA:0,(anonymous_11)
|
|
3843
|
+
FNDA:0,(anonymous_12)
|
|
3844
|
+
FNDA:0,(anonymous_13)
|
|
3845
|
+
DA:40,10
|
|
3846
|
+
DA:43,0
|
|
3847
|
+
DA:44,0
|
|
3848
|
+
DA:45,0
|
|
3849
|
+
DA:46,0
|
|
3850
|
+
DA:47,0
|
|
3851
|
+
DA:48,0
|
|
3852
|
+
DA:49,0
|
|
3853
|
+
DA:51,0
|
|
3854
|
+
DA:52,0
|
|
3855
|
+
DA:53,0
|
|
3856
|
+
DA:55,0
|
|
3857
|
+
DA:60,0
|
|
3858
|
+
DA:61,0
|
|
3859
|
+
DA:62,0
|
|
3860
|
+
DA:63,0
|
|
3861
|
+
DA:66,0
|
|
3862
|
+
DA:67,0
|
|
3863
|
+
DA:68,0
|
|
3864
|
+
DA:69,0
|
|
3865
|
+
DA:70,0
|
|
3866
|
+
DA:73,0
|
|
3867
|
+
DA:74,0
|
|
3868
|
+
DA:75,0
|
|
3869
|
+
DA:76,0
|
|
3870
|
+
DA:77,0
|
|
3871
|
+
DA:80,0
|
|
3872
|
+
DA:81,0
|
|
3873
|
+
DA:84,0
|
|
3874
|
+
DA:85,0
|
|
3875
|
+
DA:86,0
|
|
3876
|
+
DA:87,0
|
|
3877
|
+
DA:88,0
|
|
3878
|
+
DA:89,0
|
|
3879
|
+
DA:90,0
|
|
3880
|
+
DA:91,0
|
|
3881
|
+
DA:92,0
|
|
3882
|
+
DA:94,0
|
|
3883
|
+
DA:95,0
|
|
3884
|
+
DA:96,0
|
|
3885
|
+
DA:97,0
|
|
3886
|
+
DA:98,0
|
|
3887
|
+
DA:99,0
|
|
3888
|
+
DA:100,0
|
|
3889
|
+
DA:101,0
|
|
3890
|
+
DA:102,0
|
|
3891
|
+
DA:106,0
|
|
3892
|
+
DA:107,0
|
|
3893
|
+
DA:109,0
|
|
3894
|
+
DA:110,0
|
|
3895
|
+
DA:114,0
|
|
3896
|
+
DA:118,0
|
|
3897
|
+
DA:120,0
|
|
3898
|
+
DA:121,0
|
|
3899
|
+
DA:122,0
|
|
3900
|
+
DA:123,0
|
|
3901
|
+
DA:126,0
|
|
3902
|
+
DA:129,0
|
|
3903
|
+
DA:130,0
|
|
3904
|
+
DA:139,0
|
|
3905
|
+
DA:140,0
|
|
3906
|
+
DA:142,0
|
|
3907
|
+
DA:144,0
|
|
3908
|
+
DA:145,0
|
|
3909
|
+
DA:146,0
|
|
3910
|
+
DA:149,0
|
|
3911
|
+
DA:150,0
|
|
3912
|
+
DA:151,0
|
|
3913
|
+
DA:152,0
|
|
3914
|
+
DA:153,0
|
|
3915
|
+
DA:156,0
|
|
3916
|
+
DA:161,0
|
|
3917
|
+
DA:162,0
|
|
3918
|
+
DA:163,0
|
|
3919
|
+
DA:164,0
|
|
3920
|
+
DA:167,0
|
|
3921
|
+
DA:168,0
|
|
3922
|
+
DA:169,0
|
|
3923
|
+
DA:170,0
|
|
3924
|
+
DA:173,0
|
|
3925
|
+
DA:174,0
|
|
3926
|
+
DA:175,0
|
|
3927
|
+
DA:176,0
|
|
3928
|
+
DA:181,0
|
|
3929
|
+
DA:187,10
|
|
3930
|
+
LF:85
|
|
3931
|
+
LH:2
|
|
3932
|
+
BRDA:51,0,0,0
|
|
3933
|
+
BRDA:51,0,1,0
|
|
3934
|
+
BRDA:53,1,0,0
|
|
3935
|
+
BRDA:53,1,1,0
|
|
3936
|
+
BRDA:62,2,0,0
|
|
3937
|
+
BRDA:62,2,1,0
|
|
3938
|
+
BRDA:67,3,0,0
|
|
3939
|
+
BRDA:67,3,1,0
|
|
3940
|
+
BRDA:69,4,0,0
|
|
3941
|
+
BRDA:69,4,1,0
|
|
3942
|
+
BRDA:69,5,0,0
|
|
3943
|
+
BRDA:69,5,1,0
|
|
3944
|
+
BRDA:74,6,0,0
|
|
3945
|
+
BRDA:74,6,1,0
|
|
3946
|
+
BRDA:76,7,0,0
|
|
3947
|
+
BRDA:76,7,1,0
|
|
3948
|
+
BRDA:76,8,0,0
|
|
3949
|
+
BRDA:76,8,1,0
|
|
3950
|
+
BRDA:85,9,0,0
|
|
3951
|
+
BRDA:85,9,1,0
|
|
3952
|
+
BRDA:95,10,0,0
|
|
3953
|
+
BRDA:95,10,1,0
|
|
3954
|
+
BRDA:106,11,0,0
|
|
3955
|
+
BRDA:106,11,1,0
|
|
3956
|
+
BRDA:106,12,0,0
|
|
3957
|
+
BRDA:106,12,1,0
|
|
3958
|
+
BRDA:109,13,0,0
|
|
3959
|
+
BRDA:109,13,1,0
|
|
3960
|
+
BRDA:109,14,0,0
|
|
3961
|
+
BRDA:109,14,1,0
|
|
3962
|
+
BRDA:118,15,0,0
|
|
3963
|
+
BRDA:118,15,1,0
|
|
3964
|
+
BRDA:120,16,0,0
|
|
3965
|
+
BRDA:120,16,1,0
|
|
3966
|
+
BRDA:122,17,0,0
|
|
3967
|
+
BRDA:122,17,1,0
|
|
3968
|
+
BRDA:122,18,0,0
|
|
3969
|
+
BRDA:122,18,1,0
|
|
3970
|
+
BRDA:129,19,0,0
|
|
3971
|
+
BRDA:129,19,1,0
|
|
3972
|
+
BRDA:139,20,0,0
|
|
3973
|
+
BRDA:139,20,1,0
|
|
3974
|
+
BRDA:161,21,0,0
|
|
3975
|
+
BRDA:161,21,1,0
|
|
3976
|
+
BRDA:168,22,0,0
|
|
3977
|
+
BRDA:168,22,1,0
|
|
3978
|
+
BRDA:168,23,0,0
|
|
3979
|
+
BRDA:168,23,1,0
|
|
3980
|
+
BRDA:175,24,0,0
|
|
3981
|
+
BRDA:175,24,1,0
|
|
3982
|
+
BRF:50
|
|
3983
|
+
BRH:0
|
|
3984
|
+
end_of_record
|
|
3985
|
+
TN:
|
|
3814
3986
|
SF:src/hooks/useExportMap/index.ts
|
|
3815
3987
|
FN:13,useExportMap
|
|
3816
3988
|
FN:16,(anonymous_1)
|
|
@@ -3836,96 +4008,74 @@ BRH:0
|
|
|
3836
4008
|
end_of_record
|
|
3837
4009
|
TN:
|
|
3838
4010
|
SF:src/hooks/useExportMap/lib.ts
|
|
3839
|
-
FN:
|
|
3840
|
-
FN:
|
|
3841
|
-
FN:
|
|
3842
|
-
FN:
|
|
3843
|
-
FN:
|
|
3844
|
-
FN:
|
|
3845
|
-
FN:
|
|
3846
|
-
FN:
|
|
3847
|
-
FN:
|
|
3848
|
-
FN:
|
|
3849
|
-
FN:
|
|
3850
|
-
|
|
3851
|
-
FNF:12
|
|
4011
|
+
FN:19,(anonymous_0)
|
|
4012
|
+
FN:38,(anonymous_1)
|
|
4013
|
+
FN:68,(anonymous_2)
|
|
4014
|
+
FN:71,(anonymous_3)
|
|
4015
|
+
FN:76,(anonymous_4)
|
|
4016
|
+
FN:99,createJsPdf
|
|
4017
|
+
FN:107,(anonymous_6)
|
|
4018
|
+
FN:112,(anonymous_7)
|
|
4019
|
+
FN:132,(anonymous_8)
|
|
4020
|
+
FN:150,downloadPdf
|
|
4021
|
+
FN:153,(anonymous_10)
|
|
4022
|
+
FNF:11
|
|
3852
4023
|
FNH:0
|
|
3853
4024
|
FNDA:0,(anonymous_0)
|
|
3854
4025
|
FNDA:0,(anonymous_1)
|
|
3855
4026
|
FNDA:0,(anonymous_2)
|
|
3856
4027
|
FNDA:0,(anonymous_3)
|
|
3857
4028
|
FNDA:0,(anonymous_4)
|
|
3858
|
-
FNDA:0,(anonymous_5)
|
|
3859
4029
|
FNDA:0,createJsPdf
|
|
4030
|
+
FNDA:0,(anonymous_6)
|
|
3860
4031
|
FNDA:0,(anonymous_7)
|
|
3861
4032
|
FNDA:0,(anonymous_8)
|
|
3862
|
-
FNDA:0,(anonymous_9)
|
|
3863
4033
|
FNDA:0,downloadPdf
|
|
3864
|
-
FNDA:0,(
|
|
3865
|
-
DA:
|
|
4034
|
+
FNDA:0,(anonymous_10)
|
|
4035
|
+
DA:19,10
|
|
4036
|
+
DA:20,0
|
|
3866
4037
|
DA:21,0
|
|
3867
|
-
DA:
|
|
4038
|
+
DA:24,0
|
|
3868
4039
|
DA:25,0
|
|
3869
4040
|
DA:26,0
|
|
3870
4041
|
DA:27,0
|
|
3871
4042
|
DA:28,0
|
|
3872
4043
|
DA:29,0
|
|
3873
4044
|
DA:30,0
|
|
3874
|
-
DA:
|
|
3875
|
-
DA:
|
|
4045
|
+
DA:32,0
|
|
4046
|
+
DA:35,0
|
|
3876
4047
|
DA:36,0
|
|
3877
|
-
DA:
|
|
3878
|
-
DA:
|
|
4048
|
+
DA:38,0
|
|
4049
|
+
DA:41,0
|
|
3879
4050
|
DA:42,0
|
|
3880
|
-
DA:
|
|
3881
|
-
DA:
|
|
3882
|
-
DA:
|
|
4051
|
+
DA:48,0
|
|
4052
|
+
DA:61,0
|
|
4053
|
+
DA:67,0
|
|
3883
4054
|
DA:68,0
|
|
4055
|
+
DA:69,0
|
|
3884
4056
|
DA:71,0
|
|
3885
|
-
DA:
|
|
3886
|
-
DA:
|
|
3887
|
-
DA:
|
|
3888
|
-
DA:84,0
|
|
3889
|
-
DA:85,0
|
|
3890
|
-
DA:86,0
|
|
3891
|
-
DA:87,0
|
|
3892
|
-
DA:89,0
|
|
3893
|
-
DA:90,0
|
|
3894
|
-
DA:92,0
|
|
3895
|
-
DA:93,0
|
|
3896
|
-
DA:95,0
|
|
3897
|
-
DA:96,0
|
|
3898
|
-
DA:99,0
|
|
4057
|
+
DA:72,0
|
|
4058
|
+
DA:77,0
|
|
4059
|
+
DA:80,0
|
|
3899
4060
|
DA:100,0
|
|
3900
|
-
DA:
|
|
4061
|
+
DA:106,0
|
|
3901
4062
|
DA:108,0
|
|
4063
|
+
DA:112,0
|
|
4064
|
+
DA:114,0
|
|
4065
|
+
DA:126,0
|
|
4066
|
+
DA:127,0
|
|
3902
4067
|
DA:129,0
|
|
4068
|
+
DA:132,0
|
|
3903
4069
|
DA:135,0
|
|
3904
|
-
DA:
|
|
3905
|
-
DA:
|
|
3906
|
-
DA:
|
|
3907
|
-
|
|
3908
|
-
DA:156,0
|
|
3909
|
-
DA:158,0
|
|
3910
|
-
DA:161,0
|
|
3911
|
-
DA:164,0
|
|
3912
|
-
DA:180,0
|
|
3913
|
-
DA:182,0
|
|
3914
|
-
DA:183,0
|
|
3915
|
-
LF:50
|
|
4070
|
+
DA:151,0
|
|
4071
|
+
DA:153,0
|
|
4072
|
+
DA:154,0
|
|
4073
|
+
LF:38
|
|
3916
4074
|
LH:1
|
|
3917
|
-
BRDA:
|
|
3918
|
-
BRDA:
|
|
3919
|
-
BRDA:
|
|
3920
|
-
BRDA:
|
|
3921
|
-
|
|
3922
|
-
BRDA:89,2,1,0
|
|
3923
|
-
BRDA:92,3,0,0
|
|
3924
|
-
BRDA:92,3,1,0
|
|
3925
|
-
BRDA:95,4,0,0
|
|
3926
|
-
BRDA:95,4,1,0
|
|
3927
|
-
BRDA:130,5,0,0
|
|
3928
|
-
BRDA:130,5,1,0
|
|
3929
|
-
BRF:12
|
|
4075
|
+
BRDA:41,0,0,0
|
|
4076
|
+
BRDA:41,0,1,0
|
|
4077
|
+
BRDA:101,1,0,0
|
|
4078
|
+
BRDA:101,1,1,0
|
|
4079
|
+
BRF:4
|
|
3930
4080
|
BRH:0
|
|
3931
4081
|
end_of_record
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
format: string;
|
|
5
|
-
setFormat: (format: string) => void;
|
|
6
|
-
quality: string;
|
|
7
|
-
setQuality: (quality: string) => void;
|
|
8
|
-
orientation: string;
|
|
9
|
-
setOrientation: (orientation: string) => void;
|
|
10
|
-
geojsonRef: MutableRefObject<Feature | undefined>;
|
|
11
|
-
template: {
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
declare const PdfContext: React.Context<Partial<PdfContextInterface>>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PdfContextInterface } from './pdfContext';
|
|
3
|
+
declare const PdfContext: React.Context<PdfContextInterface>;
|
|
17
4
|
declare const PdfContextProvider: ({ children }: {
|
|
18
5
|
children: React.ReactNode;
|
|
19
6
|
}) => JSX.Element;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PdfPreviewOptions } from './pdfContext';
|
|
3
|
+
import { Feature } from '@turf/turf';
|
|
4
|
+
declare type Props = {
|
|
2
5
|
/**
|
|
3
6
|
* Id of the target MapLibre instance in mapContext
|
|
4
7
|
*/
|
|
5
8
|
mapId?: string;
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
10
|
+
* Polygon GeoJson Feature representing the printing area
|
|
9
11
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
geojsonRef: React.MutableRefObject<Feature | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* a state variable containing the PDF previews current state
|
|
15
|
+
*/
|
|
16
|
+
options: PdfPreviewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* setter function to update the current PDF preview state
|
|
19
|
+
*/
|
|
20
|
+
setOptions: (arg1: (val: PdfPreviewOptions) => PdfPreviewOptions) => void;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* PdfPreview component renders a transformable (drag, scale, rotate) preview of the desired export or print content
|
|
24
|
+
*/
|
|
25
|
+
export default function PdfPreview(props: Props): JSX.Element;
|
|
13
26
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PdfPreviewProps {
|
|
2
|
+
/**
|
|
3
|
+
* Id of the target MapLibre instance in mapContext
|
|
4
|
+
*/
|
|
5
|
+
mapId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
8
|
+
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
9
|
+
*/
|
|
10
|
+
insertBeforeLayer?: string;
|
|
11
|
+
}
|
|
12
|
+
export default function PdfPreview(props: PdfPreviewProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface useCameraFollowPathProps {
|
|
2
|
+
/**
|
|
3
|
+
* Id of the target MapLibre instance in mapContext
|
|
4
|
+
*/
|
|
5
|
+
mapId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
8
|
+
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
9
|
+
*/
|
|
10
|
+
insertBeforeLayer?: string;
|
|
11
|
+
pause?: boolean;
|
|
12
|
+
zoom?: number;
|
|
13
|
+
pitch?: number;
|
|
14
|
+
speed?: number;
|
|
15
|
+
kmPerStep?: number;
|
|
16
|
+
route?: any;
|
|
17
|
+
stepDuration?: number;
|
|
18
|
+
timeoutId?: number;
|
|
19
|
+
}
|
|
20
|
+
export type { useCameraFollowPathProps };
|
|
21
|
+
/**
|
|
22
|
+
* Component template
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
declare const useCameraFollowPath: {
|
|
26
|
+
(props: useCameraFollowPathProps): {
|
|
27
|
+
play: () => void;
|
|
28
|
+
reset: () => void;
|
|
29
|
+
};
|
|
30
|
+
defaultProps: {
|
|
31
|
+
mapId: undefined;
|
|
32
|
+
zoom: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default useCameraFollowPath;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const storyoptions: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: {
|
|
4
|
+
(props: import("./useCameraFollowPath").useCameraFollowPathProps): {
|
|
5
|
+
play: () => void;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
};
|
|
8
|
+
defaultProps: {
|
|
9
|
+
mapId: undefined;
|
|
10
|
+
zoom: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
argTypes: {};
|
|
14
|
+
decorators: ((Story: any) => JSX.Element)[];
|
|
15
|
+
};
|
|
16
|
+
export default storyoptions;
|
|
17
|
+
export declare const ExampleConfig: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as MapLibreMap } from "./components/MapLibreMap/MapLibreMap";
|
|
|
2
2
|
export { default as MlComponentTemplate } from "./components/MlComponentTemplate/MlComponentTemplate";
|
|
3
3
|
export { default as MlCreatePdfButton } from "./components/MlCreatePdfButton/MlCreatePdfButton";
|
|
4
4
|
export { default as MlCreatePdfForm } from "./components/MlCreatePdfForm/MlCreatePdfForm";
|
|
5
|
+
export { default as MlPdfPreview } from "./components/MlCreatePdfForm/lib/PdfPreview";
|
|
5
6
|
export { default as MlFeatureEditor } from "./components/MlFeatureEditor/MlFeatureEditor";
|
|
6
7
|
export { default as MlFillExtrusionLayer } from "./components/MlFillExtrusionLayer/MlFillExtrusionLayer";
|
|
7
8
|
export { default as MlFollowGps } from "./components/MlFollowGps/MlFollowGps";
|
|
@@ -30,6 +31,7 @@ export { default as useMap } from "./hooks/useMap";
|
|
|
30
31
|
export { default as useWms } from "./hooks/useWms.js";
|
|
31
32
|
export { default as useSource } from "./hooks/useSource";
|
|
32
33
|
export { default as useExportMap } from "./hooks/useExportMap";
|
|
34
|
+
export { default as useCameraFollowPath } from "./hooks/useCameraFollowPath/useCameraFollowPath";
|
|
33
35
|
export { MapComponentsProvider } from "./contexts/MapContext";
|
|
34
36
|
export { default as MapContext } from "./contexts/MapContext";
|
|
35
37
|
export { default as SimpleDataProvider } from "./contexts/SimpleDataProvider";
|