Summary
In this last chapter, you have learned how to use Leaflet.js in other programming languages and frameworks. Starting with Node.js, you learned how to use JavaScript on the frontend and the backend. You created a Node.js server that returned a Leaflet web page. You then modified the code to allow AJAX calls back to the server to update the map without reloading the page.
You also learned how to create a server and allow AJAX requests using Python and CherryPy. The Python example introduced NoSQL databases, in particular, MongoDB. You learned how to write a query to return all the documents in a database collection as well as how to use AJAX to query only points that are near the points where a user has clicked.
Lastly—for something totally ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access