Hi all,thanks for your help.. i investigate on Openlayer API and i found the
answer in this way:
map.events.register('changebaselayer', map, function(){ .........
Thanks for your help
Francesco
----Messaggio originale----
Da: [email protected]
Data: 13/04/2012 16.32
A: "Fernando Norte"<[email protected]>
Cc: "[email protected]"<[email protected]>,
<[email protected]>
Ogg: Re: [OpenLayers-Users] Capture LayerSwitcher Events
Not sure if that was the answer you were after Francesco, the way I read your
question was a bit different, and to do what I think you're trying to do you
can use layer event listeners.. which will basically do what you want.
i.e loadstart and loadend events.
<code> layer.events.register("loadstart", layer, function() {
this.logEvent("Load Start");
});orlayer.events.register("loadend", layer, function() {
this.logEvent("Load End. Grid:" + this.grid.length + "x" +
this.grid[0].length);
});</code>
Taken from
http://dev.openlayers.org/releases/OpenLayers-2.11/examples/layerLoadMonitoring.html
which doesn't actually work but look at the source..
Toby
On 13 April 2012 15:18, Fernando Norte <[email protected]> wrote:
With Firebug and jQuery.Identify the box of inputs with Firebug and try jQuery
methods like .each() (for each input) .onChange() (to detect alterations in
form).
Remember: OpenLayers is a JAVASCRIPT framework, so, javascript knowledge is
gold!
2012/4/13 [email protected] <[email protected]>
Hi all,
i'm using OpenLayers.Control.LayerSwitcher and i would like to capture the
switch layer event.. How can i do it?
Thanks
Faancesco
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users