Skip Navigation

[Resolved] how to get to the markers?

This thread is resolved. Here is a description of the problem and solution.

Problem:
how to get to the markers? and customize marker on initial page load event

Solution:
you can use map event "js_event_wpv_addon_maps_init_map_completed" that is fired on initialization of map.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/how-to-get-to-the-markers/#post-1095815

Relevant Documentation:

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Eugene Mednikov 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1095177

I saw an answer about accessing WPViews.view_addon_maps.markers['map-1'], but how do I attach to maps initialization event?

#1095815

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - you can use map event js_event_wpv_addon_maps_init_map_completed that is fired on initialization of map.

jQuery(document).ready(function($){

$( document ).on('js_event_wpv_addon_maps_init_map_completed', function( event, event_settings ) {
  //// your code goes here 
} );
  
} );

Please check following related tickets that may help you:
=> https://toolset.com/forums/topic/add-lines-connecting-markers-in-a-google-map/
=> https://toolset.com/forums/topic/draw-a-circle-on-cred-google-map/

#1095985

Thanks!