当前位置:网站首页>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();
}边栏推荐
- Postman will return to results generated CSV file to the local interface
- HCIP笔记整理 2022/7/18
- pgaudit 的安装使用《postgresql》
- ArcEngine (1) Loading vector data
- mysqlbinlog: unknown variable 'default-character-set=utf8'
- ArcEngine(四)MapControl_OnMouseDown的使用
- ArcEngine(八)用IWorkspaceFactory加载矢量数据
- ArcEngine(三)通过MapControl控件实现放大缩小全图漫游
- The use of the database table structure document generation tool screw
- Mysql的in和exists用法区别
猜你喜欢

Daily practice of PMP | Do not get lost in the exam-8.2 (including agility + multiple choice)

AI中台序列标注任务:三个数据集构造过程记录

智能客服,还有多少AI泡沫?

【图像去噪】基于matlab稀疏表示KSVD图像去噪【含Matlab源码 2016期】
![[ 漏洞复现篇 ] yapi 代码执行 getshell 漏洞复现详解](/img/85/a4142689c22492cd898bd8275cd2c5.png)
[ 漏洞复现篇 ] yapi 代码执行 getshell 漏洞复现详解
![[Kaggle combat] Prediction of the number of survivors of the Titanic (from zero to submission to Kaggle to model saving and restoration)](/img/2b/d2f565d9221da094a9ccc30f506dc8.png)
[Kaggle combat] Prediction of the number of survivors of the Titanic (from zero to submission to Kaggle to model saving and restoration)

The use of the database table structure document generation tool screw

The ORB - SLAM2 extracting feature points

Nanny level explains Transformer

Arduino框架下对ESP32 NVS非易失性存储解读以及应用示例
随机推荐
【云原生--Kubernetes】Pod容器与镜像拉取策略
Charles packet capture tool learning record
训练正常&异常的GAN损失函数loss变化应该是怎么样的
netstat 及 ifconfig 是如何工作的。
STL迭代器
Qt5开发从入门到精通——第二篇(控件篇)
学习Glide 常用场景的写法 +
STL-vector容器
ArcEngine (1) Loading vector data
mysql备份时的快照原理
薛定谔的对象属性判断
2022用户画像构建
请求与响应:响应
Charles抓包工具学习记录
实时目标检测新高地之#YOLOv7#更快更强的目标检测器
mysqlbinlog: unknown variable 'default-character-set=utf8'
Detailed explanation of cause and effect diagram of test case design method
drop database出现1010
001-进程与线程
基于SSM开发的的小区物业管理系统小程序源码