#6477 closed enhancement (fixed)
Open a link on a ref:*=* tag — at Version 1
Reported by: | FrViPofm | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin | Version: | |
Keywords: | Cc: |
Description (last modified by )
An idea of improvment. For the core or for a plugin...
A lot of elements have tags like ref:*=*, wikipedia=*, that could be linked to a web page.
On mapping those links could be useful to get information on the element and improve it.
It should be interesting to have a way to store strings with a template of the link where a patern (e.g. $1) would be replaced by the value of the tag. When such an element is active, the link is available to open the coresponding page on the browser.
For each service, tree values would be sotred :
- the name of the tag
- the name for the GUI
- the template of the url
Some examples :
- wikipedia -> http://wikipedia.org/wiki/$1
- ref:sandre -> http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=$1 (example of value : J3--0180)
- ref:whc -> http://whc.unesco.org/fr/list/ (example of value : 660)
- url : $1
- website : $1
I'm unable to develop this kind of stuff. But it would not be too difficult to reuse the code of the information, or history buttons.
Change History (1)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The plugin Tag2Link appears to provide this suggested enhancement.
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tag2Link