Passing renderer options to the sketch layer.
The draw feature control should pass preferred render and other renderer options to the sketch handler.
This commit is contained in:
@@ -83,6 +83,11 @@ OpenLayers.Control.DrawFeature = OpenLayers.Class(OpenLayers.Control, {
|
||||
);
|
||||
this.layer = layer;
|
||||
this.handlerOptions = this.handlerOptions || {};
|
||||
this.handlerOptions.layerOptions = OpenLayers.Util.applyDefaults(
|
||||
this.handlerOptions.layerOptions, {
|
||||
renderers: layer.renderers, rendererOptions: layer.rendererOptions
|
||||
}
|
||||
);
|
||||
if (!("multi" in this.handlerOptions)) {
|
||||
this.handlerOptions.multi = this.multi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user