Skip to content

Instantly share code, notes, and snippets.

@courington
Last active December 13, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save courington/0fd2a96ce11be66d9d7f1e9587a6e067 to your computer and use it in GitHub Desktop.
Save courington/0fd2a96ce11be66d9d7f1e9587a6e067 to your computer and use it in GitHub Desktop.
December 2016 Hackday Project
  • weather widget on map

  • default map state (https://www.mapquest.com/)

    • if geolocation is enabled, show forecast widget for current location
    • if !geolocation, don't show forecast widget (unless user manually sets location)
    • bonus points:
      • as user pans the map
        • update forecast widget on map pan stop after ~3 second delay
        • base new forecast on centroid of the map bounding-box only if zoom level > 7
          • if the current location is outside of the bounding-box || not enabled hide the forecast widget
          • if current location is inside the bounding-box and zoom is < 7, show forecast for current location
  • info-bubble

    • weather in info-bubble based on lat/lng
  • route-narrative

    • weather at stops (start, stop[x], end)
  • POI deep-link (https://www.mapquest.com/us/colorado/liquor-stores-evergreen/revival-brews-358535560)

    • no weather widget on map, put weather into infosheet/bubble
@bergendavell
Copy link

EXTRA bonus points:

  • if the user clicks on the weather widget they are presented with the 7-day forecast for their current or panned location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment