本文介绍了Google地图Javascript API:没有Google地方信息的地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有在Google地图脚本中请求地点图书馆,但Google的poi信息仍在显示。我看到其他例子,那些poi没有被显示。
i did not request the place library in the google map script, but poi information by Google is still showing up. I saw other examples where those poi are not shown. What is the right configuration to hide those poi?
推荐答案
以下是我之前完成的工作:
Here's how I've done this before:
var myStyles =[
{
featureType: "poi",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
var myOptions = {
zoom: 10,
center: new google.maps.LatLng(54.42838,-2.9623),
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: myStyles
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
这篇关于Google地图Javascript API:没有Google地方信息的地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!