matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.72k stars 2.63k forks source link

VisitorMap Cities view doesnt show some cities #5855

Open ThaDafinser opened 10 years ago

ThaDafinser commented 10 years ago

The country / regions view works generally fine for me. Also the cities view mostly works.

But some cities/coordinates are not shown.

In the first screenshot you see 16 visitors in Michigan, but in the 2nd (the cities view) they are not shown (the legend shows the correct number) . If you check the lat/long coordinates they are correct for Michigan: https://www.google.com/maps/place/42%C2%B033'32.4%22N+83%C2%B011'24.0%22W/@42.5041012,-83.1427799,10z/data=!4m2!3m1!1s0x0:0x0

visitormap2 visitormap3 json2

mattab commented 9 years ago

Hi @ThaDafinser we're experiencing some bugs when User selected is set to German (which changes locale in PHP causing bugs rendering floats #6631 #6620 ). Can you reproduce this issue in German and English language?

mattab commented 9 years ago

Hi @ThaDafinser do you still have the issue in latest Piwik?

ThaDafinser commented 9 years ago

Yes still the same problem.

wingeisoftware commented 1 year ago

I notice the same issue. Here is some additional info about this:

I believe the issue lays in kartograph. Here is a bug report in kartograph related to noverlap mode of kartograph (which the visitor map is using): https://github.com/kartograph/kartograph.js/issues/47

In the attached screenshots, you can see the missing points appearing after i hacked kartograph a little bit, following instructions in kartograph issue 47. However, the "fix" used is not correct as city points are actually overlapping..

Current implementation with noverlap mode: noverlap

"Fix" as proposed in kartograph issue 47: hacked-kartograph

sgiehl commented 1 year ago

Kartograph isn't maintained anymore, so it's unlikely, that a possible fix might be provided for that library. I'm unable to say if the "fix" might cause other problems, like overlapping points or similar. If you are able to provide a PR that fixes it we might consider to merge it, if it doesn't cause other problems... Otherwise we hope to be able to work on #11929 at some point to fix all map related issues.