OpenLayers OpenLayers

Changeset 5396

Show
Ignore:
Timestamp:
12/13/07 09:53:36 (1 year ago)
Author:
elemoine
Message:

Handler.Point doesn't render points if no default resolution props in map object. Thanks fredj for the review. (closes #1205)

Files:

Legend:

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

    r5085 r5396  
    8888        // create temporary vector layer for rendering geometry sketch 
    8989        // TBD: this could be moved to initialize/destroy - setting visibility here 
    90         var options = {displayInLayerSwitcher: false}; 
     90        var options = { 
     91            displayInLayerSwitcher: false, 
     92            // indicate that the temp vector layer will never be out of range 
     93            // without this, resolution properties must be specified at the 
     94            // map-level for this temporary layer to init its resolutions 
     95            // correctly 
     96            calculateInRange: function() { return true; } 
     97        }; 
    9198        this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME, options); 
    9299        this.map.addLayer(this.layer);