Marker field filtering broken after latest update.

New home › Forums › Pro Add-on › Marker field filtering broken after latest update.

  • This topic has 5 replies, 2 voices, and was last updated 1 month ago by Ryan.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #86608
    Ryan
    Participant

    I’m on the latest version of the plugins, however the marker field filtering has broken. It’s displaying every option, rather than the name of the filter so viewers could click it and then choose an option. You can see what it looks like in the attached screenshot.

    I can’t seem to find many setting for these, only allowing me to enable/disable certain ones and the placement of them.

    #86609
    Ryan
    Participant

    Corrected the file size on attachment

    Attachments:
    You must be logged in to view attached files.
    #86615
    Jaden
    Moderator

    Hi Ryan,

    Thank you so much for getting in touch with us.

    May I kindly ask you to provide a link to your map so that we may take a closer look?

    We are able to create custom CSS and JS scripts in order to achieve the desired functionality.

    Thank you so much for your time and I look forward to hearing from you.

    Kindest regards,
    Jaden Botha

    #86616
    Ryan
    Participant

    Hi Jaden, this page here has a map for you to look at https://blscene.com/z_testmappage/

    Thanks, Ryan

    #86619
    Jaden
    Moderator

    Hi Ryan,

    Thank you so much for providing us with the link to your map.

    I have written the necessary CSS and JS code required to achieve your desired functionality.

    Therefore, may I kindly ask you to:
    1. Navigate to WP Go Maps -> Settings -> Custom Scripts
    2. Paste the following code into the custom CSS block

    .wpgmza-custom-field-filter-widget-checkboxes .wpgmza-checkboxes {
      display: none !important;
    }
    .wpgmza-custom-field-filter-widget-checkboxes.my-open .wpgmza-checkboxes {
      display: block !important;
    }
    .wpgmza-custom-field-filter-widget-checkboxes .wpgmza-placeholder-label {
      cursor: pointer;
    }
    
    .wpgmza-placeholder-label { cursor: pointer; }
    .wpgmza-custom-field-filter-widget-checkboxes .wpgmza-placeholder-label {
      display: flex !important;
      flex-wrap: wrap;
      align-items: center;
      cursor: pointer;
    }
    
    .wpgmza-custom-field-filter-widget-checkboxes .wpgmza-placeholder-label::after {
      content: "\00a0▸" !important;
      order: 1;
      position: static !important;
      float: none !important;
    }
    
    .wpgmza-custom-field-filter-widget-checkboxes.my-open .wpgmza-placeholder-label::after {
      content: "\00a0▾" !important;
    }
    
    .wpgmza-custom-field-filter-widget-checkboxes .wpgmza-checkboxes {
      order: 2;
      width: 100%;
    }

    3. Save your settings
    4. Paste the following Code into the Custom JS block

    jQuery(function ($) {
      document.addEventListener('click', function (e) {
      var label = e.target.closest('.wpgmza-custom-field-filter-widget-checkboxes .wpgmza-placeholder-label');
      if (!label) return;
    
      e.stopPropagation(); 
      label.closest('.wpgmza-custom-field-filter-widget-checkboxes').classList.toggle('my-open');
    }, true);
    });

    5. Save your settings

    Please let me know if this helps?

    Thank you so much for your time and I look forward to hearing from you.

    Kindest regards,
    Jaden Botha

    #86620
    Ryan
    Participant

    Hey Jaden, that seems to be working nicely. I have some minor alignment issues on mobile with it, but that should be fixable with some additional CSS.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.