dojox/geo/openlayers/WidgetFeature (version 1.10)

dojox/geo/openlayers/Feature

Summary

Wraps a Dojo widget, provide geolocalisation of the widget and interface to Layer class.

This class allows to add a widget in a dojox.geo.openlayers.Layer.

Usage

var foo = new WidgetFeature(params);
dojox/geo/openlayers/WidgetFeature
Parameter Type Description
params Object

The parameters describing the widget.

See the dojox/geo/openlayers/WidgetFeature reference documentation for more information.

Property Summary

Method Summary

Properties

Methods

_getLocalXY(p)

From projected coordinates to screen coordinates

Parameter Type Description
p Object

Object with x and y fields

Returns:Array
_getWidget()

Creates, if necessary the widget and returns it

Returns:undefined
_getWidgetHeight()

gets the widget height

Returns:undefined | number
_getWidgetWidth()

gets the widget width

Returns:undefined | number
_setLayer(l)

Sets the layer to which this Feature belongs

Called when the feature is added to the Layer.

Parameter Type Description
l dojox/geo/openlayers/Layer
_updateWidgetPosition(box)

Places the widget with the computed x and y values

Parameter Type Description
box undefined
getCoordinateSystem()

Returns the coordinate system in which coordinates of this feature are expressed.

Returns:any | undefined

The coordinate system in which coordinates of this feature are expressed.

getLayer()

Returns the Layer to which this feature belongs.

Returns:any | undefined

The layer to which this feature belongs.

getParameters()

Returns the parameters describing the widget.

Returns:dojox.geo.openlayers.__WidgetFeatureArgs | undefined

The parameters describing the widget.

remove()

removes this feature.

Remove this feature by disconnecting the widget from the dom.

render()

renders the widget.

Places the widget accordingly to longitude and latitude defined in parameters. This function is called when the center of the maps or zoom factor changes.

setCoordinateSystem(cs)

Set the coordinate system in which coordinates of this feature are expressed.

Parameter Type Description
cs OpenLayers.Projection

The coordinate system in which coordinates of this feature are expressed.

setParameters(params)

Sets the parameters describing the widget.

Parameter Type Description
params Object

The parameters describing the widget.

Error in the documentation? Can’t find what you are looking for? Let us know!