Hello,
I need to assigne in to a variable the names of the current layers loaded
on my map,
I use this code, but it doesn't work.
for (var i=0;i<map.getLayers().getLength();i++) {
var name=map.getLayers().getArray()[i];
alert(name);
};
can help me please?
thank you.
Paolo
--
You received this message because you are subscribed to the Google Groups "OL3
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ol3-dev/bbd22e00-4e3d-4864-abaf-d85c5513aebc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.