日期:2014-05-16  浏览次数:20676 次

gmappanel 使用
Ext4.0 GMapPanel 
简单应用好写。
其他的属性怎么设置啊。
多边形,折线等。。。。


mapwin = Ext.create('Ext.Window', {
                layout: 'fit',
                title: 'GMap Window',
                closeAction: 'hide',
                width:450,
                height:450,
                border: false,
                x: 40,
                y: 60,
                items: {
                    xtype: 'gmappanel',
                    zoomLevel: 14,
                    gmapType: 'map',
                    mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
                    mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
                    setCenter: {
                   lng:118.160748,
                   lat:39.273092
                    },
                    markers: [{
                        lat: 42.339641,
                        lng: -71.094224,
                    },{
                        lat: 42.339419,
                        lng: -71.09077,
                    },
                    {