<div dir="ltr"><div><div><div>Hi all<br><br></div>I am using OpenLayers to display some data downloaded from the Overpass API. Unfortunately some times the amount of data I ask for is quite big so the Overpass API gets the timeout and I don't receive the answer.<br>
<br></div>So my idea is to chop the query to Overpass API into some pieces, and load its results in the same layer.<br><br></div>Currently I am downloading the data like this:<br><br> var layer = new OpenLayers.Layer.Vector(Name, {<br>
                  projection: map.displayProjection,<br>                  strategies: [new OpenLayers.Strategy.Fixed()],<br>                  protocol: new OpenLayers.Protocol.HTTP({<br>                     url: <b>query</b>,<br>
                     format: new OpenLayers.Format.OSM()<br>                  }),<br>                  renderers: ["Canvas", "SVG", "VML"]<br>              });<br><div><br></div><div>I saw that there is some TODOs about making OpenLayers able to download some WMS layers at a time by inserting a URL array in 'url' parameter.<br>
<br></div><div>Is there some good way to do this with the actual code? Something like :<br><br>var layer = new OpenLayers.Layer.Vector(Name, {<br>                  projection: map.displayProjection,<br>                  strategies: [new OpenLayers.Strategy.Fixed()],<br>
                  protocol: new OpenLayers.Protocol.HTTP({<br>                     url:<b> [query1, query2, query3, query4]</b>,<br>                     format: new OpenLayers.Format.OSM()<br>                  }),<br>                  renderers: ["Canvas", "SVG", "VML"]<br>
              });<br clear="all"></div><div><div><div><div><div><div><br></div><div>Which would be the better way to download all this files into just one layer?<br></div><div><br></div><div>Thank you very much.<br></div>
<div><br>-- <br><div><font color="#666666">Ander Pijoan Lamas<br>Research Assistant, Deustotech<br></font></div><div><font color="#666666">Computer Science Engineer<br></font></div><div><font color="#666666">University of Deusto<br>
<br></font></div><div><font color="#666666">E-mail: </font><a href="mailto:ander.pijoan@deusto.es" target="_blank"><font color="#666666">ander.pijoan@deusto.es</font></a></div><div><font color="#666666">Phone: +34 664471228<br>
in: <a href="http://www.linkedin.com/profile/view?id=162888312" target="_blank">http://www.linkedin.com/profile/view?id=162888312</a><br></font></div>
</div></div></div></div></div></div></div>