Handler.Point doesn't render points if no default resolution props in map object. Thanks fredj for the review. (closes #1205)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -87,7 +87,14 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
|
||||
}
|
||||
// create temporary vector layer for rendering geometry sketch
|
||||
// TBD: this could be moved to initialize/destroy - setting visibility here
|
||||
var options = {displayInLayerSwitcher: false};
|
||||
var options = {
|
||||
displayInLayerSwitcher: false,
|
||||
// indicate that the temp vector layer will never be out of range
|
||||
// without this, resolution properties must be specified at the
|
||||
// map-level for this temporary layer to init its resolutions
|
||||
// correctly
|
||||
calculateInRange: function() { return true; }
|
||||
};
|
||||
this.layer = new OpenLayers.Layer.Vector(this.CLASS_NAME, options);
|
||||
this.map.addLayer(this.layer);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user