Google地图V3:如何禁用“街景”? [英] Google Maps V3: How to disable "street view"?
本文介绍了Google地图V3:如何禁用“街景”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个人物图标,允许用户查看街景。我不想在我的地图上使用此功能,有没有办法将其删除或禁用?
Street View 答案实际上在你链接的第二段,但你的代码应该是这样的:
var mapOptions = {
center:mapCenter,
zoom:10,
streetViewControl:false,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
There is a "person" icon which allows user to view "Street View". I don't want this functionality on my map, is there a way to remove it or disable?
解决方案
The answer is actually in the 2nd paragraph you linked to, but your code should look something like this:
var mapOptions = {
center: mapCenter,
zoom: 10,
streetViewControl: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
这篇关于Google地图V3:如何禁用“街景”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文