OpenLayers OpenLayers

Changeset 7588

Show
Ignore:
Timestamp:
07/29/08 18:13:08 (4 months ago)
Author:
elemoine
Message:

new RegularPolygon features can be invisible, p=me, r=crschmidt (closes #1577)

Files:

Legend:

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

    r6131 r7588  
    157157        if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) { 
    158158            // create temporary vector layer for rendering geometry sketch 
    159             var options = {displayInLayerSwitcher: false}; 
     159            var options = { 
     160                displayInLayerSwitcher: false, 
     161                // indicate that the temp vector layer will never be out of range 
     162                // without this, resolution properties must be specified at the 
     163                // map-level for this temporary layer to init its resolutions 
     164                // correctly 
     165                calculateInRange: function() { return true; } 
     166            }; 
    160167            this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME, options); 
    161168            this.map.addLayer(this.layer);