geoext / geoext2

GeoExt 2 — JavaScript Toolkit for Rich Web Mapping Applications
http://geoext.github.io/geoext2/
Other
142 stars 106 forks source link

GEOEXT2 add OpenLayer to tree #376

Closed rychu83 closed 8 years ago

rychu83 commented 8 years ago

Hi, I'm a beginner so please bear with us . I have a problem with the tree hierarchy I added in the tree but I have a problem like now connect to the the tree witch Open Layers ?? TREE var store = Ext.create('Ext.data.TreeStore', { model: 'GeoExt.data.LayerTreeModel', root: { expanded: true, children: [ { plugins: ['gx_baselayercontainer'], expanded: true, text: "Wybór Mapy Podkładowej" }, { text: "2016", expanded: false, checked: false, children: [ { text: "Styczeń", expanded: false, checked: false,
children: [ { text: "1", leaf: true, expanded: true, checked: false}, { text: "2", leaf: true, expanded: true, checked: false},
] }, { text: "2015", expanded: false, checked: false, children: [ { text: "Styczeń", expanded: false, checked: false,
children: [ { text: "1", leaf: true, expanded: true, checked: false}, { text: "2", leaf: true, expanded: true, checked: false},
] },

OPEN Layers new OpenLayers.Layer.WMS("Bus Stops", "https://ows.terrestris.de/osm-haltestellen?", { layers: 'OSM-Bushaltestellen', format: 'image/png', transparent: true }, { singleTile: true, visibility: false } ),