Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hello… I am trying to draw a polyline display on the google maps widget from the Widget Bundle. I want to use a custom JS function to render the polylines between the geocords of the markers, is there a callback/hook I can use to allow my function to be executed after the plugin renders completes the initial map rendering?
Thanks in advance.
Hi Luke,
You can use the maps_loaded event to detect when the maps have finished loading (and rendering). You can then get the maps instance by checking window.sowb.SiteOriginGoogleMapInstances.
Kind regards,
Alex