osm-smart-menu icon indicating copy to clipboard operation
osm-smart-menu copied to clipboard

Add RapiD editor

Open willemarcel opened this issue 5 years ago • 2 comments

Base URL: https://mapwith.ai/rapid

willemarcel avatar Jul 07 '20 00:07 willemarcel

I've made a small snippet that can insert the RapiD editor in the edit menu but I'm not sure where would be the right place. It must be ran after the document has loaded. Here is the snippet:

var children = document.querySelector('#edit_tab').querySelector('ul').children;
var insertedChild = document.createElement('li');
insertedChild.innerHTML = '<a data-editor="id" class="geolink editlink dropdown-item" target="_blank" href="https://mapwith.ai/rapid">Edit with RapiD</a>';
children[1].parentElement.insertBefore(insertedChild, children[1]);

Dimitar5555 avatar Jul 22 '21 20:07 Dimitar5555

I've started to create a list of list, see https://wiki.openstreetmap.org/wiki/Talk:OSM_Smart_Menu#Advanced_method_to_add_new_links. Feedback and improvements welcome.

Bibi56 avatar Dec 21 '21 22:12 Bibi56