📜  谷歌:从谷歌地图中删除竞争对手列表? - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:30.685000             🧑  作者: Mango

代码示例1
url: https://stackoverflow.com/questions/36128968/can-you-remove-competitors-listing-from-google-maps
example:

var mlwStyles =[
                {
                    featureType: "poi",
                    elementType: "labels",
                    stylers: [
                          { visibility: "off" }
                    ]
                }
            ];
            var mapOptions = {
                center: new google.maps.LatLng(yourInitLat, yourInitLng),
                zoom: yourInitZoom,
                mapTypeId: google.maps.MapTypeId.SATELLITE,
                mapTypeControl:false,
                scaleControl: true, 
                styles: mlwStyles                   
            };