*

Peter123

  • ***
  • 27 posts
More items with same coordinates, only one is shown on map
« on: April 09, 2017, 03:19:42 PM »
H,
if there are more items sold from one address (same coordinates for more items), map displays only one of them.. Is there any way how to fix this and display all items on a map?

*

MB Themes

Re: More items with same coordinates, only one is shown on map
« Reply #1 on: April 09, 2017, 05:49:06 PM »
@Peter123
Can you show me such situation?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Peter123

  • ***
  • 27 posts
Re: More items with same coordinates, only one is shown on map
« Reply #2 on: April 10, 2017, 10:40:56 AM »
Yes, please follow url below:

http://shopsbook.com/search

test1, test2 and test3 have exactly identical location. In admin area I can see that they have identical coordinates, but as ou can see on map in frontend (search page), only one of them is displayed.

*

MB Themes

Re: More items with same coordinates, only one is shown on map
« Reply #3 on: April 11, 2017, 08:10:25 AM »
@Peter123
I can see that plugin is showing just 1 listing, not 3 of them.
Are you sure all of them has set same coordinates in database?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Peter123

  • ***
  • 27 posts
Re: More items with same coordinates, only one is shown on map
« Reply #4 on: April 11, 2017, 09:09:58 AM »
Yes, you are right, only one of three is shown.
Coordinates are all same. Please see attached image.

*

MB Themes

Re: More items with same coordinates, only one is shown on map
« Reply #5 on: April 12, 2017, 02:52:59 PM »
@Peter123
In oc-content/plugins/rad_search/listings_map.php
There is condition to avoid duplicates:
Code: [Select]
        if(!in_array($detail['latitude'] . '-' . $detail['longitude'], $already)) {
change it to
Code: [Select]
        if(!in_array($detail['latitude'] . '-' . $detail['longitude'], $already) || 1==1) {
to show all listings
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots