react-native-leaflet-kit 1.0.1 → 1.0.3
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/README.md +2 -18
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ yarn add react-native-leaflet-kit react-native-webview
|
|
|
30
30
|
Wrap your map elements inside the `MapContainer` and add layers as needed.
|
|
31
31
|
|
|
32
32
|
```tsx
|
|
33
|
-
import { MapContainer, TileLayer, Marker, Polyline } from '
|
|
33
|
+
import { MapContainer, TileLayer, Marker, Polyline } from 'react-native-leaflet-kit';
|
|
34
34
|
|
|
35
35
|
const MyMap = () => {
|
|
36
36
|
return (
|
|
@@ -52,23 +52,6 @@ const MyMap = () => {
|
|
|
52
52
|
};
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
### 🏎️ Using the Metride Wrapper
|
|
56
|
-
For the most streamlined experience, use the `MetrideMap` component which handles all boilerplate:
|
|
57
|
-
|
|
58
|
-
```tsx
|
|
59
|
-
import { MetrideMap } from '@/components/metro/MetrideMap';
|
|
60
|
-
|
|
61
|
-
<MetrideMap
|
|
62
|
-
markers={myStations}
|
|
63
|
-
paths={myRouteLines}
|
|
64
|
-
userMarker={currentUserLocation}
|
|
65
|
-
fitBounds={true}
|
|
66
|
-
isDark={true}
|
|
67
|
-
/>
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
55
|
---
|
|
73
56
|
|
|
74
57
|
## 🧩 Component Documentation
|
|
@@ -298,6 +281,7 @@ Defines a specific area or boundary.
|
|
|
298
281
|
fillColor="rgba(0, 0, 255, 0.2)"
|
|
299
282
|
/>
|
|
300
283
|
```
|
|
284
|
+
---
|
|
301
285
|
|
|
302
286
|
### 9. `<GeoJSON />`
|
|
303
287
|
The standard for complex spatial data. Renders entire datasets (lines, points, polygons) from a single JSON.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-leaflet-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A professional, pluggable, and declarative Map library for React Native built on top of Leaflet, WebView, and OpenStreetMap tiles",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -49,4 +49,4 @@
|
|
|
49
49
|
"url": "https://github.com/ashishpradhan01/react-native-leaflet-kit/issues"
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/ashishpradhan01/react-native-leaflet-kit#readme"
|
|
52
|
-
}
|
|
52
|
+
}
|