react-native-leaflet-kit 1.0.0 → 1.0.2
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 +7 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
|
@@ -290,8 +273,14 @@ Defines a specific area or boundary.
|
|
|
290
273
|
| `fillColor` | `string` | Fill color. |
|
|
291
274
|
|
|
292
275
|
**Example:**
|
|
276
|
+
```tsx
|
|
277
|
+
<Polygon
|
|
278
|
+
id="danger-area"
|
|
279
|
+
positions={dangerAreaCoordinates}
|
|
280
|
+
color="blue"
|
|
281
|
+
fillColor="rgba(0, 0, 255, 0.2)"
|
|
282
|
+
/>
|
|
293
283
|
```
|
|
294
|
-
|
|
295
284
|
---
|
|
296
285
|
|
|
297
286
|
### 9. `<GeoJSON />`
|
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.2",
|
|
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",
|