Search code examples
ol3-google-maps

mapgears ol3-google-maps - TypeError: this.setMap is not a function


I am trying to use mapgears/ol3-google-maps, but even the basic examples are not running. I am getting following error message.

TypeError: this.setMap is not a function


Solution

  • Including Google Maps API before OL3-Google-Maps fixes the issue.