Vector features use the OpenLayers.Geometry classes as geometry description. They have an ‘attributes’ property, which is the data object, and a ‘style’ property, the default values of which are defined in the OpenLayers.Feature.Vector.style objects.
OpenLayers. Feature. Vector | Vector features use the OpenLayers.Geometry classes as geometry description. |
Properties | |
geometry | {OpenLayers.Geometry} |
attributes | {Object} This object holds arbitrary properties that describe the feature. |
style | {Object} |
Constructor | |
OpenLayers. Feature. Vector | Create a vector feature. |
Constants | |
OpenLayers. Feature. Vector. style | OpenLayers features can have a number of style attributes. |
Create a vector feature.
geometry | {OpenLayers.Geometry} The geometry that this feature represents. |
attributes | {Object} An optional object that will be mapped to the attributes property. |
style | {Object} An optional style object. |
OpenLayers features can have a number of style attributes. The ‘default’ style will typically be used if no other style is specified.