OpenLayers OpenLayers

Changeset 108

Show
Ignore:
Timestamp:
05/17/06 13:25:27 (3 years ago)
Author:
crschmidt
Message:

Create a clone method for Icon.

Files:

Legend:

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

    r87 r108  
    1111        this.size = size; 
    1212        this.url = url; 
     13    }, 
     14 
     15    // Create a copy of this icon. 
     16    clone: function() { 
     17        return new OpenLayers.icon(this.size, this.url); 
    1318    } 
    1419}