[OpenLayers-Users] Find out about the geometrytype of a layer

Alexandre Dube adube at mapgears.com
Thu Apr 15 08:14:49 EDT 2010


Barbara,

It's going to be hard to support further without a small test case 
showing the problem. Could you create one and report back, please ? 
Here's a link you might be interested reading before creating your test 
case :

http://docs.openlayers.org/help/minimize.html

Kind regards,

Alexandre


Barbara Fiederer wrote:
> Hi Alexandre,
>
> the error is here: line 513 of vector.js:
>  !(feature.geometry instanceof this.geometryType)) {  .....
> "feature.geometry" is undefined, "this.geometryType" is
> OpenLayers.Geometry.MultiLineString
>
> When I check in line 488 of vector.js "addFeatures: function(features,
> options) { ..." there is one object in the array with correct geometryType.
>
> Anything else for me to check?
>
> Thanks, Barbara
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list