Skip Navigation

[Resolved] Duplicate Map Markers Being Posted to Map

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 26 replies, has 2 voices.

Last updated by LCR 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1236175

LCR
dup.jpg

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,

#1236281

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

#1236325

LCR

You can have it, but how would you like me to provide you the copy?

#1236418

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

#1236456

LCR

All done and there is a package... how can I give this file to you?

#1237391

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

#1238240

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-05-01 at 10.09.29 AM.png

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

#1239908

LCR

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?

#1239923

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-05-06 at 10.07.49 AM.png

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

#1241015

LCR
map-error-two-markers.jpg

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.

#1241028

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

#1241083

LCR

My issue is resolved now. Thank you!