Top 2.5% dependent repos on proxy.golang.org
proxy.golang.org : github.com/sfomuseum/go-http-protomaps
`go-http-protomaps` is an HTTP middleware package for including Protomaps.js assets in web applications. It exports two principal methods: * `protomaps.AppendAssetHandlers(*http.ServeMux)` which is used to append HTTP handlers to a `http.ServeMux` instance for serving Protomaps JavaScript files, and related assets. * `protomaps.AppendResourcesHandler(http.Handler, *ProtomapsOptions)` which is used to rewrite any HTML produced by previous handler to include the necessary markup to load Protomaps JavaScript files and related assets. Example (Note the way we are embedding the HTML and .pmtiles database as an embed.FS instance)
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/sfomuseum/go-http-protomaps
Keywords:
golang
, leaflet
, protomaps
License: BSD-3-Clause
Latest release: 3 months ago
First release: about 4 years ago
Namespace: github.com/sfomuseum
Dependent packages: 7
Dependent repositories: 4
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago