A small local-first GPX / geoJSON routes viewer
SourceLocally saved routes: (0)
This lib exposes a few svelte components to:
See the demo above for a quick overview.
This can be handy for hikers, bikepackers, travellers, outdoor enthusiasts or if you want to build an app for these users.
Npm install the package
TODO: install from github won’t give build artifacts, so the user will have to build the lib themselves.
# via npm registry
npm install svelte-local-gpx-viewer
# via github repo (no build artifacts, you'll have to build the lib yourself)
npm install 0gust1/svelte-local-gpx-viewer
<script lang="ts">
import { GpxLoad, LocalRoutesList, MapLibreWrapper } from 'svelte-local-gpx-viewer';
</script>
<div>
<div>
<GpxLoad />
</div>
<div>
<LocalRoutesList />
</div>
</div>
<div>
<MapLibreWrapper />
</div>
TODO: test case to write and document