diff --git a/docs/components/MapView.md b/docs/components/MapView.md index 2f4dd62b..e7284c61 100644 --- a/docs/components/MapView.md +++ b/docs/components/MapView.md @@ -8,8 +8,7 @@ MapView backed by MapLibre Native | ---- | :--: | :-----: | :------: | :----------: | | contentInset | `number[] \| number` | `none` | `false` | The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport. | | style | `ViewProps["style"]` | `none` | `false` | Style for wrapping React Native View | -| styleURL | `string` | `none` | `false` | Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default` | -| styleJSON | `string` | `none` | `false` | StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec | +| mapStyle | `string \| object` | `none` | `false` | Style for map - either a URL or a Style JSON (https://maplibre.org/maplibre-style-spec/). Default: `MapLibreRN.StyleURL.Default` | | preferredFramesPerSecond | `number` | `none` | `false` | iOS: The preferred frame rate at which the map view is rendered.
The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,
which will adaptively set the preferred frame rate based on the capability of
the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.

Android: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.
This property can be set to arbitrary integer values. | | localizeLabels | `boolean` | `false` | `false` | Automatically change the language of the map labels to the system’s preferred language,
this is not something that can be toggled on/off | | zoomEnabled | `boolean` | `none` | `false` | Enable/Disable zoom on the map | diff --git a/docs/docs.json b/docs/docs.json index 49dd675b..ffb2bf0a 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -2405,18 +2405,11 @@ "description": "Style for wrapping React Native View" }, { - "name": "styleURL", + "name": "mapStyle", "required": false, - "type": "string", - "default": "none", - "description": "Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default`" - }, - { - "name": "styleJSON", - "required": false, - "type": "string", + "type": "string \\| object", "default": "none", - "description": "StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec" + "description": "Style for map - either a URL or a Style JSON (https://maplibre.org/maplibre-style-spec/). Default: `MapLibreRN.StyleURL.Default`" }, { "name": "preferredFramesPerSecond",