We are using the post id to hide and show the markers on the map using the range filter on the top of the page. We use JS to set the visibility of the marker based on the year data the users provide. The post id is used to identify which post goes with which location.
This had worked for months prior to a plugin update and now we get double the markers. Changing the marker_id=" " has not resolved the issue. We still get two markers for one location.
I also suspect that this is also causing the massive load time because it has to call double the locations.
Please see the attached image for an example... or type the following in your browser console to see the issue.
WPViews.view_addon_maps.markers.map['marker-15-226'].setVisible(false);
WPViews.view_addon_maps.markers.map['marker-15-227'].setVisible(false);
Additionally, if you are doing testing for this I created a test page with a duplicate view for you to look at and resolve this issue.
Website Page: hidden link
Test View: Test-Map-Page
This is a live site that we need to get working for next week so we will be doing something to try and hide the markers until you are able to stop the plugin from generating 2 markers for 1 location.
Thank you,
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Justin,
Would it be ok to gain a copy of this site?
I want to try and duplicate this issue locally on a fresh install so that I can make a report to our team about this.
Please let me know as soon as you can.
Thanks,
Shane
You can have it, but how would you like me to provide you the copy?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Justin,
You can install the Duplicator plugin and create the copy using that.
Once you've done that then I can just go onto the site and download the copy.
Thanks,
Shane
All done and there is a package... how can I give this file to you?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Justin,
I downloaded the duplicator package.
Currently checking on this for you.
Thanks,
Shane
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Justin,
I setup a test for this and wasn't able to replicate the issue at all. See Screenshot
Would it be possible to recreate this view step by step and checking at each step to see if the problem still occurs?
Also please try disabling the non-toolset plugins as well just to ensure that we are not dealing with some form of conflict.
Thanks,
Shane
Shane,
What steps did you take to not get this issue? Can you duplicate your version so we can see what you set up?
We also set up a local version an we are getting the same issue. Did you set up a new view that just pulls basic information in or are you replicating the view that we need?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Justin,
Actually no special steps were taken.
The map was recreated exactly as how you would have it on your site. See Screenshot
No major difference.
What I would do is to try the map again with the minimum required information as I have it on my screenshot.
Thanks,
Shane
Shane,
I ran a new view with the same code you sent in the image above, and I am still getting two markers...
Did you make a map for a new WordPress site with no data in it? Or did you use the duplicator file with all of our data in it?
See the error in the attached image.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Justin,
I have some good news.
It might be tedious to resolve, however I found that when i found the items that have the duplicate, remove the addresses and re-add them, they are no longer duplicated on the frontend.
I tried this with the Calcutta, India post and it works.
So i suspect that the issue is really stemming from the address. I tried to replicate but it seems something in your environment caused the issue.
Thanks,
Shane
My issue is resolved now. Thank you!