Registry / other / flopp-go-staticmaps

flopp-go-staticmaps

JSON →
library0.0.0-20250629121348-973b17999e19gogounverified

Package sm renders static map images from OpenStreetMap tiles with markers, paths, and filled areas.

go get github.com/flopp/go-staticmaps
INSTALL
IMPORT
SIG · FLOPP-GO-STATICMAP
F
flopp-go-staticmaps
othergov0.0.0-20250629121348-973b17999e19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sm
github.com/flopp/go-staticmaps

Render a static map centered on Berlin at zoom level 10

package main import ( "os" "github.com/flopp/go-staticmaps" "github.com/fogleman/gg" ) func main() { ctx := sm.NewContext() ctx.SetCenter(52.5200, 13.4050, 10) img, _ := ctx.Render() img.SavePNG("map.png") }
Debug
Known issues
gotchaRequires network access to download OSM tiles; no offline mode
fix
Ensure internet connectivity or cache tiles manually
affects: all
Upgrade
Version history
0.0.0-20250629121348-973b17999e19latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
flopp-go-staticmaps — go get flopp-go-staticmaps · libregistry