OpenLayers OpenLayers

Changeset 4058

Show
Ignore:
Timestamp:
08/27/07 13:28:12 (1 year ago)
Author:
crschmidt
Message:

Documentation for Marker.destroy: We can't actually remove the marker from
the layer because we don't have a reference to the layer, but this isn't
adequately documented in the Marker.destroy api docs. (See #932)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Marker.js

    r3984 r4058  
    8080    }, 
    8181     
     82    /** 
     83     * APIMethod: destroy 
     84     * Destroy the marker. You must first remove the marker from any  
     85     * layer which it has been added to, or you will get buggy behavior. 
     86     * (This can not be done within the marker since the marker does not 
     87     * know which layer it is attached to.) 
     88     */ 
    8289    destroy: function() { 
    8390        this.map = null;