using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SuperMap.Data;
using SuperMap.UI;
using SuperMap.Realspace;
namespace SuperMapProject
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public Workspace m_workSpace;
public SceneControl m_sceneControl;
private void Form1_Load(object sender, EventArgs e)
{
Layer3DKML layer1 = sceneControl1.Scene.Layers.Add("kml/world.kmz", Layer3DType.KML, false) as Layer3DKML;
//Layer3DKML layer2 = sceneControl1.Scene.Layers.Add("kml/CHN_adm3.kmz", Layer3DType.KML, true) as Layer3DKML;
//Layer3DKML layer3 = sceneControl1.Scene.Layers.Add("kml/CHN_adm2.kmz", Layer3DType.KML, true) as Layer3DKML;
Layer3DKML layer4 = sceneControl1.Scene.Layers.Add("kml/CHN_adm1.kmz", Layer3DType.KML, true) as Layer3DKML;
sceneControl1.Scene.Layers.Add("http://t0.tianditu.gov.cn/img_w/wmts?tk=629749d83e93f310149d3a8db41d5032", Layer3DType.WMTS, true);
sceneControl1.Refresh();
}
}
}
使用产品 Supermap iobject for .Net 9d 操作系统:win10 x64
数据类型:天地图 WMTS服务
问题详细描述:sceneControl控件调用天地图挨api不能加载