J'ai placé une carte personnalisée png sur google map. J'ai tout supprimé de Google Maps pour afficher uniquement ma carte personnalisée. La couleur de fond est un bleu clair et je veux le changer en blanc. Voici le code:google map api v3 couleur de fond
function initialize() {
var myLatLng = new google.maps.LatLng(39, -98.5);
var myOptions = {
maxZoom: 4,
minZoom: 4,
zoom: 4,
panControl: false,
draggable: false,
center: myLatLng,
disableDefaultUI: true,
mapTypeId: google.maps.MapTypeId.ROADMAP,
backgroundColor: '#FFFFFF'
};
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var mapStyles = [
{
featureType: "all",
stylers: [
{ visibility: "off" }]
}];
map.setOptions({styles: mapStyles});
}
Il clignote en blanc puis passe au bleu clair. Comment puis-je le définir en blanc ou transparent?
Merci qui a travaillé. – rstewart
Super, merci pour cela – Gaelen