OpenLayers OpenLayers

Ticket #1577: patch-1577-r7497-A0.diff

File patch-1577-r7497-A0.diff, 1.1 kB (added by elemoine, 6 months ago)
  • lib/OpenLayers/Handler/RegularPolygon.js

    old new  
    156156        var activated = false; 
    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); 
    162169            activated = true;