Skip to Main Content
Leaflet.js Essentials
book

Leaflet.js Essentials

by Paul Crickard III
August 2014
Intermediate to advanced content levelIntermediate to advanced
180 pages
3h 41m
English
Packt Publishing
Content preview from Leaflet.js Essentials

Chapter 4. Creating Custom Markers

In Chapter 3, Creating Heatmaps and Choropleth Maps, you learned how to style your maps to create a heatmap and a choropleth map. Leaflet allows you to further customize the style of your map by modifying the default markers. In this chapter, you will learn how to style markers by creating custom marker icons. You will also learn about the available marker plugins for styles and effects.

Creating a custom marker

In Leaflet, a marker is made from two images: an image that represents the marker and a second image that serves as the shadow to create depth. When you download Leaflet, there is an images folder. This folder contains the default marker: the blue pin that you have seen in your maps and a small shadow image. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GeoServer Beginner's Guide - Second Edition

GeoServer Beginner's Guide - Second Edition

Stefano Iacovella
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths
Stop Guessing

Stop Guessing

Nat Greene

Publisher Resources

ISBN: 9781783554812Supplemental Content