图层切换顺序
2016-02-16 09:01:06 访问(1553) 赞(0) 踩(0)
/// <summary>
/// 图层切换顺序
/// </summary>
protected void FeatureLayerUpDown()
{
string layerDown = "_2-停机位-面_region";
string layerUp = "_3-滑行线-线_polyline";
IAppHelper ah = AppDriver.IAppHelperGet();
int downIndex = ah.LayerIndexGet(mapControl1.Map, layerDown);
if (downIndex == -1)
return;
int upIndex = ah.LayerIndexGet(mapControl1.Map, layerUp);
if (upIndex == -1)
return;
if (downIndex >= upIndex)
return;
mapControl1.Map.Layers.Move(upIndex, downIndex);
}
标签:
图层切换顺序 


上一条:
下一条:
相关评论
发表评论