1- declare module 'maplibre-gl-measures' {
2- import { Map } from 'maplibre-gl' ;
3-
4- interface MeasuresControlOptions {
5- lang ?: {
6- areaMeasurementButtonTitle ?: string ;
7- lengthMeasurementButtonTitle ?: string ;
8- clearMeasurementsButtonTitle ?: string ;
9- } ;
10- units ?: 'imperial' | 'metric' ;
11- unitsGroupingSeparator ?: string ;
12- style ?: {
13- text ?: {
14- radialOffset ?: number ;
15- letterSpacing ?: number ;
16- color ?: string ;
17- haloColor ?: string ;
18- haloWidth ?: number ;
19- font ?: string ;
20- } ;
21- common ?: {
22- midPointRadius ?: number ;
23- midPointColor ?: string ;
24- midPointHaloRadius ?: number ;
25- midPointHaloColor ?: string ;
26- } ;
27- areaMeasurement ?: {
28- fillColor ?: string ;
29- fillOutlineColor ?: string ;
30- fillOpacity ?: number ;
31- lineWidth ?: number ;
32- } ;
33- lengthMeasurement ?: {
34- lineWidth ?: number ;
35- lineColor ?: string ;
36- } ;
37- } ;
38- onRender ?: ( features : any ) => void ;
39- onCreate ?: ( features : any ) => void ;
40- }
41-
42- class MeasuresControl {
43- constructor ( options : MeasuresControlOptions ) ;
44-
45- onAdd ( map : Map ) : HTMLElement ;
46-
47- onRemove ( ) : void ;
48- }
49-
50- export default MeasuresControl ;
51- }
1+ declare module 'maplibre-gl-measures' {
2+ import { Map } from 'maplibre-gl' ;
3+
4+ interface MeasuresControlOptions {
5+ lang ?: {
6+ areaMeasurementButtonTitle ?: string ;
7+ lengthMeasurementButtonTitle ?: string ;
8+ clearMeasurementsButtonTitle ?: string ;
9+ } ;
10+ units ?: 'imperial' | 'metric' ;
11+ unitsGroupingSeparator ?: string ;
12+ style ?: {
13+ text ?: {
14+ radialOffset ?: number ;
15+ letterSpacing ?: number ;
16+ color ?: string ;
17+ haloColor ?: string ;
18+ haloWidth ?: number ;
19+ font ?: string ;
20+ } ;
21+ common ?: {
22+ midPointRadius ?: number ;
23+ midPointColor ?: string ;
24+ midPointHaloRadius ?: number ;
25+ midPointHaloColor ?: string ;
26+ } ;
27+ areaMeasurement ?: {
28+ fillColor ?: string ;
29+ fillOutlineColor ?: string ;
30+ fillOpacity ?: number ;
31+ lineWidth ?: number ;
32+ } ;
33+ lengthMeasurement ?: {
34+ lineWidth ?: number ;
35+ lineColor ?: string ;
36+ } ;
37+ } ;
38+ onRender ?: ( features : any ) => void ;
39+ onCreate ?: ( features : any ) => void ;
40+ }
41+
42+ class MeasuresControl {
43+ constructor ( options : MeasuresControlOptions ) ;
44+
45+ onAdd ( map : Map ) : HTMLElement ;
46+
47+ onRemove ( ) : void ;
48+ }
49+
50+ export default MeasuresControl ;
51+ }
0 commit comments