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
vertexSize number

size of the vertex to draw. Default is 0 (no vertex).

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

getVertexSize()

Get the vertex size

Returns:
Type
number

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

setVertexSize(ver)

Set the vertex size Use 0 to disable vertex rendering

Parameters:
Name Type Description
ver number