typescript support
typescript is used for Angular.
because it is typed, the styles don't work so well.
But it can be made to work by removing the quotes
So
{
"featureType": "water",
"elementType": "geometry",
"stylers": [
{
Becomes
{
featureType: "water",
elementType: "geometry",
stylers: [
{
etc.
Also
const snazzyStyles: google.maps.MapTypeStyle[] = [
{elementType: 'geometry', stylers: [{color: '#242f3e'}]},
you get the idea.
1
vote
Chris
shared this idea