当前位置:网站首页>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();
}
边栏推荐
- 《剑指Offer》刷题之打印从1到最大的n位数
- Golang协程goroutine的调度与状态变迁分析
- mysql存生僻字奇怪问题,mysql为什么不能辨别mb4字符?
- ArcEngine (six) use the tool tool to realize the zoom in, zoom out and translation of the pull box
- JS函数获取本月的第一天和最后一天
- 学习笔记:机器学习之逻辑回归
- "Swordsman Offer" brush questions print from 1 to the largest n digits
- 【云原生--Kubernetes】Pod重启策略
- - display image API OpenCV 】 【 imshow () to a depth (data type) at different image processing methods
- ceph简介
猜你喜欢
随机推荐
推荐系统-排序层-精排模型:LR、GBDT、Wide&Deep、DCN、DIN、DIEN、MMOE、PLE
ceph简介
[Kaggle combat] Prediction of the number of survivors of the Titanic (from zero to submission to Kaggle to model saving and restoration)
HCIP笔记整理 2022/7/18
“==”和equals的区别
mysql 8.0.12 安装配置方法并--设置修改密码
最佳高质量字体
DeFi明斯基时刻:压力测试与启示
rust 学习笔记
sqlserver2019安装失败
vim 折叠函数
JS作用对象API技巧
2022下半年软考「高项&集成」复习计划ta来喽~
跨域嵌套传递信息(iframe)
ArcEngine (1) Loading vector data
sqlite 日期字段加一天
Taro框架-微信小程序-内嵌h5页面
[ 漏洞复现篇 ] yapi 代码执行 getshell 漏洞复现详解
Evaluate: A detailed introduction to the introduction of huggingface evaluation indicator module
实时目标检测新高地之#YOLOv7#更快更强的目标检测器