[OpenLayers-Dev] bug reported when adding postgis layer in chrome and firefox 4.0

Mohammed Rashad mohammedrashadkm at gmail.com
Mon Apr 18 08:13:09 EDT 2011


this is the chrome error
Uncaught TypeError: Cannot read property 'Vector' of undefined

Is this a bug in OL or chrome?
How to solve it?

the application works fine on Firefox 3.6.6 but not in firefox4

this is the code creating problem
new_layer = new OpenLayers.Layer.Vector("layername_", {
        strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
        projection: new OpenLayers.Projection("EPSG:4326"),
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.0.0",
            srsName: "EPSG:4326",
            url: "http://localhost/cgi-bin/tinyows",
            featureNS :  "http://www.tinyows.org/",
            featureType: layername_ ,
            geometryName: "the_geom",
            schema: "
http://localhost/cgi-bin/tinyows?service=wfs&request=DescribeFeatureType&version=1.0.0&typename=tows:"
+ 'layername_'
        })});
      map.addLayer(new_layer);new_layer.refresh();

if this is commented out the it works but no output
-- 
Thanks && Regards
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110418/ba741165/attachment.html


More information about the Dev mailing list