The function returns a key that is defined in the styleGroups map. This function will be called for each feature being rendered by the display. The display expects this method to return the key for the styleGroup of how the feature should be rendered for the respective zoomlevel.
the color for the background of the layer
This object contains key/styleGroup pairs. A styleGroup is an array of Style, that exactly defines how a feature should be rendered.
Generated using TypeDoc
This is an interface to describe how certain features should be rendered within a layer.
{ styleGroups: { "myLineStyle": [ {zIndex: 0, type: "Line", opacity: 1, stroke: "#BE6B65", strokeWidth: 16}, {zIndex: 1, type: "Line", opacity: 1, stroke: "#E6A08C", strokeWidth: 12}, {zIndex: 2, type: "Text", fill: "#000000", "textRef": "properties.name"} ] }, assign: function(feature: Feature, zoomlevel: number){ return "myLineStyle"; } }