问题
Is there any library written in JavaScript for offline routing, to generate routes based on OSM data? And is there any with leaflet support?
回答1:
While not generally advised (see scai's comment above), you actually can do offline routing in JavaScript, for example by using graphhopper cross-compiled to js or any of these libs.
来源:https://stackoverflow.com/questions/33102211/javascript-offline-routing-library-for-openstreep-maps