Add Migration Map tool (animated migration timeline)#935
Draft
brianmcaudill wants to merge 1 commit into
Draft
Conversation
Migration Map is an Analysis tool that writes a self-contained animated HTML map (Leaflet) of how people and families moved over time. It reads every dated event whose place has coordinates, groups them per person in time order, and produces a timeline you can play: each person's path draws itself across the years, dots pulse on the moves happening that year, and a readout names who is moving where. Paths are coloured by surname. Pairs with the Geocode Places tool, which supplies the coordinates. All tree text is HTML-escaped before embedding and the Leaflet CDN assets carry Subresource Integrity hashes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft for review.
What it is
A Tool (Tools → Analysis and Exploration → Migration Map) that writes a self-contained, animated HTML map of how people and families moved over time, and opens it in the browser. It reads every dated event whose place has coordinates, groups them per person in time order, and produces a Leaflet timeline you can play: each person's path draws itself across the years, dots pulse on the moves happening that year, and a readout names who is moving where. Paths are colored by surname.
Requirements
Only places with coordinates appear. Run a geocoder first (e.g. the companion Geocode Places tool, or the Place Coordinate Gramplet). Events also need a year. The page loads Leaflet + OSM tiles from the internet (Subresource Integrity pinned).
Security
All person/place/event text is HTML-escaped before being embedded in popups; the Leaflet CDN tags carry SRI hashes.
Testing done
Verified on a real 868-person tree: event collection, the HTML/animation rendering (692 located events for 321 people, 1587–2016, rendered headlessly via a browser), and plugin registration as a Tool. The tool follows the standard
ToolManagedWindowBatch+MenuToolOptionspattern (modeled on AttachSourceTool). Reviewer GUI run welcomed before merge.Notes
Targets
gramps_target_version="6.0"/maintenance/gramps60; can port to 6.1.