Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via pnpm

leaflet 1.9.4

JavaScript library for mobile-friendly interactive maps
Package summary
Share
0
issues
1
license
1
BSD-2-Clause
Package created
26 Feb 2013
Version published
18 May 2023
Maintainers
6
Total deps
1
Direct deps
0
License
BSD-2-Clause

Issues

0
This package has no issues

Licenses

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
leaflet@1.9.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of leaflet 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does leaflet do?

Leaflet is a leading open-source JavaScript library for creating mobile-friendly interactive maps. It was built with simplicity, performance, and usability in mind. Despite its light footprint of roughly 39 KB of gzipped JS and 4 KB of gzipped CSS code, it comes with a rich set of mapping features suited for most developers' needs. Leaflet operates effectively across all key desktop and mobile platforms, leveraging HTML5 and CSS3 on modern browsers but also maintaining accessibility on older ones. It offers a broad range of extensions via numerous plugins, a user-friendly and well-documented API, and an easily readable source code, which welcomes contributions from the developer community.

How do you use leaflet?

Using Leaflet in your JavaScript project is straightforward. First, you'll need to include the Leaflet CSS and JS files in your HTML file.

<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>

Then, you can begin to create maps in your application. For instance, you might initialize a map focused on a specific geographical location in the following way:

let map = L.map('map').setView([51.505, -0.09], 13);

Next, you can add a tile layer to the map from an open-source provider like OpenStreetMap:

L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: 'Β© OpenStreetMap contributors'
}).addTo(map);

Lastly, you can add interactive features like markers, circles, and polygons with popup text:

L.marker([51.5, -0.09]).addTo(map)
    .bindPopup('A marker added to the map.')
    .openPopup();

Where are the leaflet docs?

The detailed Leaflet documentation is available at http://leafletjs.com/reference.html, offering a comprehensive reference of the API. For more info, additional documentations, and tutorials, you can check out the official website. If you wish to contribute to Leaflet, visit their GitHub repository or read their contribution guide.