MapViewConfig🔗
Definition🔗
type MapViewConfig struct {
Id string `json:"id"`
Lat *int64 `json:"lat,omitempty"`
Lon *int64 `json:"lon,omitempty"`
Zoom *int64 `json:"zoom,omitempty"`
MinZoom *int64 `json:"minZoom,omitempty"`
MaxZoom *int64 `json:"maxZoom,omitempty"`
Padding *int64 `json:"padding,omitempty"`
AllLayers *bool `json:"allLayers,omitempty"`
LastOnly *bool `json:"lastOnly,omitempty"`
Layer *string `json:"layer,omitempty"`
Shared *bool `json:"shared,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode MapViewConfig
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 MapViewConfig
objects.
Validate🔗
Validate checks all the validation constraints that may be defined on MapViewConfig
fields for violations and returns them.