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 ...

Get Leaflet.js Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.