日期:2014-05-16 浏览次数:20676 次
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,
},
{