计算机二级VB辅导:VB实现图层范围控制
来源:优易学  2011-12-10 19:51:38   【优易学:中国教育考试门户网】   资料下载   IT书店
 '图层放大,Map1.TrackRectangle是用户画出的矩形范围
  Dim tmpExtent As MapObjects2.Rectangle
  Set tmpExtent = Map1.TrackRectangle
  If Not tmpExtent Is Nothing Then
  Set Map1.Extent = tmpExtent
  End If
  '图层缩小,下面缩小1.5倍
  tmpExtent.ScaleRectangle 1.5
  Map1.Extent = tmpExtent
  '全图
  Set Map1.Extent = Map1.FullExtent
  '移动
  Map1.Pan

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训