Leaflet.js Essentials
Edition: 1st edition
Series: Community experience distilled
Publisher: Packt Publishing
Published: 2014
Place of publication: Birmingham, United Kingdom
Language: eng
Format: E-book
Number of pages: 162
ISBN-13: 9781783554812
Copyright date: 2014
First sentence: Web-based mapping has evolved rapidly over the last two decades, from MapQuest and Google to real-time location information on our phones' mapping apps. There have been open source projects to develop web-based maps in the past, such as MapServer, GeoServer, and OpenLayers. However, Environmental Systems Research Institute (ESRI) includes the Flex and Silverlight APIs; these create web-based maps from their ArcServer services.
Description: Create and customize your maps and mapping applications using JavaScript and Leaflet.js. Leverage the features of existing libraries, plugins, and HTML 5 geolocation APIs to enrich your mapping applications. Learn the advanced features of Leaflet.js in a streamlined, step-by-step manner.

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.

With this book you will learn:

* Incorporate Tile Layers and Web Mapping Services into your map
* Write custom functions that use events to make interactive maps
* Add GeoJSON data to a web map
* Create your own images to use as markers on your map
* Build desktop applications using C#
* Make heatmaps and chloropleth maps
* Take advantage of third-party plugins to enhance your map


Starting with how to create maps, you will learn about choosing your basemap and customizing it by adding various attributes such as zoom, start view, pop ups, and so on.

Once you have gained experience of creating your own map with Leaflet, you will move on to combining Leaflet with GeoJSON and adding geometry objects and features to your maps.

Moving ahead, you will proceed to create custom markers using images and discover various plugins such as the Cluster Marker plugin, the Bouncing Marker, and the Animated Marker to animate and move markers. You will then explore the latest ESRI features available on Leaflet and make use of its updated JavaScript library.

Finally, you will understand how Leaflet enables you to use Node.js, C#, and Python alongside its own library to efficiently create maps.