阅读:1721回复:1
怎么即时更新地图比例尺阿
放一个text用来显示比例尺 1:xxxx, 每次地图放大缩小后, 比例尺都自动更新, 有没有类似的例子, c#和vb都可以, 多谢<br>
|
|
1楼#
发布于:2006-11-09 21:21
<P>在每次放大缩小后调用如下代码,即可实现比例尺动态更新:</P><PRE>Dim dblMapScale As Double</PRE><PRE>Dim pMap As IMap<BR></PRE>
<P>If Not pMap Is Nothing Then<BR> dblMapScale = pMap.MapScale<BR> text.Text = "1:" ; Format(dblMapScale, "#0.000")<BR> text.Refresh()<BR>End If</P> |
|