Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Leaflet.js Essentials
  • Table Of Contents Toc
Leaflet.js Essentials

Leaflet.js Essentials

By : Paul Crickard III
4 (7)
close
close
Leaflet.js Essentials

Leaflet.js Essentials

4 (7)
By: Paul Crickard III

Overview of this book

If you are a web developer working with geospatial concepts and mapping APIs, and you want to learn Leaflet to create mapping solutions, this book is for you. You need to have a basic knowledge of working with JavaScript and performing web application development.
Table of Contents (8 chapters)
close
close
7
Index

Building Leaflet applications with Node.js

Node.js is a JavaScript-based platform that builds non-blocking applications. The non-blocking feature is what has made Node.js extremely popular. Think about how you code. You complete tasks step-by-step. You might jump around in your code, calling functions and responding to events, but you wait until one action is complete before you start the next. With Node.js, you assign callbacks and move on to the next task or handle the next request. Take a database search, for example. In the following pseudocode, you retrieve a record and do something with it in the traditional manner:

var result = SELECT * from MyTable;
document.getElementById['results'].innerHTML= result;

In the example, you wait for the database to send back the results, and then you move on to displaying them. In Node.js, you would do something similar but assign a callback function, as shown in the following example:

function showResults(){document.getElementById['results...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Leaflet.js Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon