You are previewing Instant Interactive Map Designs with Leaflet JavaScript Library How-to.
O'Reilly logo
Instant Interactive Map Designs with Leaflet JavaScript Library How-to

Book Description

An intuitive guide to creating animated, interactive maps with the Leaflet JavaScript library in a series of straightforward recipes

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.

  • Create user-friendly, interactive maps for desktop and mobile platforms

  • Deploy maps for desktop and mobile platforms

  • Add tiles, WMS, GeoJSON, custom markers with popups, and standard and custom controls to your maps

  • Create an interactive choropleth map

In Detail

Leaflet open source JavaScript library is a great alternative to GoogleMaps for creating dynamic and interactive maps. More importantly, it will enable you to layer your maps with data from a wide range of providers, or your own. Data on maps can take many forms – tiles, interactive markers, vector objects – and Leaflet handles them all.

Instant Interactive Map designs with Leaflet JavaScript Library How-to is written as a Cookbook, with straightforward recipes to help you harness the powerful features of the leading open source map library, from imagery to interactive vector objects on desktop and mobile browsers.

This book will help you learn how to create maps with the Leaflet JavaScript library through a series of step-by-step recipes to achieve great dynamic and interactive slippy maps.

You will also learn how to add dynamic responsive features to your maps through the use of tiles, WMS, GeoJSON, custom markers with popups, interactive vector objects, and standard controls, as well as custom ones. Furthermore, preparing to deploy on mobile and using the location of the device will be explained in detail.

Everything you need to know about Leaflet to create great maps, from a basic slippy map to a colorful, animated, interactive, choropleth map, will be explained in this book.

Table of Contents

  1. Instant Interactive Map Designs with Leaflet JavaScript Library How-to
    1. Instant Interactive Map Designs with Leaflet JavaScript Library How-to
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant Interactive Map Designs with Leaflet JavaScript Library How-to
      1. Getting started with Leaflet (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. More on Map options
          2. Building Leaflet from source
          3. What about tile providers?
      2. Using Leaflet on mobile (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. More on location events
          2. More on Map.locate(…) options
      3. Creating markers with popups and handling events (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. What about retina screens?
          2. More on Popup options
      4. Creating layers and layer groups (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Using Leaflet map controls (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. More on attributions
      6. Using GeoJSON to create stylish map objects (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. More on GeoJSON options
      7. Designing interactive choropleth maps (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...