var mapOptions = {
zoom: 3,
center: { lng: 117.240601, lat: 31.827107 },
minZoom: 2,
maxZoom: 18,
copyright: false,
basemaps: [
{
id: 2017,
pid: 10,
name: '蓝色地图',
type: 'arcgis',
url: '',
chinaCRS: 'GCJ02',
icon: 'img/basemaps/bd-c-midnight.png',
show: true
}
]
}
this.map = new this.mars2d.Map('mars2dContainer', mapOptions)
解决拖动问题
**this.map.setMaxBounds(this.map.getBounds());**