Amelie
January 29, 2025, 3:35pm
1
Hi,
GeoMap displays 20 points even though only 10 recors are plotted.
Using Sp7 latest version. What am I doing wrong?
Thank you!
markp
January 29, 2025, 5:31pm
2
Hi @Amelie
This isn’t anything you are doing wrong, it is a bug. Issue linked below. However, I will note that the description of the bug is perhaps incomplete based on some testing I did this morning (7.9.6.2). Even if there are no two CollectionObjects that share the same locality in the query, it may still duplicate the markers. The screenshot below is for one collection object, with both markers listed with the same id (while loading) and then catalogNumber once rendered. In a query of 45 collection objects with localities, I get 90 markers returned, the same 2:1 ratio you are experiencing.
If we look at this same location through a different frontend, we only have one record with that location, so it isn’t an issue of a record outside of the query having the same coordinates.
opened 06:26PM - 05 Jan 24 UTC
1 - Bug
2 - Queries
**Describe the bug**
When multiple collection objects have the same locality if… you query those and GeoMap them it comes back with more points than collection objects.
**To Reproduce**
Steps to reproduce the behavior:
1. Create multiple collection objects and link them to the same locality
2. query those collection objects and GeoMap them
3. Notice that there are double the amount of points than there are collection objects.
**Expected behavior**
There should be the same amount of points as collection objects.
**Screenshots**
This one I did with 3 collection objects and got 6 points
<img width="942" alt="Screenshot 2024-01-05 121346" src="https://github.com/specify/specify7/assets/150940840/d3ee0680-2bbf-4a42-8ba8-04dd1f06c7d4">
This one I added 5 collection objects and got 10 points
<img width="947" alt="Screenshot 2024-01-05 121815" src="https://github.com/specify/specify7/assets/150940840/c54fbd5f-fdae-4603-8833-ff08dbdd83d0">
**Desktop:**
- OS: Windows 11
- Browser: Chrome
- Specify 7 Version: v7
**Reported By**
Originally reported on Discourse: https://discourse.specifysoftware.org/t/geomap-renders-additional-points-of-the-map-bug/1475
1 Like
markp
January 29, 2025, 5:35pm
3
Also, here is the other post on the forum in case Grant wants to merge these
2 Likes
Hi
I have three test records, however Geomap renders 5 points on the map instead of three, see map see below
All three samples have the same location; see exported query results below (csv).
query_results_2023-12-20T09 48 14.735769.csv (973 Bytes)
Any idea?
Hello @kitchenprinzessin ,
I was able to recreate this issue and found that in GeoMap the points are double the amount of collection objects added instead of just having one point for every collection object. I created a report for this issue on GitHub:
opened 06:26PM - 05 Jan 24 UTC
1 - Bug
2 - Queries
**Describe the bug**
When multiple collection objects have the same locality if… you query those and GeoMap them it comes back with more points than collection objects.
**To Reproduce**
Steps to reproduce the behavior:
1. Create multiple collection objects and link them to the same locality
2. query those collection objects and GeoMap them
3. Notice that there are double the amount of points than there are collection objects.
**Expected behavior**
There should be the same amount of points as collection objects.
**Screenshots**
This one I did with 3 collection objects and got 6 points
<img width="942" alt="Screenshot 2024-01-05 121346" src="https://github.com/specify/specify7/assets/150940840/d3ee0680-2bbf-4a42-8ba8-04dd1f06c7d4">
This one I added 5 collection objects and got 10 points
<img width="947" alt="Screenshot 2024-01-05 121815" src="https://github.com/specify/specify7/assets/150940840/c54fbd5f-fdae-4603-8833-ff08dbdd83d0">
**Desktop:**
- OS: Windows 11
- Browser: Chrome
- Specify 7 Version: v7
**Reported By**
Originally reported on Discourse: https://discourse.specifysoftware.org/t/geomap-renders-additional-points-of-the-map-bug/1475
Thank you for reporting this!
1 Like
Grant
July 4, 2025, 12:01am
6
Hi @Amelie , @markp , and @kitchenprinzessin ,
This is going to be fixed in the v7.11.1 release in the coming months!
main ← issue-4364
opened 01:44PM - 03 Jul 25 UTC
Fixes #4364
### Checklist
- [ ] Self-review the PR after opening it t… o make sure the changes look good and
self-explanatory (or properly documented)
- [ ] Add relevant issue to release milestone
- [ ] Add pr to documentation list
- [ ] Add automated tests
- [ ] Add a reverse migration if a migration is present in the PR
### Testing instructions
*Bug*
When multiple collection objects have the same locality if you query those and GeoMap them it comes back with more points than collection objects.
**To Test**
Taken from https://github.com/specify/specify7/issues/4364.
Steps to test:
1. Create multiple collection objects and link them to the same locality (or different locality)
2. query those collection objects and GeoMap them
3. Verify that the amount of points is same as collection objects.
4. Verify that clicking on the marker shows the popup
Can part of that be replaced by automated tests?
There is a sanity check for the locality (runtime). See commit: https://github.com/specify/specify7/commit/222dee4de22dae9cbb0876fc3e007ea7ab37a31e. Automated tests for this is tricky.
4 Likes
Cant wait to see the changes
system
Closed
July 11, 2025, 3:39am
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.