I’m a bit confused. I am using google.maps.Map, but the above article talks about plugin.google.maps.Map. Which should I use?
If I use plugin.google.maps.Map, I get:
[ts]
Cannot find name 'plugin'.
any
If I use google.maps.Map, then backgroundColor() is undefined.
let mapOptions = { center: bound.getCenter(), maxZoom: 15, backgroundColor: 'transparent', mapTypeId: google.maps.MapTypeId.ROADMAP };
var htmlElement: HTMLElement = document.getElementById("map"); this.map = new google.maps.Map(htmlElement, mapOptions);