Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/c1m50c/snapr
Library enabling a flexible and frictionless way to render snapshots of maps with overlayed geometries.
https://github.com/c1m50c/snapr
geo maps python rust
Last synced: about 4 hours ago
JSON representation
Library enabling a flexible and frictionless way to render snapshots of maps with overlayed geometries.
- Host: GitHub
- URL: https://github.com/c1m50c/snapr
- Owner: c1m50c
- License: mit
- Created: 2024-09-28T01:58:26.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T21:33:41.000Z (6 days ago)
- Last Synced: 2024-11-12T21:36:10.448Z (6 days ago)
- Topics: geo, maps, python, rust
- Language: Rust
- Homepage: https://crates.io/crates/snapr
- Size: 268 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snapr
[![](https://img.shields.io/crates/v/snapr?style=flat-square)](https://crates.io/crates/snapr)
[![](https://img.shields.io/github/license/c1m50c/snapr?style=flat-square)](https://github.com/c1m50c/snapr/blob/main/LICENSE)
[![](https://img.shields.io/github/actions/workflow/status/c1m50c/snapr/publish.yml?style=flat-square)](https://github.com/c1m50c/snapr/actions/workflows/publish.yml)Snapr ([/ˈsnæp ər/](http://ipa-reader.xyz/?text=%CB%88sn%C3%A6p:%C9%99r)) is a library that enables a flexible and frictionless way to render snapshots of maps with overlayed geometries.
## Examples
### snapr
- [Open Street Maps](./examples/open-street-maps/) - Collection of binaries using an OSM tile fetcher.
- [Point](./examples/open-street-maps/src/point/) - Example showing how to draw a point geometry.
- [Line](./examples/open-street-maps/src/line/) - Example showing how to draw a line geometry.
- [Line String](./examples/open-street-maps/src/line_string/) - Example showing how to draw a line string geometry.
- [Polygon](./examples/open-street-maps/src/polygon/) - Example showing how to draw a polygon geometry.
- [Labels](./examples/label/) - Example showing how to label a point geometry.
- [SVGs](./examples/svg/) - Example showing how to draw an SVG on top of a point geometry.
- [Batch](./examples/batch/) - Example showing how to use a [`TileFetcher::Batch`](https://docs.rs/snapr/latest/snapr/enum.TileFetcher.html#variant.Batch), as opposed to the usual [`TileFetcher::Individual`](https://docs.rs/snapr/latest/snapr/enum.TileFetcher.html#variant.Individual) variant.
- [Stateful](./examples/stateful/) - Example showing how to implement the `IndividualTileFetcher` trait to enable a `TileFetcher` that keeps track of state.
- [Tokio](./examples/tokio/) - Example showing how to use the `tokio` feature flag to build an asynchronous `TileFetcher`.## License
Licensed under the [MIT License](./LICENSE) found at the root of the repository.