Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:
What behavior were you expecting to see?
A layer above my map based on the .kml file
What behavior did you actually see?
error: InvalidValueError: setMap: not an instance of Map
The current setMap function does not accept a GoogleMap instance as arg...
The reason this does not work is that you're passing the GoogleMap _Angular Component_, not the underlying Google Maps API map object. We don't currently expose this underlying object, but maybe we should.
Right now the underlying Google Map is the _googleMap property on the GoogleMap component. I think it's a good idea to expose this as googleMap though, so I will do that.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Right now the underlying Google Map is the _googleMap property on the GoogleMap component. I think it's a good idea to expose this as
googleMapthough, so I will do that.