Constructors

  • Constructor: OpenLayers.Style Creates a UserStyle.

    Parameters: style - {Object} Optional hash of style properties that will be used as default style for this style object. This style applies if no rules are specified. Symbolizers defined in rules will extend this default style. options - {Object} An optional object with properties to set on the style.

    Valid options: rules - {Array(<OpenLayers.Rule>)} List of rules to be added to the style.

    Returns: {<OpenLayers.Style>}

    Parameters

    Returns Style

Properties

defaultStyle: SymbolizerProperties

Property: defaultStyle {Object} hash of style properties to use as default for merging rule-based style symbolizers onto. If no rules are defined, createSymbolizer will return this style. If is set to true, the defaultStyle will only be taken into account if there are rules defined.

description: string

Property: description {String} Description of this style (set if abstract is included in SLD)

id: string

Property: id {String} A unique id for this session.

isDefault: boolean

APIProperty: isDefault {Boolean}

layerName: string

APIProperty: layerName {} name of the layer that this style belongs to, usually according to the NamedLayer attribute of an SLD document.

name: string

APIProperty: name {String}

rules: Rule[]

Property: rules {Array(<OpenLayers.Rule>)}

title: string

Property: title {String} Title of this style (set if included in SLD)