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

maps: Basic leaflet map #10

Merged
merged 2 commits into from
Nov 1, 2022
Merged

maps: Basic leaflet map #10

merged 2 commits into from
Nov 1, 2022

Conversation

Lathrisk
Copy link
Contributor

@Lathrisk Lathrisk commented Oct 27, 2022

#6

This adds a basic leaflet map to the explore page. It currently loads and displays the generated spans and nodes.

I decided to run with leaflet as modern openlayers is a JS compilation nightmare, and we can use leaflet plugins if we do decide we want another projection (i.e. https://github.com/kartena/Proj4Leaflet)

I wasn't sure how much error handling or resilience to add, so it just fails and provides an error message if it can't load a layer from the geojson files.

@Lathrisk Lathrisk self-assigned this Oct 27, 2022
@Lathrisk Lathrisk requested a review from odscjames October 28, 2022 14:01
@Lathrisk Lathrisk marked this pull request as ready for review October 28, 2022 14:01
@odscjames
Copy link
Collaborator

Can your template stuff check the variable can_download_geojson ? Not every data page is guaranteed to have GeoJSON files, if there is a problem converting that. Apart from that, looks great as a first go - we can sort details of error handling later.

This adds a basic leaflet map to the explore page. It currently loads and displays the generated spans and nodes.
@Lathrisk Lathrisk merged commit a5930e0 into live Nov 1, 2022
@Lathrisk Lathrisk deleted the map branch November 1, 2022 11:12
@Lathrisk Lathrisk mentioned this pull request Nov 1, 2022
3 tasks
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