Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to add a dynamic OpenLayers Layer in a folder(children) of tree. I've tryed the following code and it works, but I don't know how to associate the layer with a layer of OpenLayers() type:

root.appendChild({id: "project"+op,text: "Projeto: "+op,expanded: true, children: [
    { id: "project_avomd", text: "Avomds", leaf: true},
    { id: "project_strips", text: "Strips", leaf: true},
    { id: "project_cps", text: "Cps", leaf: true}
share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.