I wanted to access a variable created within a store but I couldn't access. Below is the part of the code.
Ext.define('MyApp.store.TreeStore', {
extend: 'GeoExt.data.store.LayersTree',
alias: 'store.layer_tree',
init: function(app) {
....
this.ol_map = new ol.Map({
layers: [group, layer3, layer4],
view: new ol.View({
center: [0, 0],
zoom: 2
})
});
},
layerGroup: this.ol_map.getLayerGroup()
});
I want to access ol_map
within the store in layerGroup
.