Hello guys,
I found this site that generates the style of your map to your desire, but I am not able to use json in the map options. I think I'm doing it wrong, but I also do not think it's very different from this.
So I'd like to know how to use it.
Link generator style
https://mapstyle.withgoogle.com/
Thanks.
Sorted out!
In my searches I found a "styles" tag, which you must enter in the "options".
As for example below:
"{
panControl: false,
streetViewControl: false,
mapTypeControlOptions: false,
mapTypeControl: false,
mapTypeId: google.maps.MapTypeId.ROADMAP,
zoomControl: false,
styles: [
{
"" elementType "": "" geometry "",
"stylers": [
"" color "": "" # 808080 ""
}
]
},
"" elementType "": "" labels.icon "",
"" visibility "": "" off ""
"" elementType "": "" labels.text.fill "",
"" color "": "" # 616161 ""
"" elementType "": "" labels.text.stroke "",
"" color "": "" # f5f5f5 ""
"" featureType "": "" administrative "",
"" featureType "": "" administrative.land_parcel "",
"" color "": "" #bdbdbd ""
"" featureType "": "" poi "",
"" color "": "" #eeeeee ""
"" color "": "" # 757575 ""
"" featureType "": "" poi.park "",
"" color "": "" # e5e5e5 ""
"" color "": "" # 9e9e9e ""
"" featureType "": "" road "",
"" color "": "" #ffffff ""
"" featureType "": "" road.arterial "",
"" featureType "": "" road.highway "",
"" color "": "" #data ""
"" featureType "": "" road.local "",
"" featureType "": "" transit "",
"" featureType "": "" transit.line "",
"" featureType "": "" transit.station "",
"" featureType "": "" water "",
} "
Thank you for posting your solution!