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