ControlsOptions🔗
Definition🔗
type ControlsOptions struct {
// Zoom (upper left)
ShowZoom *bool `json:"showZoom,omitempty"`
// let the mouse wheel zoom
MouseWheelZoom *bool `json:"mouseWheelZoom,omitempty"`
// Lower right
ShowAttribution *bool `json:"showAttribution,omitempty"`
// Scale options
ShowScale *bool `json:"showScale,omitempty"`
// Show debug
ShowDebug *bool `json:"showDebug,omitempty"`
// Show measure
ShowMeasure *bool `json:"showMeasure,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode ControlsOptions
from JSON.
Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …
Equals🔗
Equals tests the equality of two ControlsOptions
objects.
Validate🔗
Validate checks all the validation constraints that may be defined on ControlsOptions
fields for violations and returns them.