geometry

Available for:Map PanelBI Map Panel

The ApplicationUrl interface allows to get/draw geometries on the map

Methods

Name Summary
drawBbox

Draw bbox on the map

getBbox

Enables drawing on map, allows user to select bbox.

stopDrawing

Stop drawing

Methods • Details

drawBbox(bbox, crs, callback, errback) → {void}(static)

Available for:Map PanelBI Map Panel

Draw bbox on the map

Parameters

Name Type Description
bbox Number

Bbox to be drawn

crs Object optional

CRS object. If not passed current display CRS will be taken

callback
function callback()
optional

Callback executed on a success

errback
function errback(result: Error)
optional

Callback executed on a failure

result

An error

Returns

TypeDescription
void

getBbox(removeAfterDrawing, callback, errback) → {void}(static)

Available for:Map PanelBI Map Panel

Enables drawing on map, allows user to select bbox.

Parameters

Name Type Description
removeAfterDrawing Boolean optional

Default value: true.

Should remove drawed bbox after selection finished

callback
function callback(result: Array)
optional

Callback executed on a success

result

Array containing 4 numbers which describes selected bbox

errback
function errback(result: Error)
optional

Callback executed on a failure

result

An error

Returns

TypeDescription
void

stopDrawing(callback, errback) → {void}(static)

Available for:Map PanelBI Map Panel

Stop drawing

Parameters

Name Type Description
callback
function callback()
optional

Callback executed on a success

errback
function errback(result: Error)
optional

Callback executed on a failure

result

An error

Returns

TypeDescription
void