Map.setStyle(style:google.maps.MapTypeStyle)
Sets and applies a style to your Google Map.
var mapStyles = [
{
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "administrative",
"elementType": "labels.text.fill",
"stylers": [
{ "visibility": "on" },
{ "color": "#616161" }
]
},{
"featureType": "administrative",
"elementType": "geometry.stroke",
"stylers": [
{ "color": "#BCBCBC" },
{ "visibility": "on" },
{ "weight": 1.1 }
]
}
];
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
youmasApi.map.setStyle(mapStyles);
}
var mapOptions = {
center : new google.maps.LatLng(48.858386, 2.343435), // Paris,
zoom : 11,
minZoom : 6,
maxZoom : 17
};
var youmapsApi = new YoumapsAPI(
{
techID : <YOUR_TECH_ID>,
initMapboards : true,
mapDivId : "map",
mapOptions : mapOptions
},
onYoumapsApiLoaded
);
