我需要一个工作例子,因为这个鳕鱼生成的文本框没有按钮来运行代码。那么如何才能让按钮运行代码呢?
var geocoder = L.Control.Geocoder.nominatim();
L.Routing.control({
geocoder: geocoder,
waypoints: [
L.latLng(null, "here my current position, data from GPS"),
L.latLng(null, "here address as string, input from the user")
],
show: false,
routeWhileDragging: false,
}).addTo(map);