[OpenLayers-Users] Find out about the geometrytype of a layer
Barbara Fiederer
barbara.fiederer at web.de
Wed Apr 14 05:14:40 EDT 2010
Hi Alexandre,
I added
"myLayer.addOptions({geometryType:"OpenLayers.Geometry.MultiLineString"});"
to the Layer options. -> Control in firebug: property is set correctly
In geoserver: the_geom = MultiLineString
the Control ist defined as follows:
var mydraw = new OpenLayers.Control.DrawFeature(
layer, OpenLayers.Handler.Path, {
title:"new line",
displayClass:"olControlDrawFeatureLine",
handlerOptions:{multi:true}
}
);
On finishing the line by doubleclick firebug throws an error: "invalid
'instanceof' operand this.geometryType
var feature=features[i];if(this.geomet...ototype.CLASS_NAME});throw
throwStr;} OpenLayers.js (Zeile 1472)"
Before setting the GeometryType editing worked fine.
Thanks for answering.
Barbara
--
View this message in context: http://n2.nabble.com/Find-out-about-the-geometrytype-of-a-layer-tp4896190p4900618.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list