当前位置:网站首页>ArcEngine (3) zoom in and zoom out through the MapControl control to achieve full-image roaming
ArcEngine (3) zoom in and zoom out through the MapControl control to achieve full-image roaming
2022-08-03 08:05:00 【Prospector in the rice field】
放大
private void 放大ToolStripMenuItem_Click(object sender, EventArgs e)
{
IEnvelope envelope = new EnvelopeClass();
envelope = MapControl.Extent;//Set the current map extent
envelope.Expand(0.5, 0.5,true);//make the rectangle smaller
MapControl.Extent = envelope;//Set the rectangle to the reduced rectangle
MapControl.Refresh();//刷新地图
}缩小
private void 缩小ToolStripMenuItem_Click(object sender, EventArgs e)
{
IEnvelope envelope = new EnvelopeClass();
envelope = MapControl.Extent;//Set the current map extent
envelope.Expand(2, 2, true);//Make the rectangle box bigger
MapControl.Extent = envelope;//Set the rectangle to the enlarged rectangle
MapControl.Refresh();//刷新地图
}全图
private void 全图ToolStripMenuItem_Click(object sender, EventArgs e)
{
MapControl.Extent = MapControl.FullExtent;
}漫游
private void 漫游ToolStripMenuItem_Click(object sender, EventArgs e)
{
MapControl.Pan();
}边栏推荐
猜你喜欢
随机推荐
解决移动端有纵向滚动条但是不能滚动的问题
"Swordsman Offer" brush questions print from 1 to the largest n digits
计算机网络常见面试题总结
Docker启动mysql
集群
day12---接口和协议
控制bean的加载
循环神经网络RNN基础《PyTorch深度学习实践》
Mysql的in和exists用法区别
如何在安装GBase 8c数据库的时候,报错显示“Host ips belong to different cluster?
Postman will return to results generated CSV file to the local interface
volta管理node版本
ViewModel 记录下 +
Oracle Rac Cluster File Directory Migration
Qt5开发从入门到精通——第二篇(控件篇)
ArcEngine (six) use the tool tool to realize the zoom in, zoom out and translation of the pull box
Logic Pro X自带音色库列表
2022年 SQL 优化大全总结详解
AI中台序列标注任务:三个数据集构造过程记录
“唯一索引允许为空“ 的说法是不严谨的









