Modify

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#6477 closed enhancement (fixed)

Open a link on a ref:*=* tag

Reported by: FrViPofm Owned by: team
Priority: normal Milestone:
Component: Plugin Version:
Keywords: Cc:

Description (last modified by simon04)

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 :

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.

Attachments (0)

Change History (4)

comment:1 by simon04, 13 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

The plugin Tag2Link appears to provide this suggested enhancement.

http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tag2Link

comment:2 by akks, 13 years ago

There is also such fuctionality (without context menu) in UtilsPlugin2 (More tools - Open custom URL), links are configurable via panel in F12 preferences.

Last edited 13 years ago by akks (previous) (diff)

comment:3 by Don-vip, 13 years ago

Indeed, we created tag2link on the basis of these ideas :) Sorry for not having closed the ticket at the same time :)

comment:4 by akks, 13 years ago

Sorry for not creating a ticket or even editing wiki when I implemented the same - started in [o26603] :)

You can use any code or ideas (configuration table and storing prefernces, for example) if needed. Sometimes context menu is really more convenient than single shortcut and your data-retrieving functionality is really more functional.

Last edited 13 years ago by akks (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.