当前位置:网站首页>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();
}边栏推荐
猜你喜欢
随机推荐
酷雷曼上新6大功能,全景营销持续加码
mysql存生僻字奇怪问题,mysql为什么不能辨别mb4字符?
2022下半年软考「高项&集成」复习计划ta来喽~
Evaluate:huggingface评价指标模块入门详细介绍
【图像去噪】基于matlab稀疏表示KSVD图像去噪【含Matlab源码 2016期】
sqlite date field plus one day
ArcEngine(三)通过MapControl控件实现放大缩小全图漫游
Roson的Qt之旅#104 QML Image控件
数据监控平台
Postman will return to the interface to generate a json file to the local
Taro框架-微信小程序-调用微信支付
002-字段不为null
加载properties文件,容器总结
Taro框架-微信小程序-内嵌h5页面
控制bean的加载
薛定谔的对象属性判断
依赖注入(DI),自动配置,集合注入
Karatsuba大数乘法的Verilog实现
rust 学习笔记
ArcEngine (1) Loading vector data









