[OpenLayers-Users] layers style

Christopher Schmidt crschmidt at metacarta.com
Mon Sep 17 07:30:37 EDT 2007


On Mon, Sep 17, 2007 at 03:36:28AM -0700, hiugo wrote:
> 
> hello.
> 
> I'm making a http request to get two layers, but my problem is that i can't
> make this request with two different stykes for the layers.

You're just putting them in as a single string, right? "http://,http://"

Instead, put them in as an array:

{'sld': ['http://style1', 'http://style2']}

(The error shows an undeocded %2C, which is the encoded version of ",". 
This means that the parser failed to parse out the data, and was instead 
blowing up on what it thought was a single URL.)  

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list