openstreetmap / merkaartor

Home of Merkaartor, an openstreetmap mapping program.
http://merkaartor.be/
Other
292 stars 79 forks source link

Load keys from database #130

Open ghost opened 7 years ago

ghost commented 7 years ago

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.

Krakonos commented 7 years ago

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!

Raulvo commented 7 years ago

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.

ghost commented 7 years ago

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.

Raulvo commented 7 years ago

@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.

Krakonos commented 7 years ago

@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...).