Map Marker Autozoom-In

New home Forums Pro Add-on General queries Map Marker Autozoom-In

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24086
    linksbreaker
    Member

    Hi There!
    I have a question about the zoom-in functionality.

    Would it be possible to get autozoom-in when I click on a map marker? This is very useful for users, because they could easily find a specific address for a store.

    Thanks in advance.

    #24095
    Nick Duncan
    Keymaster

    Hi there
    Thank you for getting in touch and for using our plugin.

    I can definitely add this in for you if you like or follow the below instructions to get it working:

    Please open wp-google-maps-pro/js/core.js and search for this line:

    function wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data,wpmgza_marker_id,val) {

    Directly below that, add the following:

    MYMAP[map_id].map.setZoom(16);

    Save the file and refresh the map page. This should set the zoom level to 16 when clicking on a marker in the map.

    Is this what you were looking for?

    Kind regards
    Nick

    #24149
    linksbreaker
    Member

    Hi Nick!

    This is exactly what I was looking for. It works like a charm.

    You are amazing !!!
    Thank you so much. I feel very happy.

    😉

    #24280
    Nick Duncan
    Keymaster
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.