|
@@ -172,23 +172,23 @@ export default {
|
|
// let shuixi_name_url = that.superMapRootUrl+'/3D-shuixi_Name/rest/realspace';
|
|
// let shuixi_name_url = that.superMapRootUrl+'/3D-shuixi_Name/rest/realspace';
|
|
// that.shuixi_name = that.scene.open(shuixi_name_url);
|
|
// that.shuixi_name = that.scene.open(shuixi_name_url);
|
|
|
|
|
|
- //9.添加乡镇界
|
|
|
|
- let layer_xiangzhenjie = that.viewer.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({
|
|
|
|
- url : that.superMapRootUrl+"/map-SIPING/rest/maps/XiangZhenJie",
|
|
|
|
- }));
|
|
|
|
-
|
|
|
|
- //10.添加县界
|
|
|
|
|
|
+ //9.添加县界和乡镇界
|
|
let layer_xianjie = that.viewer.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({
|
|
let layer_xianjie = that.viewer.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({
|
|
- url : that.superMapRootUrl+"/map-SIPING/rest/maps/XianJie",
|
|
|
|
|
|
+ url : that.superMapRootUrl+"/map-SIPING/rest/maps/XianJie_XiangZhenJie",
|
|
}));
|
|
}));
|
|
|
|
|
|
- //11.添加县界名称 此处要先添加县界名称 否则县界名会不显示
|
|
|
|
- let layer_xianjie_name = that.superMapRootUrl+'/3D-XianJie_Name/rest/realspace';
|
|
|
|
- that.scene.open(layer_xianjie_name);
|
|
|
|
-
|
|
|
|
- //12.添加乡镇界名称
|
|
|
|
- let layer_xiangzhenjie_name = that.superMapRootUrl+'/3D-XiangZhenJie_Name/rest/realspace';
|
|
|
|
|
|
+ //10.添加区县乡镇村名称
|
|
|
|
+ let layer_xiangzhenjie_name = that.superMapRootUrl+'/3D-Name_he/rest/realspace';
|
|
that.scene.open(layer_xiangzhenjie_name);
|
|
that.scene.open(layer_xiangzhenjie_name);
|
|
|
|
+ that.road_name.then(function (layers) {
|
|
|
|
+ let xianJie_textLayer = that.scene.layers.find('XianJie@SiPing#1');//区县文字图层
|
|
|
|
+ let xiangZhenJie_textLayer = that.scene.layers.find('XiangZhenJie@SiPing#2');//乡镇文字图层
|
|
|
|
+ let cun_textLayer = that.scene.layers.find('Cun@SiPing#1');//村文字图层
|
|
|
|
+ //关闭避让
|
|
|
|
+ xianJie_textLayer.isOverlapDisplayed = true;
|
|
|
|
+ xiangZhenJie_textLayer.isOverlapDisplayed = true;
|
|
|
|
+ cun_textLayer.isOverlapDisplayed = true;
|
|
|
|
+ });
|
|
|
|
|
|
}, 3000);
|
|
}, 3000);
|
|
|
|
|