merkaartor icon indicating copy to clipboard operation
merkaartor copied to clipboard

Load keys from database

Open ghost opened this issue 7 years ago • 5 comments

This is a feature request.

First (Main and most important request): It should be possible that if I edit or add a key, Merkaartor loads (online) the possible values like the standard online editor. The nearby values should appear on top (like they appear now).

  1. Feature: If I double click right, Merkaartor switches to a predefined function (default: select). If I click again, it switches to the last used function. In this way I can create a i.e. street, double right click, edit the street, double right click, create the next street. Middle mouse button could also be possible, but right is more convenient.

  2. Feature: context menu on objects: move object to layer.

If I create a dot, it is created on the drawing layer. It would be nice, if I can "send" them to the gpx layer.

ghost avatar Apr 18 '17 08:04 ghost

Seems reasonable, I will think about implementing it. It's also pretty simple, so if someone wants to get his/her hands dirty, let me know!

Krakonos avatar Apr 18 '17 13:04 Krakonos

What do you mean with loading online the possible values? If I have the key "leisure" the values Merkaartor shows are: bleachers garden nature_reserve park pitch playground sport sports_centre stadium swimming_pool

On the online editor (iD) appear more values. Do you want Merkaartor to fetch these values? A fallback to local values shipped with Merkaartor should be maintained.

Raulvo avatar May 18 '17 15:05 Raulvo

That is, because in the area you downloaded there is a i.e. leisure=garden. Or you used the value yourself. Merkaartor remembers the keys and values you insert for the current session. Furthermore it suggests values, which exist in the downloaded area.

Below this list, there should be the 10 most frequent values, which do not appear in the surrounding list. If you type anything, which is not in the list, it should fetch a list of suitable values from the taginfo db and list them as suggestions.

MaestroGlanz avatar May 21 '17 19:05 MaestroGlanz

@MaestroGlanz I was planning on crawling the OSM Wiki to extract the approved tags and their usual combinations and use taginfo to aid in the relevance of the suggestion. Because crawling the OSM Wiki is expensive if multiple clients do the same, I though on shipping the database with the plugin or Merkaartor.

Raulvo avatar May 22 '17 11:05 Raulvo

@Raulvo Isn't there some database like this already? Anyway, I'd be happy to include some databse if it did not involve some complicated logic (conditional tags and such) rather soon (though I didn't have much time recently...).

Krakonos avatar May 22 '17 14:05 Krakonos