OpenLayers OpenLayers

Changeset 1723

Show
Ignore:
Timestamp:
10/24/06 21:09:23 (2 years ago)
Author:
euzuro
Message:

call superconstructor before performing layer-specific calculations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/imageLayer/lib/OpenLayers/Layer/Image.js

    r1721 r1723  
    5353        this.extent = extent; 
    5454        this.size = size; 
     55        OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); 
     56 
    5557        this.aspectRatio = (this.extent.getHeight() / this.size.h) / 
    5658                           (this.extent.getWidth() / this.size.w); 
    57         OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); 
    5859 
    5960        // unless explicitly set in options, the layer will be a base layer