animaps-react 0.1.0

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 ADDED
@@ -0,0 +1,51 @@
1
+ # animaps
2
+
3
+ makes animated travel route videos on a map. type in some cities, pick a marker, hit record and you get an mp4 or webm back. good for reels, trip recaps, that kind of thing.
4
+
5
+ it's a single react component, maplibre does the map under the hood.
6
+
7
+ ## install
8
+
9
+ ```
10
+ npm i animaps-react
11
+ ```
12
+
13
+ react 18 or 19 needs to be there too (peer dep).
14
+
15
+ ## use
16
+
17
+ ```tsx
18
+ import { AniMaps } from 'animaps-react'
19
+ import 'animaps-react/style.css'
20
+
21
+ export default function App() {
22
+ return <AniMaps />
23
+ }
24
+ ```
25
+
26
+ pass your own stops and route color if you want:
27
+
28
+ ```tsx
29
+ <AniMaps
30
+ routeColor="#0a84ff"
31
+ initialStops={[
32
+ { city: 'New York', country: 'United States', lat: 40.7128, lng: -74.006 },
33
+ { city: 'Reykjavik', country: 'Iceland', lat: 64.1466, lng: -21.9426 },
34
+ { city: 'Paris', country: 'France', lat: 48.8566, lng: 2.3522 },
35
+ ]}
36
+ />
37
+ ```
38
+
39
+ ## what's in it
40
+
41
+ - route builder with geocoding, plus gpx / geojson import
42
+ - satellite, streets, dark and light map styles
43
+ - camera fly through with the trail drawing as it goes
44
+ - mp4 / webm export, square / landscape / vertical presets, 30 or 60 fps
45
+ - pick the marker sticker and size, change the route color live
46
+
47
+ ## notes
48
+
49
+ export uses webcodecs when the browser has it and falls back to the native recorder otherwise. needs a browser, won't run server side.
50
+
51
+ MIT