Class: Profil

ol.control. Profil

OpenLayers 3 Profil Control. Draw a profil of a feature (with a 3D geometry)


new Profil( [_ol_control_])

Parameters:
Name Type Argument Description
_ol_control_ Object <optional>

opt_options.

Fires:
  • over, out,event: show

Extends

Members


info

Custom infos list

Methods


getImage(type, encoderOptions)

Get profil image

Parameters:
Name Type Description
type string | undefined

image format or 'canvas' to get the canvas image, default image/png.

encoderOptions Number | undefined

between 0 and 1 indicating image quality image/jpeg or image/webp, default 0.92.

Returns:

requested data uri

Type
string

hide()

Hide panel


isShown()

Is panel visible


onMove()

Mouse move over canvas


Show popup info

Parameters:
Name Type Description
info string

to display as a popup


setGeometry(f [, options])

Set the geometry to draw the profil.

Parameters:
Name Type Argument Description
f ol.Feature | ol.geom

the feature.

options Object <optional>
  • projection {ol.ProjectionLike} feature projection, default projection of the map - zunit {m|km} default m - unit {m|km} default km - zmin {Number|undefined} default 0 - zmax {Number|undefined} default max Z of the feature - graduation {Number|undefined} z graduation default 100 - amplitude {integer|undefined} amplitude of the altitude, default zmax-zmin

show()

Show panel


toggle()

Toggle panel