Skip to content

Cyanade/LeafletJS-HTML-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

LeafletJS-HTML-Demo

An example project showcasing the integration of LeafletJS library into HTML to create interactive maps.

Getting Started

To use this demo, follow the steps below:

  1. Clone the repository to your local machine using the following command: git clone https://github.com/Cyanade1/LeafletJS-HTML-Demo.git

  2. Open the index.html file in a web browser.

The browser should display a map centered on a specific location.

Customizing the Map

To customize the map or add additional functionality, you can modify the JavaScript code in the index.html file.

  • To change the initial view and zoom level, modify the setView function parameters in the following line: var map = L.map('map').setView([51.505, -0.09], 13);

  • To add markers, polygons, or other layers to the map, refer to the Leaflet documentation and examples: Leaflet Documentation

Resources

  • Leaflet Documentation: The official documentation for the Leaflet library, which provides detailed information on the available features and API.
  • Leaflet Examples: A collection of interactive examples showcasing different use cases and functionalities of Leaflet.

License

This demo is licensed under the MIT License.

Thank you for exploring the LeafletJS-HTML-Demo! We hope you find it helpful and encourage you to experiment and enhance the functionality of the map according to your project's needs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages