@rnmapbox/maps 10.2.0-beta.3 → 10.2.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.
Files changed (38) hide show
  1. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Annotation.kt +1 -1
  2. package/ios/RNMBX/RNMBXMapViewComponentView.mm +8 -3
  3. package/lib/module/components/MarkerView.js +2 -2
  4. package/lib/module/components/MarkerView.js.map +1 -1
  5. package/lib/module/components/codeparts/LayerPropsCommon.codepart-tsx +1 -1
  6. package/lib/typescript/src/components/BackgroundLayer.d.ts +1 -1
  7. package/lib/typescript/src/components/CircleLayer.d.ts +1 -1
  8. package/lib/typescript/src/components/FillExtrusionLayer.d.ts +1 -1
  9. package/lib/typescript/src/components/FillLayer.d.ts +1 -1
  10. package/lib/typescript/src/components/HeatmapLayer.d.ts +1 -1
  11. package/lib/typescript/src/components/ImageSource.d.ts +1 -1
  12. package/lib/typescript/src/components/LineLayer.d.ts +1 -1
  13. package/lib/typescript/src/components/ModelLayer.d.ts +1 -1
  14. package/lib/typescript/src/components/RasterDemSource.d.ts +1 -1
  15. package/lib/typescript/src/components/RasterLayer.d.ts +1 -1
  16. package/lib/typescript/src/components/RasterSource.d.ts +1 -1
  17. package/lib/typescript/src/components/ShapeSource.d.ts +1 -1
  18. package/lib/typescript/src/components/SkyLayer.d.ts +1 -1
  19. package/lib/typescript/src/components/SymbolLayer.d.ts +1 -1
  20. package/lib/typescript/src/components/VectorSource.d.ts +1 -1
  21. package/package.json +1 -1
  22. package/src/components/BackgroundLayer.tsx +1 -1
  23. package/src/components/CircleLayer.tsx +1 -1
  24. package/src/components/FillExtrusionLayer.tsx +1 -1
  25. package/src/components/FillLayer.tsx +1 -1
  26. package/src/components/HeatmapLayer.tsx +1 -1
  27. package/src/components/ImageSource.tsx +1 -1
  28. package/src/components/LineLayer.tsx +1 -1
  29. package/src/components/MarkerView.tsx +3 -3
  30. package/src/components/ModelLayer.tsx +1 -1
  31. package/src/components/RasterDemSource.tsx +1 -1
  32. package/src/components/RasterLayer.tsx +1 -1
  33. package/src/components/RasterSource.tsx +1 -1
  34. package/src/components/ShapeSource.tsx +1 -1
  35. package/src/components/SkyLayer.tsx +1 -1
  36. package/src/components/SymbolLayer.tsx +1 -1
  37. package/src/components/VectorSource.tsx +1 -1
  38. package/src/components/codeparts/LayerPropsCommon.codepart-tsx +1 -1
@@ -23,7 +23,7 @@ fun ViewAnnotationOptions.Builder.geometry(point: Geometry): ViewAnnotationOptio
23
23
 
24
24
  fun ViewAnnotationOptions.Builder.offsets(x: Double, y: Double) {
25
25
  this.variableAnchors(listOf(
26
- ViewAnnotationAnchorConfig.Builder().anchor(ViewAnnotationAnchor.CENTER).offsetY(x).offsetY(y).build()
26
+ ViewAnnotationAnchorConfig.Builder().anchor(ViewAnnotationAnchor.CENTER).offsetX(x).offsetY(y).build()
27
27
  ))
28
28
  }
29
29
 
@@ -50,6 +50,7 @@ using namespace facebook::react;
50
50
  RNMBXMapView *_view;
51
51
  RNMBXMapViewEventDispatcher *_eventDispatcher;
52
52
  CGRect _frame;
53
+ id _lastStyleURL;
53
54
  }
54
55
 
55
56
  - (instancetype)initWithFrame:(CGRect)frame
@@ -135,7 +136,7 @@ using namespace facebook::react;
135
136
  {
136
137
  const auto &oldViewProps = static_cast<const RNMBXMapViewProps &>(*oldProps);
137
138
  const auto &newViewProps = static_cast<const RNMBXMapViewProps &>(*props);
138
-
139
+
139
140
  RNMBX_REMAP_OPTIONAL_PROP_BOOL(attributionEnabled, reactAttributionEnabled)
140
141
 
141
142
  id attributionPosition = RNMBXConvertFollyDynamicToId(newViewProps.attributionPosition);
@@ -187,7 +188,7 @@ using namespace facebook::react;
187
188
  RNMBX_REMAP_OPTIONAL_PROP_BOOL(scrollEnabled, reactScrollEnabled)
188
189
 
189
190
  RNMBX_REMAP_OPTIONAL_PROP_BOOL(rotateEnabled, reactRotateEnabled)
190
-
191
+
191
192
  RNMBX_REMAP_OPTIONAL_PROP_BOOL(pitchEnabled, reactPitchEnabled)
192
193
 
193
194
  id preferredFramesPerSecond = RNMBXConvertFollyDynamicToId(newViewProps.preferredFramesPerSecond);
@@ -209,7 +210,10 @@ using namespace facebook::react;
209
210
 
210
211
  id styleURL = RNMBXConvertFollyDynamicToId(newViewProps.styleURL);
211
212
  if (styleURL != nil) {
212
- _view.reactStyleURL = styleURL;
213
+ if (_lastStyleURL == nil || ![_lastStyleURL isEqual:styleURL]) {
214
+ _view.reactStyleURL = styleURL;
215
+ _lastStyleURL = styleURL;
216
+ }
213
217
  }
214
218
 
215
219
  [super updateProps:props oldProps:oldProps];
@@ -220,6 +224,7 @@ using namespace facebook::react;
220
224
  - (void)prepareForRecycle
221
225
  {
222
226
  [super prepareForRecycle];
227
+ _lastStyleURL = nil;
223
228
  [self prepareView];
224
229
  }
225
230
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { NativeModules, Platform } from 'react-native';
5
- import RNMBXMakerViewContentCoponent from '../specs/RNMBXMarkerViewContentNativeComponent';
5
+ import RNMBXMakerViewContentComponent from '../specs/RNMBXMarkerViewContentNativeComponent';
6
6
  import NativeMarkerViewComponent from '../specs/RNMBXMarkerViewNativeComponent';
7
7
  import { toJSONString } from "../utils/index.js";
8
8
  import { makePoint } from "../utils/geoUtils.js";
@@ -75,7 +75,7 @@ class MarkerView extends React.PureComponent {
75
75
  onTouchEnd: e => {
76
76
  e.stopPropagation();
77
77
  },
78
- children: /*#__PURE__*/_jsx(RNMBXMakerViewContentCoponent, {
78
+ children: /*#__PURE__*/_jsx(RNMBXMakerViewContentComponent, {
79
79
  collapsable: false,
80
80
  style: {
81
81
  flex: 0,
@@ -1 +1 @@
1
- {"version":3,"names":["React","NativeModules","Platform","RNMBXMakerViewContentCoponent","NativeMarkerViewComponent","toJSONString","makePoint","PointAnnotation","jsx","_jsx","Mapbox","RNMBXModule","MarkerView","PureComponent","defaultProps","anchor","x","y","allowOverlap","allowOverlapWithPuck","isSelected","lastId","_idForPointAnnotation","__idForPointAnnotation","undefined","_getCoordinate","coordinate","render","props","console","warn","OS","MapboxV10","id","RNMBXMarkerView","style","flex","alignSelf","Number","onTouchEnd","e","stopPropagation","children","collapsable","onStartShouldSetResponder","_event"],"sourceRoot":"../../../src","sources":["components/MarkerView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,QAAQ,QAAwB,cAAc;AAEtE,OAAOC,6BAA6B,MAAM,gDAAgD;AAC1F,OAAOC,yBAAyB,MAAM,yCAAyC;AAE/E,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,SAAS,QAAQ,sBAAmB;AAE7C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,MAAM,GAAGT,aAAa,CAACU,WAAW;AAuCxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,UAAU,SAASZ,KAAK,CAACa,aAAa,CAAQ;EAClD,OAAOC,YAAY,GAAmB;IACpCC,MAAM,EAAE;MAAEC,CAAC,EAAE,GAAG;MAAEC,CAAC,EAAE;IAAI,CAAC;IAC1BC,YAAY,EAAE,KAAK;IACnBC,oBAAoB,EAAE,KAAK;IAC3BC,UAAU,EAAE;EACd,CAAC;EAED,OAAOC,MAAM,GAAG,CAAC;EAGjBC,qBAAqBA,CAAA,EAAW;IAC9B,IAAI,IAAI,CAACC,sBAAsB,KAAKC,SAAS,EAAE;MAC7CZ,UAAU,CAACS,MAAM,GAAGT,UAAU,CAACS,MAAM,GAAG,CAAC;MACzC,IAAI,CAACE,sBAAsB,GAAG,MAAMX,UAAU,CAACS,MAAM,EAAE;IACzD;IACA,OAAO,IAAI,CAACE,sBAAsB;EACpC;EAEAE,cAAcA,CAACC,UAAoB,EAAsB;IACvD,IAAI,CAACA,UAAU,EAAE;MACf,OAAOF,SAAS;IAClB;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B,EAAE,IAAI,CAACS,KAAK,CAACT,oBAAqB;MACtDC,UAAU,EAAE,IAAI,CAACQ,KAAK,CAACR,UAAW;MAClCmB,UAAU,EAAGC,CAAC,IAAK;QACjBA,CAAC,CAACC,eAAe,CAAC,CAAC;MACrB,CAAE;MAAAC,QAAA,eAEFjC,IAAA,CAACN,6BAA6B;QAC5BwC,WAAW,EAAE,KAAM;QACnBR,KAAK,EAAE;UAAEC,IAAI,EAAE,CAAC;UAAEC,SAAS,EAAE;QAAa,CAAE;QAC5CO,yBAAyB,EAAGC,MAAM,IAAK;UACrC,OAAO,IAAI;QACb,CAAE;QACFN,UAAU,EAAGC,CAAC,IAAK;UACjBA,CAAC,CAACC,eAAe,CAAC,CAAC;QACrB,CAAE;QAAAC,QAAA,EAED,IAAI,CAACd,KAAK,CAACc;MAAQ,CACS;IAAC,CACjB,CAAC;EAEtB;AACF;AAEA,MAAMR,eAAe,GAAG9B,yBAAyB;AAEjD,eAAeQ,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["React","NativeModules","Platform","RNMBXMakerViewContentComponent","NativeMarkerViewComponent","toJSONString","makePoint","PointAnnotation","jsx","_jsx","Mapbox","RNMBXModule","MarkerView","PureComponent","defaultProps","anchor","x","y","allowOverlap","allowOverlapWithPuck","isSelected","lastId","_idForPointAnnotation","__idForPointAnnotation","undefined","_getCoordinate","coordinate","render","props","console","warn","OS","MapboxV10","id","RNMBXMarkerView","style","flex","alignSelf","Number","onTouchEnd","e","stopPropagation","children","collapsable","onStartShouldSetResponder","_event"],"sourceRoot":"../../../src","sources":["components/MarkerView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,QAAQ,QAAwB,cAAc;AAEtE,OAAOC,8BAA8B,MAAM,gDAAgD;AAC3F,OAAOC,yBAAyB,MAAM,yCAAyC;AAE/E,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,SAAS,QAAQ,sBAAmB;AAE7C,OAAOC,e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rB,CAAE;QAAAC,QAAA,EAED,IAAI,CAACd,KAAK,CAACc;MAAQ,CACU;IAAC,CAClB,CAAC;EAEtB;AACF;AAEA,MAAMR,eAAe,GAAG9B,yBAAyB;AAEjD,eAAeQ,UAAU","ignoreList":[]}
@@ -7,7 +7,7 @@ type LayerPropsCommon = {
7
7
  id: string;
8
8
 
9
9
  /**
10
- * The id refers to en existing layer in the style. Does not create a new layer.
10
+ * The id refers to an existing layer in the style. Does not create a new layer.
11
11
  */
12
12
  existing?: boolean;
13
13
 
@@ -8,7 +8,7 @@ export type Props = {
8
8
  */
9
9
  id: string;
10
10
  /**
11
- * The id refers to en existing layer in the style. Does not create a new layer.
11
+ * The id refers to an existing layer in the style. Does not create a new layer.
12
12
  */
13
13
  existing?: boolean;
14
14
  /**
@@ -9,7 +9,7 @@ type LayerPropsCommon = {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing layer in the style. Does not create a new layer.
12
+ * The id refers to an existing layer in the style. Does not create a new layer.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
@@ -8,7 +8,7 @@ export type Props = {
8
8
  */
9
9
  id: string;
10
10
  /**
11
- * The id refers to en existing layer in the style. Does not create a new layer.
11
+ * The id refers to an existing layer in the style. Does not create a new layer.
12
12
  */
13
13
  existing?: boolean;
14
14
  /**
@@ -9,7 +9,7 @@ type LayerPropsCommon = {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing layer in the style. Does not create a new layer.
12
+ * The id refers to an existing layer in the style. Does not create a new layer.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
@@ -9,7 +9,7 @@ type LayerPropsCommon = {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing layer in the style. Does not create a new layer.
12
+ * The id refers to an existing layer in the style. Does not create a new layer.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
@@ -9,7 +9,7 @@ type Props = BaseProps & {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing source in the style. Does not create a new source.
12
+ * The id refers to an existing source in the style. Does not create a new source.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
@@ -8,7 +8,7 @@ type LayerPropsCommon = {
8
8
  */
9
9
  id: string;
10
10
  /**
11
- * The id refers to en existing layer in the style. Does not create a new layer.
11
+ * The id refers to an existing layer in the style. Does not create a new layer.
12
12
  */
13
13
  existing?: boolean;
14
14
  /**
@@ -8,7 +8,7 @@ type LayerPropsCommon = {
8
8
  */
9
9
  id: string;
10
10
  /**
11
- * The id refers to en existing layer in the style. Does not create a new layer.
11
+ * The id refers to an existing layer in the style. Does not create a new layer.
12
12
  */
13
13
  existing?: boolean;
14
14
  /**
@@ -6,7 +6,7 @@ type Props = {
6
6
  */
7
7
  id: string;
8
8
  /**
9
- * The id refers to en existing source in the style. Does not create a new source.
9
+ * The id refers to an existing source in the style. Does not create a new source.
10
10
  */
11
11
  existing?: boolean;
12
12
  /**
@@ -9,7 +9,7 @@ type LayerPropsCommon = {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing layer in the style. Does not create a new layer.
12
+ * The id refers to an existing layer in the style. Does not create a new layer.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
@@ -7,7 +7,7 @@ type Props = BaseProps & {
7
7
  */
8
8
  id: string;
9
9
  /**
10
- * The id refers to en existing source in the style. Does not create a new source.
10
+ * The id refers to an existing source in the style. Does not create a new source.
11
11
  */
12
12
  existing?: boolean;
13
13
  /**
@@ -9,7 +9,7 @@ export type Props = {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing source in the style. Does not create a new source.
12
+ * The id refers to an existing source in the style. Does not create a new source.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
@@ -8,7 +8,7 @@ export type Props = {
8
8
  */
9
9
  id: string;
10
10
  /**
11
- * The id refers to en existing layer in the style. Does not create a new layer.
11
+ * The id refers to an existing layer in the style. Does not create a new layer.
12
12
  */
13
13
  existing?: boolean;
14
14
  /**
@@ -10,7 +10,7 @@ type LayerPropsCommon = {
10
10
  */
11
11
  id: string;
12
12
  /**
13
- * The id refers to en existing layer in the style. Does not create a new layer.
13
+ * The id refers to an existing layer in the style. Does not create a new layer.
14
14
  */
15
15
  existing?: boolean;
16
16
  /**
@@ -9,7 +9,7 @@ interface Props {
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The id refers to en existing source in the style. Does not create a new source.
12
+ * The id refers to an existing source in the style. Does not create a new source.
13
13
  */
14
14
  existing?: boolean;
15
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnmapbox/maps",
3
- "version": "10.2.0-beta.3",
3
+ "version": "10.2.0",
4
4
  "description": "Community-supported, open-source React Native library for building maps using Mapbox native maps SDK for iOS and Android",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -19,7 +19,7 @@ export type Props = {
19
19
  id: string;
20
20
 
21
21
  /**
22
- * The id refers to en existing layer in the style. Does not create a new layer.
22
+ * The id refers to an existing layer in the style. Does not create a new layer.
23
23
  */
24
24
  existing?: boolean;
25
25
 
@@ -19,7 +19,7 @@ type LayerPropsCommon = {
19
19
  id: string;
20
20
 
21
21
  /**
22
- * The id refers to en existing layer in the style. Does not create a new layer.
22
+ * The id refers to an existing layer in the style. Does not create a new layer.
23
23
  */
24
24
  existing?: boolean;
25
25
 
@@ -19,7 +19,7 @@ export type Props = {
19
19
  id: string;
20
20
 
21
21
  /**
22
- * The id refers to en existing layer in the style. Does not create a new layer.
22
+ * The id refers to an existing layer in the style. Does not create a new layer.
23
23
  */
24
24
  existing?: boolean;
25
25
 
@@ -22,7 +22,7 @@ type LayerPropsCommon = {
22
22
  id: string;
23
23
 
24
24
  /**
25
- * The id refers to en existing layer in the style. Does not create a new layer.
25
+ * The id refers to an existing layer in the style. Does not create a new layer.
26
26
  */
27
27
  existing?: boolean;
28
28
 
@@ -22,7 +22,7 @@ type LayerPropsCommon = {
22
22
  id: string;
23
23
 
24
24
  /**
25
- * The id refers to en existing layer in the style. Does not create a new layer.
25
+ * The id refers to an existing layer in the style. Does not create a new layer.
26
26
  */
27
27
  existing?: boolean;
28
28
 
@@ -21,7 +21,7 @@ type Props = BaseProps & {
21
21
  id: string;
22
22
 
23
23
  /**
24
- * The id refers to en existing source in the style. Does not create a new source.
24
+ * The id refers to an existing source in the style. Does not create a new source.
25
25
  */
26
26
  existing?: boolean;
27
27
 
@@ -18,7 +18,7 @@ type LayerPropsCommon = {
18
18
  id: string;
19
19
 
20
20
  /**
21
- * The id refers to en existing layer in the style. Does not create a new layer.
21
+ * The id refers to an existing layer in the style. Does not create a new layer.
22
22
  */
23
23
  existing?: boolean;
24
24
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NativeModules, Platform, type ViewProps } from 'react-native';
3
3
 
4
- import RNMBXMakerViewContentCoponent from '../specs/RNMBXMarkerViewContentNativeComponent';
4
+ import RNMBXMakerViewContentComponent from '../specs/RNMBXMarkerViewContentNativeComponent';
5
5
  import NativeMarkerViewComponent from '../specs/RNMBXMarkerViewNativeComponent';
6
6
  import { type Position } from '../types/Position';
7
7
  import { toJSONString } from '../utils';
@@ -128,7 +128,7 @@ class MarkerView extends React.PureComponent<Props> {
128
128
  e.stopPropagation();
129
129
  }}
130
130
  >
131
- <RNMBXMakerViewContentCoponent
131
+ <RNMBXMakerViewContentComponent
132
132
  collapsable={false}
133
133
  style={{ flex: 0, alignSelf: 'flex-start' }}
134
134
  onStartShouldSetResponder={(_event) => {
@@ -139,7 +139,7 @@ class MarkerView extends React.PureComponent<Props> {
139
139
  }}
140
140
  >
141
141
  {this.props.children}
142
- </RNMBXMakerViewContentCoponent>
142
+ </RNMBXMakerViewContentComponent>
143
143
  </RNMBXMarkerView>
144
144
  );
145
145
  }
@@ -18,7 +18,7 @@ type LayerPropsCommon = {
18
18
  id: string;
19
19
 
20
20
  /**
21
- * The id refers to en existing layer in the style. Does not create a new layer.
21
+ * The id refers to an existing layer in the style. Does not create a new layer.
22
22
  */
23
23
  existing?: boolean;
24
24
 
@@ -19,7 +19,7 @@ type Props = {
19
19
  id: string;
20
20
 
21
21
  /**
22
- * The id refers to en existing source in the style. Does not create a new source.
22
+ * The id refers to an existing source in the style. Does not create a new source.
23
23
  */
24
24
  existing?: boolean;
25
25
 
@@ -19,7 +19,7 @@ type LayerPropsCommon = {
19
19
  id: string;
20
20
 
21
21
  /**
22
- * The id refers to en existing layer in the style. Does not create a new layer.
22
+ * The id refers to an existing layer in the style. Does not create a new layer.
23
23
  */
24
24
  existing?: boolean;
25
25
 
@@ -20,7 +20,7 @@ type Props = BaseProps & {
20
20
  id: string;
21
21
 
22
22
  /**
23
- * The id refers to en existing source in the style. Does not create a new source.
23
+ * The id refers to an existing source in the style. Does not create a new source.
24
24
  */
25
25
  existing?: boolean;
26
26
 
@@ -33,7 +33,7 @@ export type Props = {
33
33
  id: string;
34
34
 
35
35
  /**
36
- * The id refers to en existing source in the style. Does not create a new source.
36
+ * The id refers to an existing source in the style. Does not create a new source.
37
37
  */
38
38
  existing?: boolean;
39
39
 
@@ -16,7 +16,7 @@ export type Props = {
16
16
  id: string;
17
17
 
18
18
  /**
19
- * The id refers to en existing layer in the style. Does not create a new layer.
19
+ * The id refers to an existing layer in the style. Does not create a new layer.
20
20
  */
21
21
  existing?: boolean;
22
22
 
@@ -24,7 +24,7 @@ type LayerPropsCommon = {
24
24
  id: string;
25
25
 
26
26
  /**
27
- * The id refers to en existing layer in the style. Does not create a new layer.
27
+ * The id refers to an existing layer in the style. Does not create a new layer.
28
28
  */
29
29
  existing?: boolean;
30
30
 
@@ -19,7 +19,7 @@ interface Props {
19
19
  id: string;
20
20
 
21
21
  /**
22
- * The id refers to en existing source in the style. Does not create a new source.
22
+ * The id refers to an existing source in the style. Does not create a new source.
23
23
  */
24
24
  existing?: boolean;
25
25
 
@@ -7,7 +7,7 @@ type LayerPropsCommon = {
7
7
  id: string;
8
8
 
9
9
  /**
10
- * The id refers to en existing layer in the style. Does not create a new layer.
10
+ * The id refers to an existing layer in the style. Does not create a new layer.
11
11
  */
12
12
  existing?: boolean;
13
13