如何在屏幕上放置标记对象时禁用放大/缩小Bing地图 [英] How to disable zoom in/out of Bing map when putting a tagged object on the screen

查看:82
本文介绍了如何在屏幕上放置标记对象时禁用放大/缩小Bing地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想每次在屏幕上放置标记对象时禁用Bing地图的缩放功能。如果删除了标记对象,则缩放功能将正常工作。我无法弄清楚如何做到这一点。你能帮我解决这个问题的
吗?提前致谢。

Hi everyone, I want to disable the zoom function of Bing map every time a tagged object is placed on the screen. If the tagged object is removed, the zoom function will work again as normal. I couldn't figure out how to do it. Could you help me to solve this issue? Thanks in advance.

祝你好运,

Faro

推荐答案

您需要注册预览触摸,预览触摸移动和预览地图控件包含的修饰。

如果地图你的bing map控件的容器是一个网格,然后你需要在Grid级别注册那些事件。

You need to register to Preview touch down, Preview touch move and preview touch up of your map control containder.
If the map container of your bing map control is a grid then you need to register to those event at the Grid level.

然后对于每个事件处理程序,插入以下代码:

Then for each of those event handler, insert the following code :

if (e.Device.GetIsTagRecognized()) e.Handled = true;
                if (!e.Device.GetIsFingerRecognized()) e.Handled = true;

如果有帮助则标记为答案

Thnaks to mark as answer if it helps

问候


这篇关于如何在屏幕上放置标记对象时禁用放大/缩小Bing地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆