Mapxtreme查看特定几个图层

 

假定让lyr1和lyr2两个图层充满整个地图窗口:

Table[] ts= new Table[2];
ts[0] = lyr1.Table;
ts[1] = lyr2.Table;
IMapLayerFilter iml = MapLayerFilterFactory.FilterByTable(ts);
MapLayerEnumerator mle = mapControl1.Map.Layers.GetMapLayerEnumerator(iml);
mapControl1.Map.SetView(mle);

 

你可能感兴趣的:(table)