Categorygithub.com/sfomuseum/go-http-leaflet-layers
modulepackage
0.1.0
Repository: https://github.com/sfomuseum/go-http-leaflet-layers.git
Documentation: pkg.go.dev

# README

go-http-leaflet-layers

Go HTTP middleware for the leaflet.layers.control plugin.

Documentation

Go Reference

Documentation is incomplete.

See also

# Packages

No description provided by the author

# Functions

Append all the files in the net/http FS instance containing the embedded LeafletLayers assets to an *http.ServeMux instance.
Append all the files in the net/http FS instance containing the embedded LeafletLayers assets to an *http.ServeMux instance ensuring that all URLs are prepended with prefix.
AppendResourcesHandler will rewrite any HTML produced by previous handler to include the necessary markup to load LeafletLayers JavaScript files and related assets.
AppendResourcesHandlerWithPrefix will rewrite any HTML produced by previous handler to include the necessary markup to load LeafletLayers JavaScript files and related assets ensuring that all URIs are prepended with a prefix.
AssetsHandler returns a net/http FS instance containing the embedded LeafletLayers assets that are included with this package.
AssetsHandler returns a net/http FS instance containing the embedded LeafletLayers assets that are included with this package ensuring that all URLs are stripped of prefix.
Return a *LeafletLayersOptions struct with default paths and URIs.

# Variables

By default the go-http-protomaps package will also include and reference Leaflet.js assets using the aaronland/go-http-leaflet package.
By default the go-http-protomaps package will also include and reference Leaflet.js resources using the aaronland/go-http-leaflet package.

# Structs

LeafletLayersOptions provides a list of JavaScript and CSS link to include with HTML output.