[Cartoweb-users] how to switch on layer from javascript

Oliver Christen oliver.christen at camptocamp.com
Tue Sep 18 04:05:56 EDT 2007


"to switch on layer" ?

you mean, display a layer when recentering ?
you need to explicitely enable it with layer_select=layerid1

regards
Oliver 

> Hi,
> I need to switch on layer from ObjectRecenter javascript,
> how to do it please?
> 
> 
> 
> function ObjectRecenter(Layer,Id) {
> 
>    $('id_recenter_layer').value = Layer; 
>    $('id_recenter_ids').value = Id;
>    
>    CartoWeb.trigger('Location.Recenter');
> 
> thank you
> 
> wochter
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>


More information about the Cartoweb-users mailing list