On Wed, Apr 16, 2008 at 2:38 PM, Gregor Mosheh <[EMAIL PROTECTED]> wrote:
> Richard Greenwood wrote:
>
> > Is it possible to modify a layer's url after it has been added to a
> > map with map.addLayer()? And similarly, is it possible to dynamically
> > alter a layer's params?
> >
>
>  Yeah; I do it all the time. Use mergeNewParams()
>
>  l = layers['storms'];
>  l.mergeNewParams(date:'20080414', time:1530);

Thanks! A minor correction for the archive, the parameter list must be within {}
    l.mergeNewParams( {date:'20080414', time:1530} ;



-- 
Richard Greenwood
[EMAIL PROTECTED]
www.greenwoodmap.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to