开发者

Google Sattelite map switch Business POI

开发者 https://www.devze.com 2023-04-11 21:07 出处:网络
I need开发者_StackOverflow社区 to show google Sattelite map without Business POIs and realy cant find some information about how to do it.

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

精彩评论

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