@tracktor/map 0.1.4 → 0.1.5
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 +11 -9
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ This library depends on:
|
|
|
25
25
|
## 🔧 Usage
|
|
26
26
|
|
|
27
27
|
```tsx
|
|
28
|
-
import MarkerMap from "@tracktor/map";
|
|
28
|
+
import { MapProvider, MarkerMap } from "@tracktor/map";
|
|
29
29
|
|
|
30
30
|
const markers = [
|
|
31
31
|
{
|
|
@@ -39,14 +39,16 @@ const markers = [
|
|
|
39
39
|
},
|
|
40
40
|
];
|
|
41
41
|
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
<MapProvider licenseMuiX="your-muix-licence" licenceMapbox="your-mapbox-licence">
|
|
43
|
+
<MarkerMap
|
|
44
|
+
markers={markers}
|
|
45
|
+
center={[2.3522, 48.8566]}
|
|
46
|
+
zoom={10}
|
|
47
|
+
fitBounds
|
|
48
|
+
height={400}
|
|
49
|
+
width="100%"
|
|
50
|
+
/>
|
|
51
|
+
</MapProvider>
|
|
50
52
|
```
|
|
51
53
|
|
|
52
54
|
## 🧩 Props
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A react library to easily display map with multiple tools",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.5",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/main.umd.cjs",
|
|
9
9
|
"module": "dist/main.js",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"env:load": "./bin/load-env.sh",
|
|
20
19
|
"example": "vite",
|
|
21
20
|
"build": "tsc && vite build",
|
|
22
21
|
"lint": "eslint .",
|