dojox/geo/openlayers/_base.Feature (version 1.10)

Summary

A Feature encapsulates an item so that it can be added to a Layer. This class is not attended to be used as it, but serve as a base class for specific features such as GeometryFeature which can display georeferenced geometries and WidgetFeature which can display georeferenced widgets.

Usage

var foo = new _base.Feature();
dojox/geo/openlayers/Feature

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

Method Summary

  • _getLocalXY(p) From projected coordinates to screen coordinates
  • _setLayer(l) Sets the layer to which this Feature belongs
  • getCoordinateSystem() Returns the coordinate system in which coordinates of this feature are expressed.
  • getLayer() Returns the Layer to which this feature belongs.
  • remove() Subclasses implements specific behavior.
  • render() subclasses implements drawing specific behavior.
  • setCoordinateSystem(cs) Set the coordinate system in which coordinates of this feature are expressed.

Methods

_getLocalXY(p)

From projected coordinates to screen coordinates

Parameter Type Description
p Object

Object with x and y fields

Returns:Array
_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
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.

remove()

Subclasses implements specific behavior. Called when removed from the layer.

render()

subclasses implements drawing specific behavior.

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.

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