当前位置:网站首页>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();
}边栏推荐
猜你喜欢

sqlserver2019安装失败

23届微软秋招内推

requests库

Roson的Qt之旅#104 QML Image控件

pyspark---encode the suuid interval (based on the number of exposures and clicks)

How does Mysql query two data tables for the same fields in two tables at the same time

加载properties文件,容器总结

Logic Pro X自带音色库列表

2022年 SQL 优化大全总结详解

Haisi project summary
随机推荐
差分(前缀和的逆运算)
STL迭代器
23届微软秋招内推
【第1天】SQL快速入门-基础查询(SQL 小虚竹)
jolt语法
WordPress主题-B2美化通用子主题商业运营版
2022下半年软考「高项&集成」复习计划ta来喽~
Evaluate:huggingface评价指标模块入门详细介绍
Arduino框架下对ESP32 NVS非易失性存储解读以及应用示例
REST学习
解决移动端有纵向滚动条但是不能滚动的问题
【图像边缘检测】基于matlab灰度图像的积累加权边缘检测【含Matlab源码 2010期】
day12---接口和协议
基于SSM开发的的小区物业管理系统小程序源码
JS作用对象API技巧
品牌方发行NFT时,应如何考量实用性?
How does Mysql query two data tables for the same fields in two tables at the same time
mysql存生僻字奇怪问题,mysql为什么不能辨别mb4字符?
ArcEngine(五)用ICommand接口实现放大缩小
“唯一索引允许为空“ 的说法是不严谨的