当前位置:网站首页>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();
}边栏推荐
猜你喜欢
随机推荐
C语言实现树的底层遍历--超简代码
如何使用电子邮件营销在五个步骤中增加产品评论
控制bean的加载
面试介绍项目经验(转)
- display image API OpenCV 】 【 imshow () to a depth (data type) at different image processing methods
最佳高质量字体
前缀和(区间和,子矩阵的和)
ArcEngine(二)加载地图文档
如何让背景色在任何设备宽高都能填充整个屏幕
Nacos使用实践
LeetCode 264:丑数
数据监控平台
mysql系统变量与状态变量
《21天精通TypeScript-5》类型注解与原始类型
ArcEngine (2) loading the map document
Transformer、BERT、GPT 论文精读笔记
进程的创建
JS作用对象API技巧
Roson的Qt之旅#106 QML在图片上方放置按钮并实现点击按钮切换图片
集群








