#maps #geospatial #geography

snapr

Library enabling a flexible and frictionless way to render snapshots of maps with overlayed geometries

16 releases (6 breaking)

0.7.1 Nov 12, 2024
0.7.0 Nov 5, 2024
0.6.1 Oct 28, 2024
0.5.0 Oct 21, 2024
0.1.0 Oct 3, 2024

#109 in Geospatial

Download history 119/week @ 2024-09-28 362/week @ 2024-10-05 917/week @ 2024-10-12 598/week @ 2024-10-19 182/week @ 2024-10-26 122/week @ 2024-11-02 117/week @ 2024-11-09 18/week @ 2024-11-16 3/week @ 2024-11-23 7/week @ 2024-11-30

145 downloads per month

MIT license

70KB
1.5K SLoC

Snapr

Snapr (/ˈsnæp ər/) is a library that enables a flexible and frictionless way to render snapshots of maps with overlayed geometries.

Examples

  • Open Street Maps - Collection of binaries using an OSM tile fetcher.
    • Point - Example showing how to draw a point geometry.
    • Line - Example showing how to draw a line geometry.
    • Line String - Example showing how to draw a line string geometry.
    • Polygon - Example showing how to draw a polygon geometry.
  • Labels - Example showing how to label a point geometry.
  • SVGs - Example showing how to draw an SVG on top of a point geometry.
  • Batch - Example showing how to use a TileFetcher::Batch, as opposed to the usual TileFetcher::Individual variant.
  • Stateful - Example showing how to implement the IndividualTileFetcher trait to enable a TileFetcher that keeps track of state.
  • Tokio - Example showing how to use the tokio feature flag to build an asynchronous TileFetcher.

License

Licensed under the MIT License found at the root of the repository.

Dependencies

~12–19MB
~252K SLoC