Skip to content

MapLayerOptionsBuilder🔗

Constructor🔗

func NewMapLayerOptionsBuilder() *MapLayerOptionsBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *MapLayerOptionsBuilder) Build() (MapLayerOptions, error)

Config🔗

Custom options depending on the type

func (builder *MapLayerOptionsBuilder) Config(config any) *MapLayerOptionsBuilder

FilterData🔗

Defines a frame MatcherConfig that may filter data for the given layer

func (builder *MapLayerOptionsBuilder) FilterData(filterData any) *MapLayerOptionsBuilder

Location🔗

Common method to define geometry fields

func (builder *MapLayerOptionsBuilder) Location(location cog.Builder[common.FrameGeometrySource]) *MapLayerOptionsBuilder

Name🔗

configured unique display name

func (builder *MapLayerOptionsBuilder) Name(name string) *MapLayerOptionsBuilder

Opacity🔗

Common properties:

https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html

Layer opacity (0-1)

func (builder *MapLayerOptionsBuilder) Opacity(opacity int64) *MapLayerOptionsBuilder

Tooltip🔗

Check tooltip (defaults to true)

func (builder *MapLayerOptionsBuilder) Tooltip(tooltip bool) *MapLayerOptionsBuilder

Type🔗

func (builder *MapLayerOptionsBuilder) Type(typeArg string) *MapLayerOptionsBuilder

See also🔗