Add advanced option to add a "sun position" ray to the geolocator map

Open
#244 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
django, python
Domain
frontend, web-dev

Research direction

Start from the georeference view for a single image (the URL pattern behind /georeference/?image=<id>) and find the template and JavaScript that build the Leaflet map, then check where the photo's timestamp and coordinates are available to that context. Sun azimuth/altitude for a given time and lat/lon needs a small computation, so compare against suncalc for one known photo before wiring it in. Done means an optional layer drawing a sun-direction ray on the map, off by default, verified against the referenced example image.

Written by the indexing model from the issue text.

Description

This only works for photos that have a timestamp but was very helpful in sorting out which direction this photo was taken: https://yesterdays.today/georeference/?image=68958

In the mean time I used this: https://www.suncalc.org/#/35.5433,-98.3184,6/2008.09.06/15:59/1/3

I've submitted a PR for mapswipe for the time being as an (probably reasonable?) workaround.

Dominant language
Python
Stars
16
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MapRVA/yesterdays

All issues in MapRVA/yesterdays

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.