osm-smart-menu
osm-smart-menu copied to clipboard
Add RapiD editor
Base URL: https://mapwith.ai/rapid
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]);
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.