sebastianwoinar
28 Nov 2011, 2:42 AM
Hello,
it seems like the Ext.Map component doesn't get initialized correctly when it is configured for using the current location - with RC1 it worked as expected.
For example:
var mapPanel = new Ext.create("Ext.Panel",{
fullscreen: true,
layout:'fit',
id: 'myPanel',
items: [{
xtype: 'map',
id :'map',
useCurrentLocation: true,
}]
});
Will not create a map.
mapPanel.down("map").getMap() == null
Whereas:
var mapPanel = new Ext.Panel({
fullscreen: true,
layout:'fit',
id: 'myPanel',
items: [{
xtype: 'map',
id :'map',
useCurrentLocation: false,
}]
});
works like a charm.
My browser supports geo location.
Can anybody confirm this issue?
Thanks,
Seb.
it seems like the Ext.Map component doesn't get initialized correctly when it is configured for using the current location - with RC1 it worked as expected.
For example:
var mapPanel = new Ext.create("Ext.Panel",{
fullscreen: true,
layout:'fit',
id: 'myPanel',
items: [{
xtype: 'map',
id :'map',
useCurrentLocation: true,
}]
});
Will not create a map.
mapPanel.down("map").getMap() == null
Whereas:
var mapPanel = new Ext.Panel({
fullscreen: true,
layout:'fit',
id: 'myPanel',
items: [{
xtype: 'map',
id :'map',
useCurrentLocation: false,
}]
});
works like a charm.
My browser supports geo location.
Can anybody confirm this issue?
Thanks,
Seb.