Custom placement of category filtering

New home Forums Visitor Generated Markers General queries Custom placement of category filtering

This topic contains 22 replies, has 3 voices, and was last updated by  SupportTeam 1 year, 3 months ago.

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #41226

    SupportTeam
    Moderator

    Hi there,

    The latest version of WP Google Maps is 7.10.22 and WP Google Maps Pro: 7.10.17

    Please note that we fixed update code in WP Google Maps Pro 7.10.14 so I think the best way to update plugin would be to upload it directly on your server. If you need any help with this please send me FTP details.

    Kind regards

    #41238

    SupportTeam
    Moderator

    Hi there,

    Unfortunately every time you change plugin files you need to add those changes again after plugin update.

    Please note that update to the latest version should fix the issue with updating plugin.

    Kind regards

    #41249

    SupportTeam
    Moderator

    Hi there,

    It seems the code responsible for this is the code in core.js:

    jQuery(document).ready( function($){
    $(document).on(‘click’, function(e){
    if (!$(e.target).is(‘img’) && $(e.target).closest(‘.wpgmza_map’).length > 0) {
    console.log(e.target);
    infoWindow.forEach(function(entry,index) {
    infoWindow[index].close();
    });
    }
    });
    });

    Please try to comment out that code and see if that helps.

    If you need any help with this please send me FTP details.

    Kind regards

    #41280

    SupportTeam
    Moderator

    Hi there,

    I commented out the code responsible for closing info window and throwing an error. Then I created new code in Maps → Settings → Advanced → Custom JS field:

    (function($) {
    setTimeout(function() {

    for(var map_id in marker_array) {
    google.maps.event.addListener(MYMAP[map_id].map.googleMap, ‘click’, function(event) { if(typeof event.target === ‘undefined’) { infoWindow.forEach(function(entry,index) {
    infoWindow[index].close();
    });}});
    }
    }, 500);
    })(jQuery)

    that should work quite well.

    Please note that previous method wasn’t the best because all the code will be lost after next plugin update. With the new approach and the new code you won’t lost any modification after plugin update.

    Please test it and let me know if it works.

    Kind regards

    #41290

    SupportTeam
    Moderator
    This reply has been marked as private.
    #41300

    SupportTeam
    Moderator

    Thank you for your time. Feel free to reach out if you need anything.

    Kind regards

    #41780

    SupportTeam
    Moderator

    Hi there,

    Could you please send me the URL to the page with the map so I’ll send you some custom JS to change that string?

    Unfortunately we don’t support embeding map on other site at this stage.

    Kind regards

    #42131

    SupportTeam
    Moderator
    This reply has been marked as private.
Viewing 8 posts - 16 through 23 (of 23 total)

You must be logged in to reply to this topic.