OpenLayers JavaScript Mapping Library |
OpenLayers. FeatureFeatures are combinations of geography and attributes. The OpenLayers.Feature class specifically combines a marker and a lonlat. Summary
OpenLayers. FeatureConstructor for features. Parameters
ReturncreateMarker
Based on the data associated with the Feature, create and return a marker object. Return{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.
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.
Parameters
Returns{<OpenLayers.Popup.AnchoredBubble>} |
nullify references to prevent circular references and memory leaks
destroy: function()
{Boolean} Whether or not the feature is currently visible on screen (based on its ‘lonlat’ property)
onScreen:function()
Based on the data associated with the Feature, create and return a marker object.
createMarker: function()
Destroys marker.
destroyMarker: function()
Creates a popup object created from the ‘lonlat’, ‘popupSize’, and ‘popupContentHTML’ properties set in this.data.
createPopup: function( closeBox )
Destroys the popup created via createPopup.
destroyPopup: function()