New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
City not always located #16
Comments
The geocoding is done via the mapbox api: https://docs.mapbox.com/playground/geocoding/ It could be that Liège or Aimargues does not show up in the results because it needs more identifying information (e.g. Not certain as to why, but perhaps this will help give you some indication toward a fix. |
I just tested and it still doesn't work, even specifying |
I just did some strange new tests. When I put "Liege" on another profile the dot appears correctly. It seems that the problem occurs only on some user accounts. |
@spin0us Well, here's something odd... I tried to reproduce, but was unable to. Both Aimargues and Liège appear fine on the map 🤔 (Although I did update the plugin to be compatible with NodeBB v2.0.0, but I can't imagine that'd make much of a difference...) |
I will try to debug this display problem by logging the users in the loop. But for that I have to install a copy of my production. I will make a return here... |
@julianlam Apparently |
Well, that sounds promising, thanks for doing the debugging legwork! |
@spin0us latest master I refactored https://github.com/NodeBB-Community/nodebb-plugin-osm-map/blob/558a1ff/library.js#L20-L28 Can you add |
One other thing to try, is to have the affected users clear the "Location" field, save, and then set one again. Perhaps that could resolve. |
|
No change with this action. |
|
Here is the result for the missing user on map when i update his city :
|
Interesting... undo all that, let's go back up to
|
That's just the test I was doing. I used a
As you can see, no |
Very weird. You may need to debug why whenever the uid is 3, Or if it is, then why it isn't actually saving to the db 🤔 |
I think i got it :
Is it correct ? |
I've made the change from So the bug was when an admin update a member profile it does not insert the member uid but the admin uid. |
I tried to create a pull request for this. |
Thanks! That said, if the user updated their own profile, it should work, no? |
Yes, indeed |
First of all, thank you for your work. We use your plugin on our forum and our users are very happy with it.
Lately we have noticed that some cities do not show up on the map display. For example, "Liège" in Belgium does not show up, and the same goes for "Aimargues" in France. We have tried several ways to write them, without success.
Do you have any idea about the source of this problem?
When is the geocoding of the city done? and via which api?
The text was updated successfully, but these errors were encountered: