Book Image

Leaflet.js Essentials

By : Paul Crickard III, Paul Crickard
Book Image

Leaflet.js Essentials

By: Paul Crickard III, Paul Crickard

Overview of this book

Table of Contents (13 chapters)
Leaflet.js Essentials
About the Author
About the Reviewers


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 different—you learned how to embed a web browser into a Windows Form and run a desktop application with Leaflet. The applications used buttons on the form to execute JavaScript functions that were injected into the LeafletEssentials.html file. You...