Hi all,
I tried switching my application over from Layer.GML to Layer.Vector.
here's the original code which displayed in the correct place:
var sites = new OpenLayers.Layer.GML (
"Archaeological Sites", "data/siteswatr.gml",
{
style: {pointRadius: 2.5},
projection: new OpenLayers.Projection("EPSG:4326"),
format: OpenLayers.Format.GML,
}
);
Here's the modified code which displays in the S. Atlantic ocean.
var sites = new OpenLayers.Layer.Vector (
"Archaeological Sites", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "data/siteswatr.gml",
style: {pointRadius: 2.5},
projection: new OpenLayers.Projection("EPSG:4326"),
format: new OpenLayers.Format.GML(),
})
});
map.addLayer(sites);
I'm sure I messed something up, but what did I do wrong?
thanks,
Nick
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users