The amount of attributes should likely not be the issue here.

Do you have a minified example so that we can reproduce?

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



On Sep 4, 2012, at 9:27 AM, allanlumte <[email protected]> wrote:

> Hi all,
> I've created an openlayers wfs layer from a shapefile with 50 attribute
> fields, the layer is invisible on the
> base map while the firebug shows - Uncaught RangeError: Invalid array
> length,
> Question is, is there a limit of attribute fields that openlayers wfs can
> handle ?
> The layer code is as below :
> 
> wfs_layer = new OpenLayers.Layer.Vector("Counties", {
>        strategies: [new OpenLayers.Strategy.BBOX()],
>        protocol: new OpenLayers.Protocol.WFS({
>                     version: "1.1.0",
>                     url: "http://localhost/geoserver/wfs";,
>                     featureType: "counties",
>                     featureNS: "http://www.opengeospatial.net/cite";,
>                     srsName: "EPSG:4326"
>        })
> });
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/OpenLayers-WFS-limit-tp4999611.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to