在iPad/iPhone上平移和缩放 [英] Panning and Zooming on iPad/iPhone

查看:183
本文介绍了在iPad/iPhone上平移和缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以通过平移和缩放功能在适用于Azure地图的iPad/iPhone上工作吗?它可以在其他设备上很好地工作,并且可以实现预期的行为,但是在这两种设备上,它可以放大和缩小页面,而不仅限于地图.试穿 具有Safari和Chrome的iOS 12.1 iPad. 

Anyone have any luck making the panning and zooming to work on iPad/iPhone for Azure maps? It works well on other devices and does the expected behavior but on these two kind of devices it zooms in and out of the page rather than the map only. trying on iOS 12.1 iPad with both safari and chrome. 

推荐答案

该地图在iPad和iPhone上均能很好地工作,我认为您遇到的问题是由于没有在页面上设置视口元标记.将以下内容添加到页面的标题.

The map works great on iPad and iPhone, I believe the issue you are having it due to not setting the viewport meta tag on your page. Add the following to the header of your page.

名称 " viewport ""; 内容 " span> width = device-width,initial-scale = 1,收缩至适合=否&;

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />


这篇关于在iPad/iPhone上平移和缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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