View Full Version : Regarding Extjs Geomap with Mozilla Firefox

15 Oct 2012, 1:36 AM
I have tried to open sencha google map in Mozilla Firefox. When i click "Gimme a Map" button it opens a blank window. But It works fine for Internet Explorer. Is there any browser compatibity problem for Extjs google map with Mozilla Firefox ?????

22 Oct 2012, 7:08 AM
No, it works, may be a layout issue, can i see some code?

30 Oct 2012, 4:06 AM
I have given below geomap.js code. here store1 is defined in data js. The GMapPanel.js is same as sencha site. It is working fine in IE. I cant understand its problem in Mozilla.


Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', '../ux');Ext.require(['Ext.window.*','Ext.ux.GMapPanel'
]);Ext.onReady(function(){var mapwin;Ext.get('show-btn').on('click', function() {/*alert(store1.first().get('title'));alert(store1.first().get('lat')); alert(store1.first().get('lng'));alert(store1.first().get('title1'));alert(store1.first().get('lat1'));alert(store1.first().get('lng1'));alert("done");*/
if(mapwin) {mapwin.show();} else {mapwin = Ext.create('Ext.window.Window', {autoShow: true,layout: 'fit',title: 'GMap Window',closeAction: 'hide',width:450,height:450,border: false,store: store1,x: 40,y: 60,items: {xtype: 'gmappanel',/*center: {geoCodeAddr: 'New York City',marker: {title: 'no Park'}},*/
center: {geoCodeAddr: '4 Yawkey Way, Boston, MA, 02215-3409, USA',marker: {title: 'Fenway Park'}},/*markers: [{geoCodeAddr: 'New York City',marker: {title: 'no Park'}},{geoCodeAddr: 'World Trade Center,New York City',marker: {title: 'Fenway Park'} }]*/
markers: [{lat: store1.first().get('lat'),lng: store1.first().get('lng'),title: store1.first().get('title')/* listeners: {click: function(e){Ext.Msg.alert('It\'s fine', 'and it\'s art.');}}*/
},{lat: store1.first().get('lat1'),lng: store1.first().get('lng1'),title: store1.first().get('title1')}]}});} });});