当前位置:网站首页>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();
}边栏推荐
猜你喜欢
随机推荐
ArcEngine(一)加载矢量数据
升级
数据仓库指标体系实践
Golang协程goroutine的调度与状态变迁分析
@Async注解的坑,小心
跨域嵌套传递信息(iframe)
Roson的Qt之旅#103 QML之标签导航控件TabBar
学习Glide 常用场景的写法 +
pyspark df secondary sorting
分治法求解中位数
information_schema
ArcEngine (six) use the tool tool to realize the zoom in, zoom out and translation of the pull box
day12---接口和协议
The use of the database table structure document generation tool screw
热部署系统实现
薛定谔的对象属性判断
《21天精通TypeScript-5》类型注解与原始类型
控制bean的加载
Daily practice of PMP | Do not get lost in the exam-8.2 (including agility + multiple choice)
ArcEngine(八)用IWorkspaceFactory加载矢量数据








