Versions in this module Expand all Collapse all v2 v2.0.0 Mar 6, 2025 Changes in this version + const LEAFLET_OSM_TILE_URL + const PROTOMAPS_API_TILE_URL + func AssignMapConfigHandler(opts *AssignMapConfigHandlerOptions, mux *http.ServeMux, map_cfg_uri string) error + func MapConfigHandler(cfg *MapConfig) http.Handler + func ProtomapsFileHandlerFromPath(path string, prefix string) (string, http.Handler, error) + type AssignMapConfigHandlerOptions struct + InitialView string + LeafletPointStyle string + LeafletStyle string + MapProvider string + MapTileURI string + ProtomapsTheme string + type InitialBounds [4]float64 + func (v *InitialBounds) String() string + type InitialView [2]float64 + func (v *InitialView) String() string + type LeafletConfig struct + PointStyle *LeafletStyle + Style *LeafletStyle + type LeafletStyle struct + Color string + FillColor string + FillOpacity float64 + Opacity float64 + Radius float64 + Weight float64 + func UnmarshalLeafletStyle(raw string) (*LeafletStyle, error) + func UnmarshalStyleFromReader(r io.Reader) (*LeafletStyle, error) + func UnmarshalStyleFromString(raw string) (*LeafletStyle, error) + type MapConfig struct + InitialBounds *InitialBounds + InitialView *InitialView + InitialZoom int + Leaflet *LeafletConfig + Protomaps *ProtomapsConfig + Provider string + TileURL string + type ProtomapsConfig struct + Theme string Other modules containing this package github.com/aaronland/go-http-maps