Hey!
i use the default Application that is build from cmd and i replaced a tabpanel with a leafletmap as following:
Code:
Ext.define('myapp.view.main.Main', { extend: 'Ext.tab.Panel',
xtype: 'app-main',
requires: [
'Ext.MessageBox',
'Ext.layout.Fit',
'myapp.view.main.MainController',
'myapp.view.main.MainModel',
'myapp.view.main.List',
'Ext.ux.LeafletMap',
'myapp.view.main.LeafletMapController',
],
controller: [
'main',
'leafletmap'
],
viewModel: 'main',
defaults: {
tab: {
iconAlign: 'top'
},
styleHtmlContent: true
},
tabBarPosition: 'bottom',
items: [{
title: 'locations',
iconCls: 'x-fa fa-home',
layout: 'fit',
items: [{
xtype: 'mainlist'
}]
}, {
title: 'Users',
iconCls: 'x-fa fa-user',
layout: 'fit',
bind: {
html: '{loremIpsum}'
}
}, {
title: 'Map',
iconCls: 'x-fa fa-map-o',
layout: 'fit',
items: [{
xtype: 'leafletmap',
id: 'map1',
autoMapCenter: false,
useCurrentLocation: false,
mapOptions: {
zoom: 14
}
}]
}, {
title: 'Settings',
iconCls: 'x-fa fa-cog',
layout: 'fit',
bind: {
html: '{loremIpsum}'
}
}
]
});
The positive thing is that the map is working. negative that the height is 0!! so you cant see it..
I cant fix the height to a value cause it should be responisve..
Does anyone have a solution