开发者

Google Sattelite map switch Business POI

I need开发者_StackOverflow社区 to show google Sattelite map without Business POIs and realy cant find some information about how to do it.

I tryed google.maps.StyledMapType stylers, but these are not available for sattelite mode.


edit:

It's possible to hide some map data from base map types by changing styles map option. In your case you have to style MapTypeId.HYBRID, you cannot style MapTypeId.SATELLITE. Your map options then should be something like:

var myOptions = {
    zoom: 8,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.HYBRID,
    styles: [
        {
            featureType: "poi.business",
            elementType: "all",
            stylers: [
                { visibility: "off" }
            ]
        }
    ]
};
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜