jgpacker / osm-smart-menu

An OpenStreetMap webextension for Firefox and Chrome
GNU General Public License v3.0
56 stars 12 forks source link

Add RapiD editor #38

Open willemarcel opened 4 years ago

willemarcel commented 4 years ago

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

Dimitar5555 commented 3 years ago

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]);
Bibi56 commented 2 years ago

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.