Skip to content
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

direct link to node in a uMap which contain identical node name #1659

Closed
clwacker opened this issue Feb 27, 2024 · 2 comments
Closed

direct link to node in a uMap which contain identical node name #1659

clwacker opened this issue Feb 27, 2024 · 2 comments
Labels

Comments

@clwacker
Copy link

I see a problem when using a direct link to a node in uMap that has a name identical to one or more other nodes in the map. In this case, the popup or sidebar display of the node is the one that is first found (probably?) in the list of nodes with this name.
For example, I use the following link to display a node named PS (they are several nodes with this name) on my map:
Boundary Stones Map
The display in the sidebar is not that of the node displayed in the map, but the first one found in the list of nodes with the name PS. It is therefore necessary to click on the node to obtain the correct information.
The same problem occurs if you click on a node in the map and the correct information is displayed, then refresh the page in the browser and the information for the first node with the same name is then displayed.

In the case of nodes with identical names, is there a way to link directly to a node and its information without having to click on the node?
And perhaps display the selected node in a larger format, as is the case when you click on a node (small zoom effect)?

Thanks in advance for your help.

(tested with uMap version 2.0.0)

@clwacker clwacker added the bug label Feb 27, 2024
@clwacker
Copy link
Author

Okay, I've answered my first question. I had forgotten that there was a "Feature identifier key" parameter to select a unique key other than the name. Cool.

For the second question, would it be possible when using an object's permalink for it to be visible and selected on the map (icon enlarged like when you click on an object)?

Thanks

@clwacker
Copy link
Author

I've now changed the "Feature identifier key" to the OpenStreetMap ID and everything works fine.
I also see that when using permalinks, the selected node expands as if clicked.
Finally, I wonder why uMap doesn't default to the OSM ID rather than the name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant