You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before installing `react-native-leaflet-view`, you need to install [react-native-webview](https://github.com/react-native-webview/react-native-webview), which is a core dependency for this package to work. You can install it using yarn or npm:
28
+
This package is required for proper file handling and WebView functionality in React Native:
29
+
-[react-native-webview](https://github.com/react-native-webview/react-native-webview). You can install it using yarn or npm:
30
30
31
31
```sh
32
32
npm install --save react-native-webview
@@ -42,20 +42,16 @@ yarn add react-native-webview
42
42
43
43
For Expo projects, you'll need to add additional dependencies:
| loadingIndicator | optional | React.ReactElement | custom component displayed while the map is loading |
150
+
| onError | optional | function | Will receive an error event |
151
+
| onLoadEnd | optional | function | Called when map stops loading |
152
+
| onLoadStart | optional | function | Called when the map starts to load |
153
+
| onMessageReceived | required | function | This function receives messages in the form of a WebviewLeafletMessage object from the map |
154
+
| mapLayers | optional | MapLayer array | An array of map layers |
155
+
| mapMarkers | optional | MapMarker array | An array of map markers |
156
+
| mapShapes | optional | MapShape[]| An array of map shapes |
161
157
| mapCenterPosition | optional | {lat: [Lat], lng: [Lng]} object | The center position of the map. This coordinate will not be accurate if the map has been moved manually. However, calling the map's setMapCenterPosition function will cause the map to revert to this location |
162
-
| ownPositionMarker | optional | Marker | A special marker that has an ID of OWN_POSTION_MARKER_ID |
163
-
| zoom | optional | number | Desired zoom value of the map |
164
-
| doDebug | optional | boolean | A flag for debug message logging |
165
-
| source | optional | WebView["source"]| Loads static html or a uri (with optional headers) in the WebView. |
158
+
| ownPositionMarker | optional | Marker | A special marker that has an ID of OWN_POSTION_MARKER_ID |
159
+
| zoom | optional | number | Desired zoom value of the map |
160
+
| doDebug | optional | boolean | A flag for debug message logging |
161
+
| source | optional | WebView["source"]| Loads static html or a uri (with optional headers) in the WebView. |
162
+
| zoomControl | optional | boolean | Controls the visibility of the zoom controls on the map. |
163
+
| attributionControl | optional | boolean | Controls the visibility of the attribution control on the map. |
0 commit comments