Skip to content

andreamancuso/osm-static-map-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osm-static-map-generator

IMPORTANT: If you plan to use this library, then please remember to follow OpenStreetMap's Licence/Attribution Guidelines.

What is it?

A small C++ library for WebAssembly which generates a map using OpenStreetMap's raster tiles.

Why did you write it?

I have been working on React bindings for Dear Imgui and I need a C++ map component. This library will enable me to build one. That said, I figured someone else might find it useful.

Which dependencies have you used?

Why did you use leptonica for image manipulation?

Based on my research, it is battle-tested and is the only library I got to work in WebAssembly without getting too many headaches.

What inspired you when writing the library?

I came across: https://github.com/StephanGeorg/staticmaps , a brilliant library for Node.js. After porting it to the browser, replacing Sharp with Jimp, I decided to port it to WASM.

What's next in the roadmap?

  • proper error handling/recovery, preferably with a retry mechanism
  • tests
  • throttling
  • multithreading support (once I figure out how to tame pthreads in emscripten)
  • coroutines (once I figure out how to make them work)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published