-1

I use the Google Maps API v3 Javascript. I know add or delete a marker or an array with :

 MarkerLocation = new google.maps.Marker({
...
...
});

and

Marker.setMap(null);

But I want to remove a default marker on a GoogleMaps if it's possible.

Example : When I go to Paris and I zoom in the city. I have marker metro/RER in my map. it is the means of transport in Paris. I want to remove this to use my marker.

It's possible to remove this or override this ?

4

1 回答 1

0

我在 API 文档中找到了答案:

例子 :

var styles = [
{
    stylers: [
        { hue: "#00ffe6" },
        { saturation: -20 }
]
},{
    featureType: "road",
    elementType: "geometry",
    stylers: [
        { lightness: 100 },
        { visibility: "simplified" }
]
},{
    featureType: "road",
    elementType: "labels",
    stylers: [
        { visibility: "on" }
]
},{
    featureType: "transit",
    elementType: "labels",
    stylers: [
        { visibility: "off" }
]
}

];

于 2013-06-06T10:24:45.450 回答