Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement leaflet.markercluster for items map #333

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

kngai
Copy link
Contributor

@kngai kngai commented Jun 14, 2024

Similar to geopython/pygeoapi#1025, this PR implements the use of Leaflet markerClusterGroup plugin only for the collection/items/index.html page.

JS code changes were made to make this work:

  • Removed use of leaflet-esm in order to work with the non-esm supported L.markerClusterGroup
  • Loading leaflet-non-esm and leaflet.markercluster via ESM import map for ease of view
  • Add logic to determine if GeoJSON is point geometry or not for markerCluster handling

- Removed use of leaflet-esm in order to work with non-esm supported L.markerClusterGroup
- Loading leaflet-non-esm and leaflet.markercluster via ESM import map for ease of view
- Add logic to determine if GeoJSON is point geometry or not for markerCluster handling
@tomkralidis tomkralidis merged commit 4d60f69 into ECCC-MSC:master Jun 14, 2024
1 of 2 checks passed
@kngai kngai deleted the issue-668-map-point-clustering branch December 11, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants