Leaflet.js essentials create interactive, mobile-friendly mapping applications using the incredibly light yet powerful Leaflet.js platform
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.
Otros Autores: | , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England :
Packt Publishing
2014.
|
Edición: | 1st edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629747906719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Creating Maps with Leaflet; Creating a simple basemap; Referencing the JavaScript and CSS files; Using a hosted copy; Using a local copy; Creating a tag to hold the map; Creating a map object; Adding a tile layer; Tile layer providers; Adding a Web Mapping Service tile layer; Multiple tile layers; Adding data to your map; Points; Polylines; Polygons; Rectangles and circles; Rectangles; Circles; MultiPolylines and MultiPolygons; MultiPolylines; MultiPolygons
- Groups of layersLayer group; Feature groups; Pop ups; Mobile mapping; HTML and CSS; Creating the mobile map with JavaScript; Events and event handlers; Custom functions; Summary; Chapter 2: Mapping GeoJSON Data; Understanding GeoJSON''s roots; Exploring GeoJSON; GeoJSON in Leaflet.js; GeoJSON as a variable; Multiple geometries in GeoJSON; Polygons with holes; GeoJSON from Leaflet.js objects; Styling GeoJSON layers; Iterating through the features; Attaching pop ups with onEachFeature; Making layers from points with pointToLayer; Displaying a subset of data with filter; Summary
- Chapter 3: Creating Heatmaps and Choropleth MapsWhat is a heatmap?; Heatmaps with Leaflet.heat; Using options to style your map; Changing the blur value; Changing the maxZoom value; Changing the radius value; Setting the gradient option; Methods of Leaflet.heat; Adding markers to the heatmap; Creating heatmaps with heatmap.js; Modifying the heatmap options; Adding more data to the map; Creating an interactive heatmap; Animating a heatmap; Creating a choropleth map with Leaflet; The GeoJSON data; Setting the color with a function; Styling the GeoJSON data; Creating a normalized choropleth map
- SummaryChapter 4: Creating Custom Markers; Creating a custom marker; Preparing your workspace in GIMP; Drawing and saving your image; Drawing the marker shadow; Using an image as an icon; Using a custom marker in Leaflet; Defining an L.Icon class; Using predefined markers with plugins; Using Mapbox Maki markers; Using Bootstrap and Font Awesome markers; Clustering markers with Leaflet.markercluster; Coding your first cluster map; Methods and events available to markercluster layers; Options that default to true; Other options and events; Animating markers with plugins; Bouncing your markers
- Making your markers moveUsing markers for data visualization; Using the Leaflet Data Visualization Framework plugin; Making basic markers; Bar and pie chart markers; Summary; Chapter 5: ESRI in Leaflet; ESRI basemaps; Using shapefiles in Leaflet; Consuming ESRI services; Heatmaps with ESRI in Leaflet; Geocoding addresses in Leaflet; Geocoding - from an address to a point; Geocoding from URL parameters; Reverse geocoding - using points to find addresses; Query by attribute; Query by proximity; Summary; Chapter 6: Leaflet in Node.js, Python, and C#; Building Leaflet applications with Node.js
- A basic Node.js server with Leaflet