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" }
]
}
]
};
精彩评论