当前位置: 代码迷 >> Ajax >> g地图panel 使用
  详细解决方案

g地图panel 使用

热度:367   发布时间:2013-04-20 19:43:01.0
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,
                    },
                    {
                     lat: 42.339431,
                        lng: -71.09087,