Hi all,
any idea why this code doesn't work locally?
lgpx = new OpenLayers.Layer.Vector("DIY streetviews", {
strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1.1})],
protocol: new OpenLayers.Protocol.HTTP({
url: "map_data.txt",
format: new OpenLayers.Format.Text()
}),
projection: new OpenLayers.Projection("EPSG:4326")
});
Whole file:
http://www.diy-streetview.org/data/development/20110217/index.html
and
http://www.diy-streetview.org/data/development/20110217/embed/calls_and_callbacks.js
I added
// alert("lgpx.features.length: " + lgpx.features.length);
to calls_and_callbacks.js.
On the server I get 167, which is right, but only 0 (zero) on my PC?
Are the features not loaded when running the script locally?
How to fix this?
Thanks,
Jan
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users