• Resolved ilgrasso

    (@ilgrasso)


    I need to add a lateral nav_menu (I’ve seen the option into the “Select the taxonomy to display on legend:” map configurations) to filter the map by an option. Exaple: i’ve the Italy map with a lot of bubble displayed; I need that a customer pick a button to filter the map to focus only the bubbles displayed in “MARCHE” or an othe one Italy’s state or location.

    I tried to add categories (Italian states) into my posts, I created a MENU using all my categries (all the Italian states), I select the nav_menu option from the “TAXONOMY TO DISPLAY ON LEGEND:” options, but I can’t select which menu is needed and I don’t know how to add my menu to the map!

    Is there a way to make it with sense? Am I wrong trying in that way?
    thank you for your replay .. I hope my explanation was clear ??

    https://www.ads-software.com/plugins/codepeople-post-map/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi ilgrasso,

    Could you send me the link to your webpage to check the map generated, please?

    Are you using the free or pro version of the plugin? The legend is not available in the free version of the plugin, I’m sorry.

    If the legend is enabled, it is displayed above the map, and will include a list of checkboxes for show/hide the points belonging to the corresponding taxonomy (category, tag, or any other custom taxonomy).

    Best regards.

    Thread Starter ilgrasso

    (@ilgrasso)

    Hi I’m using the PRO version. The link is below
    https://www.internidesignstore.it/show-room/punti-vendita/

    I’m trying now to generate by myself a lateral aside with my own MENU.. but nonw I can only apply it creating 20 pages (each one for each Italian STATE) that contain a specific map.. but I know it’s a wrong way (but the only solution for my broblem).

    I Know that in the legand I can allow taxonomy but if I wont to filter by STATE my map, I HAVE TO SWITCH OFF ALL THE OTHER CHECK BOX.. and it’s no so fine.. ??

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want to load in the map the points belonging to one state at a time, your current solution would be the only one possible without customize the plugin’s code, because the legend displays a list of checkboxes, and the user can load multiple states, the same occur if you want display the list of states as links, etc.

    However, if you want to display the legend with all checkboxes unchecked by default, you can edit the plugin’s code, following the steps below:

    1. Open the “/wp-content/plugins/codepeople-post-map/js/cpm.js” file with the text editor of your choice.

    2. Before close the method:

    set_map: function(){
    ...
    },

    insert the piece of code:

    set_map: function(){
    ...
    
    if(typeof me[ 'legend_container' ] != 'undefined' )
    me.legend_container
    .find( 'input[type="checkbox"]' )
    .click();
    
    },

    3. Finally, clear the browser’s cache after edit the online files.

    Best regards.

    Thread Starter ilgrasso

    (@ilgrasso)

    Thank you very much.. can you bringh me to the way to modify the plugin code and make what my customer asked me?

    Is too deep and is you that have to modify the code, or can I try to modify or include some functions into the functions.php file?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry but the customization here is not simple, would be required edit a lot of code of the plugin.

    Please, send me a detailed description of the project through my personal support page, to estimate its cost and the development time required:

    https://wordpress.dwbooster.com/support

    Best regards.

    Thread Starter ilgrasso

    (@ilgrasso)

    Hi.. froma a couple of days something strange is happening on map, some grey horizontal row are still on the map! can you help me? what’s happening?

    https://www.internidesignstore.it/show-room/punti-vendita/

    Thread Starter ilgrasso

    (@ilgrasso)

    Hi, any replay about my question?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add lateral nav_menu that filter the map’ is closed to new replies.