Property: data {Object}
Property: id {String}
Property: layer {<OpenLayers.Layer>}
Property: lonlat {<OpenLayers.LonLat>}
Property: marker {<OpenLayers.Marker>}
Property: popup {<OpenLayers.Popup>}
Method: createMarker Based on the data associated with the Feature, create and return a marker object.
Returns: {<OpenLayers.Marker>} A Marker Object created from the 'lonlat' and 'icon' properties set in this.data. If no 'lonlat' is set, returns null. If no 'icon' is set, OpenLayers.Marker() will load the default image.
Note - this.marker is set to return value
Method: createPopup Creates a popup object created from the 'lonlat', 'popupSize', and 'popupContentHTML' properties set in this.data. It uses this.marker.icon as default anchor.
If no 'lonlat' is set, returns null. If no this.marker has been created, no anchor is sent.
Note - the returned popup object is 'owned' by the feature, so you cannot use the popup's destroy method to discard the popup. Instead, you must use the feature's destroyPopup
Note - this.popup is set to return value
Parameters: closeBox - {Boolean} create popup with closebox or not
Returns: {<OpenLayers.Popup>} Returns the created popup, which is also set as 'popup' property of this feature. Will be of whatever type specified by this feature's 'popupClass' property, but must be of type <OpenLayers.Popup>.
Method: destroy nullify references to prevent circular references and memory leaks
Method: destroyMarker Destroys marker. If user overrides the createMarker() function, s/he should be able to also specify an alternative function for destroying it
Method: destroyPopup Destroys the popup created via createPopup.
As with the marker, if user overrides the createPopup() function, s/he should also be able to override the destruction
Method: onScreen
Returns: {Boolean} Whether or not the feature is currently visible on screen (based on its 'lonlat' property)
Constructor: OpenLayers.Feature Constructor for features.
Parameters: layer - {<OpenLayers.Layer>} lonlat - {<OpenLayers.LonLat>} data - {Object}
Returns: {<OpenLayers.Feature>}