[OpenLayers-Users] Array of url's not working with WFS protocol

Stephen Woodbridge woodbri at swoodbridge.com
Mon Dec 7 08:49:02 EST 2009


Well, one idea might be to only make one XHR request and get all the 
data for all the layers, then have the request handler load the data 
into the appropriate layers so they all get updated. This assumes that 
you can tag the data returned with some key that allows you to tie it to 
a specific layer. Or that you can change your application so all devices 
are on a single layer.

-Steve W

Kris Geusebroek wrote:
> Hi,
> 
> Just to inform you the reason why I need this:
> 
> I use multiple vector layer with WMS protocol to track vehicles around
> the country. I refresh the layers every 5 seconds so I generate a lot of
> requests to the same domain.
> Since internet explorer only fires 2 requests to the same domain in
> parallel I wanted to configure my DNS to have multiple domain names for
> the same ip address so I could trick IE into doing more then 2 requests
> at a time.
> 
> But since the subdomains are not allowed in XHR I'm kind of stuck right
> now.
> 
> Anyone have a suggestion for me?
> 
> Cheers Kris
> 
> -----Original Message-----
> From: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
> Sent: Friday, December 04, 2009 4:54 PM
> To: Kris Geusebroek
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] Array of url's not working with WFS
> protocol
> 
> On Fri, Dec 04, 2009 at 03:38:36PM +0100, Kris Geusebroek wrote:
>> I tried to create a patch but it isn't working.
>>
>>  
>>
>> I patched Request.js to select a url out of an Array (just like the
>> httpRequest class) but I'm running into crossdomain issue with XHR
>>
>> Even on only a subdomain difference, IE and firefox throw an exception
> 
> Different subdomains are still violations of the Same Origin Policy.
> The browser can not request data from different subdomains (and I can't
> imagine a way in which this is useful other than that; using a proxy
> just
> makes the local proxy your bottleneck.)
> 
> -- Chris
> 
>>  
>>
>> Any hints on how to overcome this or is it impossible 
>>
>>  
>>
>> Cheers KRis
>>
>>  
>>
>> From: users-bounces at openlayers.org
> [mailto:users-bounces at openlayers.org]
>> On Behalf Of Kris Geusebroek
>> Sent: Wednesday, December 02, 2009 11:59 AM
>> To: users at openlayers.org
>> Subject: [OpenLayers-Users] Array of url's not working with WFS
> protocol
>>  
>>
>> Am i right that supplying a array of urls to  a wfs protocol is not
>> working like with a layer?
>>
>>  
>>
>> If so I will try tomorrow to create a patch to provide this
>> functionality
>>
>>  
>>
>> Cheers Kris
>>
>>  
>>
>> Met vriendelijke groet, Kind regards,
>>
>>  
>>
>> Kristiaan Geusebroek
>>
>> Consultant
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>> Email: kgeusebroek at xebia.com <mailto:kgeusebroek at xebia.com>  
>>
>> Tel: +31 (0)35 538 1921
>>
>> Fax: +31 (0)35 538 1922 
>>
>> Mobiel: +31 (0)6 3069 7223
>>
>>  
>>
>> Utrechtseweg 49
>>
>> 1213 TL Hilversum
>>
>> The Netherlands
>>
>> http://www.xebia.com <http://www.xebia.com/> 
>>
>>  
>>
>> Xebia Blog: http://blog.xebia.com/ <http://blog.xebia.com/> 
>>
>> Xebia Podcast: http://podcast.xebia.com/ <http://podcast.xebia.com/> 
>>
>>  
>>
> 
> 
> 
> 
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
> 
> 




More information about the Users mailing list