
Discover how to use Leaflet JS effectively through clear guidance, practical practice, and plugin integration, with emphasis on documentation, GPS tracking examples, and building real projects.
Explore why and how to use Leaflet JS, understand core concepts and the architecture, then build a map with forms and finally enhance it with plugins to master Leaflet.
Leaflet is a JavaScript library that helps us build interactive maps. This lecture focuses on how to choose Leaflet, with the selection covered in the next lecture.
Discover why Leaflet is an open-source mapping library with excellent documentation and extensible plugins. Learn how its active community, markers, shapes, and map tiles simplify flexible web maps.
Explore map references using latitude and longitude as 2D coordinates, with X, Y, and Z in 3D space, and relate GPS positions to ship positions and the map origin.
Explore how circles and polylines underpin all shapes in Leaflet, including points, markers, polygons, rectangles, squares, and triangles, with the rectangle and square as polygon variants.
Explore how Leaflet manages layers, from the material base with providers like OpenStreetMap and Google Maps, to shapes, markers, and popups, and learn how swapping tile layers enables flexible maps.
Understand how Leaflet displays maps as zoom-specific tile sets, loading more detailed tiles per zoom level and how you can create your own custom tile layer.
Explore map projection in Leaflet with a clear video and official resources, explaining how projections work and where to find more details.
Learn why Euclidean distance fails on Earth's spherical surface and how to apply spherical distance formulas, including the cosine-based approach, for precise measurements in Leaflet JS.
Explore the Leaflet architecture, focusing on the main math class and its links to the handler, control, layers, and overlays, plus shapes like polygons and markers.
Set up the Leaflet JS environment by downloading the stable version, or using CDN or npm, and begin a map while reading the official documentation.
Learn to create a Leaflet map by initializing a map with a center and zoom, loading an OpenStreetMap tile layer, and adding attribution through map layers.
Explore adding markers in Leaflet: initialize the map, set latitude and longitude, and use marker options such as title, draggable, and custom icons with size and anchor.
Compute the direct distance between two markers from their latitude and longitude, not following roads, comparing the Harrison method with the spherical law of cosines, shown with a six-kilometer example.
Explore drawing shapes with Leaflet js by creating circles, polylines, polygons, and rectangles, then customize them with color, opacity, and optional radius using latitude-longitude coordinates and path options.
Explore implementing Leaflet JS map events, including click, double click, mouse over, move, and drag on markers, circles, and polygons, with live latitude and longitude updates.
Learn to work with popups in Leaflet JS by creating and binding popups to markers or shapes, customizing content with coordinates, and using click and hover events.
Learn to add a layers control in Leaflet, switching base layers and toggling overlays like start points, end points, polygons, and circles, using a layer group for combined shapes.
Switch between multiple map tiles in Leaflet by swapping tile layers and providers, such as OpenStreetMap and Google Maps, using layer controls and tile URLs.
GeoJSON is a json-based format for encoding geographic data structures, defined by GeoJSON.org, enabling export and import of geographic data between systems and widely used in gis and gps workflows.
Explore GeoJSON structures by examining features, properties, and geometry types such as point and polygon, including coordinates, latitude, and longitude, with practical examples.
Explore how to use GeoJSON in Leaflet to render points and polygons, style features by property values, customize markers, bind popups, and filter data for interactive maps.
Create a Leaflet map with three layers: hotels as icons, historical monuments as points, and parks as polygons, with per-type interactions and a visited button.
Learn Leaflet basics by building an interactive map with hotel, park, and visit layers, custom icons, popups, and overlays to control layer visibility.
Explore how Leaflet plugins extend the library's power with third-party code, offering easy, plug-and-play downloads organized by category to enhance mapping capabilities.
Learn how to use and integrate Leaflet plugins by exploring the official plugin directory, testing demos, reviewing readmes, and implementing plugins for tile layers, interactions, and providers.
Evaluate whether core leaflet features meet your needs before considering plugins, then consult the plugin database and demos to avoid reinventing the wheel.
Explore how to install and integrate the draw plugin for Leaflet, create the draw control, link it to a feature group, and manage shapes via create, edit, and save events.
Learn to integrate the SnakeAnim plugin in Leaflet JS to animate a polyline between latitude–longitude points, control speed, and observe how zoom affects display.
Explore pruning large marker sets with prune cluster in leaflet to cluster hundreds of thousands of markers, bind custom popups, and visualize region-based counts as you zoom.
Explore a hands-on Leaflet.js plugin test overview that teaches integrating a new plugin, visualizing a latitude-longitude path, and playing back movements with site visits using the Gleevec plugin.
Learn to add a Leaflet plugin using live playback and examples to create interactive maps with markers, sliders, and customizable playback.
Practice regularly to become an expert with leaflets, building small projects and using plugins. Explore demos, consult the extensive documentation, and reach out via Q&A for any gaps.
Leaflet.js is the open-source JavaScript library behind countless web maps, from store locators to fleet tracking dashboards. It is lightweight, free, and far more capable than most developers realise.
This course takes you from zero to a complete map app, step by step. You start with the mapping concepts you need, understand how Leaflet is built, then write code: markers, shapes, popups, events, layers, tiles and GeoJSON. Then you extend your maps with plugins for drawing, animated routes and clustering thousands of markers.
You practise as you go: two hands-on exercises with full video solutions, and three quizzes.
What you will learn
Mapping concepts: coordinates, layers, projections and distances on a sphere
How Leaflet is structured, and how to read its documentation
Create a map, add markers, shapes and popups, and react to user events
Measure the distance between points
Add a layer control and switch base map tiles
Load and display GeoJSON data
Use and evaluate plugins: Leaflet.draw, animated routes (SnakeAnim) and PruneCluster
Who this course is for
Web developers who want to add interactive maps to their apps
Developers building location-based, logistics or GPS tracking front ends
Students and GIS beginners who want a practical start with web mapping
Frequently asked questions
Do I need GIS experience? No. The concepts section covers what you need.
Do I need a paid map service? No. Leaflet is free and open source.
Does it cover React or a backend? No. The course uses plain HTML and JavaScript, so it applies to any framework.
Is the source code included? Yes. The code is attached to the lectures, so you can follow along or compare with your own.
AI disclosure: the course videos were recorded by the instructor. Some description text was drafted with AI assistance and reviewed by the instructor.