change the water colour in google maps for an already initialised map

good if you are using google maps and cant change the original map init code to change the styles.

var mapOptions = {
  styles: [
    {
      featureType: "water",
      stylers: [
        { visibility: "on" },
        { color: "#FF0000" }
      ]
    }
  ]
};
thisGooogleMap.setOptions(mapOptions);

Reference

Other Items in js
Page Views

This page has been viewed 470 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

âĪðŸ‘Đ‍ðŸ’ŧðŸ•đ

Random Quote
There is a qualitative and quantitative difference between a day that begins with a little exercise, a book, meditation, a good meal, a thoughtful walk, and the start of a day that begins with a smartphone in bed.
Unknown