I'm looking for an offline map API for web like Google maps (because I know I can't use this offline). I currently have a program (using js and node.js) that uses the google maps api and google roads api to produce a map, and given a set of points, returns another set of points containing roads nearest to the given points, and plots this. I need to make all of this work offline.
I've been looking at offline solutions like Open Street Maps (which a lot of people suggest), but I can't seem to figure out how to plot things. I've also looked at JOSM, but is it possible to plot on JOSM using a program rather than directly on the interface?
I'm currently working on plotting roads in Taipei, so I've already downloaded MBTiles for this city, as per some suggestions I've looked at online. I'm not sure what to do with these tiles however. Is it possible to plot points/lines on these tiles, and is there a built in function (like google roads snap to roads) that finds the nearest road?
What I've tried: I have tried Open Street Maps, JOSM, Leaflet, OpenLayers, but I can't seem to be getting the hang of any of these. Which makes me think, what if these tools aren't what I'm looking for?
Question: How do I go about plotting lines on the above listed tools? What do I do with the tiles I've already downloaded? If there simply is no hope for me to do what I want to with the above listed tools, is it possible to use something else, or is my project a lost cause?