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 156 156 var activated = false; 157 157 if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) { 158 158 // 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 }; 160 167 this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME, options); 161 168 this.map.addLayer(this.layer); 162 169 activated = true;
