Class: Profile

ol.style. Profile

Profile style Draw a profile on the map


new Profile(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
stroke ol.style.Stroke
fill ol.style.Fill
scale number

z scale

zIndex number
geometry ol.geom.Geometry

Extends

Methods


_render(geom, e)

Renderer function

Parameters:
Name Type Description
geom Array.<ol.coordinate>

The pixel coordinates of the geometry in GeoJSON notation

e ol.render.State

The olx.render.State of the layer renderer


getFill()

Get style stroke

Returns:
Type
ol.style.Fill

getScale()

Get z scale

Returns:
Type
number

getStroke()

Get style stroke

Returns:
Type
ol.style.Stroke

setFill(fill)

Set style stroke

Parameters:
Name Type Description
fill ol.style.Fill

setScale(sc)

Set z scale

Parameters:
Name Type Description
sc number

setStroke(stroke)

Set style stroke

Parameters:
Name Type Description
stroke ol.style.Stroke