This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Custom JS function to draw polylines with the Google Maps widget

4 years ago · Last reply by Alex S 4 years ago

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.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 4 years, 9 months ago

    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

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread