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.
See the dojox/geo/openlayers/_base.Feature reference documentation for more information.
From projected coordinates to screen coordinates
Parameter | Type | Description |
---|---|---|
p | Object | Object with x and y fields |
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 |
Returns the coordinate system in which coordinates of this feature are expressed.
The coordinate system in which coordinates of this feature are expressed.
Returns the Layer to which this feature belongs.
The layer to which this feature belongs.
Subclasses implements specific behavior. Called when removed from the layer.
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. |