The issue I’m having is I can’t get a reference to the elfsight widget google map object in order to add the ground overlay to it. Can you please let me know how I can get the reference to the current google map object.
Thank you so much for your reply. Unfortunately I don’t think that gives the current instance of the google map object as I get this error: InvalidValueError: setMap: not an instance of Map
Here is my code that’s not working with the window.google.maps reference you provided to add the Ground Overlay. This same code works when I reference a manually created google map instance. I just need to get the correct reference to the google Map object created by your WordPress plugin.
I just posted a reply about the error I get and sample code but it’s disappeared and looks like it’s being moderated for some reason.
Using the window.google.maps reference you provided I get an error InvalidValueError: setMap: not an instance of Map. I’m not sure that’s a reference to the actual instance of the google map object created by the elfsight plugin. Can yo please check in to this again.