We are trying to load location to our map but it has been extremely slow and our custom filtering seemed to be broken. After investigating this we have found that every post marker has been duplicated.
For example post (2680) also has a (2680-1) marker being posted directly underneath of it. I expect that this is why the map has been loading slow and why the filter we built no longer works.
The problem is we don't know where the post lives. We have looked in the client-side backend of WordPress, the MySQL database, we have done an XML export to look through the site data to find the duplicate.
We even had the same view post just the text of the Title, ID, and the Slug for all our posts without the map we only see one of every location.
We are still unable to see where these posts live in the site, they just seem to be posting on the map as markers... the request for debugging causes the site page to fail so we can't review or provide the debug information to help either.
Please let us know what our next course of action should be.
--- Templates for this View ---
<ul class='list-unstyled'>
[wpv-post-link item="@people-location.parent"]
[wpv-conditional if="( $(wpcf-residence-to) ) AND ( $(wpcf-residence-from) )"]
Residence from [types field='residence-from' style='text' format='Y'][/types] to [types field='residence-to' style='text' format='Y'][/types]
[/wpv-conditional]
[wpv-conditional if="( $(wpcf-not-before) ) AND ( $(wpcf-not-after) )"]
Residence Not Before [types field='not-before' style='text' format='Y'][/types] and Not After [types field='not-after' style='text' format='Y'][/types]
Not seeing where you provided the url for the site.
I'll enable the private fields again so you can provide the url to the site as well as the URL to the map as well as the credentials in a secure field.
There are no duplicates except on the map. There are two markers overlapping each other and we have no clue where they are. It looks like your plugin for some reason is creating two markers one with the normal id and another with a '-1'.
Example: 2570 is created as a map marker and it also has 2570-1.
You can see it in the developer tools in the browser (as seen in the screenshot).
In your console, if you run:
WPViews.view_addon_maps.markers.map[2570].setVisible(false);
Then run:
WPViews.view_addon_maps.markers.map['2570-1'].setVisible(false);
Both the markers will disappear, proving that there are two markers being loaded for no reason because there isn't any duplicate data in the site.
The issue was being caused by the marker_id='[wpv-post-id]' so what i did was to just add marker_id='marker-1' Is there a particular reasoning why you want the post ID there?