don't know if it helps you but I used this way to add geojson vector layer :

var layer = new OpenLayers.Layer.GML("Uzemie s cestnou sietou",
"area_mercator.json", {
  projection: new OpenLayers.Projection("EPSG:900913"),
  format: OpenLayers.Format.GeoJSON,
style: {
        strokeColor: "#FF0000",
            strokeOpacity: 1,
            strokeWidth: 2,
            fillColor: "#00FF00",
            fillOpacity: 0}

});

....just change some part to gml I think
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Trouble-with-layer-vector-tp5796878p5796971.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

Reply via email to