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

WochteR wochter at seznam.cz
Mon Sep 17 11:14:57 EDT 2007


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


More information about the Cartoweb-users mailing list