The application is designed to display the location of companies in a user-friendly way on a map with the ability to group the created markers into clusters. Various options for displaying map layers and additional options are available.
Structure: | |
---|---|
Dependencies |
Appearance: | |
---|---|
Appearance (mobile version): | |
---|---|
Portrait | Landscape |
The following additional libraries are used:
- Leaflet: JavaScript library for interactive maps
- Leaflet.markercluster: An extension to Leaflet that allows markers to be grouped into clusters to improve map display efficiency.
- geoBoundaries Global Database: Political Administrative Boundaries Database an open license, standardized resource of boundaries for every country in the world.
The libraries are integrated into the project and no additional installation is required.
- Download the project from the repository.
- Open the HTML file in your web browser or use a local server to run it.
- Map: The map coordinates and parameters are configured in
L.map('map').setView([49.0, 31.0], 6);
in themap.js
file. - Markers: Company data is loaded from the
companies.json
file and used to place markers on the map. Markers are stored in themarkers
folder. - Clusters: The clustering of markers is implemented using
Leaflet.markercluster
. - Legend: Legend data is loaded from the
legend.json
file. Markers are stored in themarkers
folder.
- State borders of Ukraine: Geodata for the borders of Ukraine are loaded from the
geoBoundariesGeneral.geojson
file. - Regional borders: The geodata for Ukrainian regions are loaded from the
geoBoundariesSimplified.geojson
file. - District borders: The geodata for for districts of Ukraine are loaded from the
geoBoundariesDetailed.geojson
file.
- Adding Interactivity: I am considering adding additional interactivity for markers or additional layers on the map.