Changeset 1503
- Timestamp:
- 09/26/06 17:46:10 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Feature.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Feature.js
r1497 r1503 68 68 } 69 69 if (this.popup != null) { 70 this. popup.destroy();70 this.destroyPopup(this.popup); 71 71 this.popup = null; 72 72 } … … 77 77 * @returns A Marker Object created from the 'lonlat' and 'icon' properties 78 78 * set in this.data. If no 'lonlat' is set, returns null. If no 79 * 'icon' is set, OpenLayers.Marker() will load the default image 79 * 'icon' is set, OpenLayers.Marker() will load the default image. 80 * 81 * Note: this.marker is set to return value 82 * 80 83 * @type OpenLayers.Marker 81 84 */ … … 90 93 }, 91 94 95 /** If user overrides the createMarker() function, s/he should be able 96 * to also specify an alternative function for destroying it 97 */ 92 98 destroyMarker: function() { 93 99 this.marker.destroy(); … … 95 101 96 102 /** 103 * @returns A Popup Object created from the 'lonlat', 'popupSize', 104 * and 'popupContentHTML' properties set in this.data. It uses 105 * this.marker.icon as default anchor. 106 * 107 * If no 'lonlat' is set, returns null. 108 * If no this.marker has been created, no anchor is sent. 97 109 * 110 * Note: this.popup is set to return value 111 * 112 * @type OpenLayers.Popup.AnchoredBubble 98 113 */ 99 114 createPopup: function() { … … 113 128 }, 114 129 130 131 /** As with the marker, if user overrides the createPopup() function, s/he 132 * should also be able to override the destruction 133 */ 134 destroyPopup: function() { 135 this.popup.destroy() 136 }, 137 115 138 CLASS_NAME: "OpenLayers.Feature" 116 139 };
