天地图与超图已经加载 但是不能同时缩放 请大神指教
function mapLoad() {
mapa = new T.Map('map');
mapa.setMaxZoom(18);
mapa.setMinZoom(6);
mapa.centerAndZoom(new T.LngLat(127.32976, 49.41675), 12);
//point 点位置TLngLat类型
var point = new T.LngLat(127.32976, 49.41675);
var size = new SuperMap.Size(44, 33);
var marker = new T.Marker(point, [[${@fileUtil.staticImg}]] + '1111.gif', size, new SuperMap.Pixel(-(size.w / 2), -size.h));
mapa.addOverLay(marker);
addLayer1()
}
function addLayer1() { // 加载地图图层
map = new SuperMap.Map("map", {
controls: [
new SuperMap.Control.Navigation(),
new SuperMap.Control.Zoom(),
new SuperMap.Control.LayerSwitcher()
],
allOverlays: true,
zoomWheelEnabled:true,
dragPanOptions: {
enableKinetic: true
}
});
layerUnit = new SuperMap.Layer.TiledDynamicRESTLayer("部件", partsUrl, {
transparent: true,
cacheEnabled: true,
enableKinetic: true,
zoomWheelEnabled:true
});
layerUnit.events.on({
"layerInitialized": addLayer2
});
}
function addLayer2() {
layerUnit.setOpacity(1.0);
map.addLayers([layerUnit]);
map.setCenter(new SuperMap.LonLat(LNGLOA,LATLOA), ZOOM);
}