GithubHelp home page GithubHelp logo

sonjafeitsch / imaginary-geo-itinerary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fafeitsch/imaginary-geo-itinerary

1.0 0.0 0.0 53.77 MB

An image slideshow web application designed for presenting pictures from a road trip, such as hiking tours, bicycle journeys, etc

License: MIT License

TypeScript 69.48% CSS 4.36% HTML 12.76% SCSS 13.40%

imaginary-geo-itinerary's Introduction

Imaginary Geo Itinerary

Imaginary Geo Itinerary (IGI) is a media slideshow web application designed for presenting pictures or videos from a road trip, such as hiking tours, bicycle journeys, etc:

Screenshot from the app

The left side pane shows the itinerary. It can be split in different groups. For example, in the image above the whole hiking tour was split into its four days. Each of the group can again have multiple tracks. The screenshot shows that the second day consisted of a taxi trip and the actual hiking trip. Every group can be either selected or unselected. Here, Day 2, Day 3, and Day 4 are selected.

All tracks of all selected groups are shown in the map in the lower part of the screen. All image locations are shown, too.

The upper part of the app consists of the slideshow. It slides through the pictures or videos belonging to the currently selected groups. The location of the current media object is emphasized in the map.

IGI offers the possibility to either show the map only, the pictures or video only, or the combined view (see Presenting below).

Changelog

Please use GitHub's auto-generated changelog. Major version changed indicate incompatible changes.

Using IGI

Give it a try

To just run the app with a sample itinerary (see itinerary) folder, either clone the repository and execute npm i && npm run dev, or download the released binary (if available) and put it into any running webserver.

Prerequisites

You need the following prerequisites for using IGI:

  • any web server, e.g. Apache, nginx, …
  • a text editor and basic knowledge of JSON
  • your tracks in form of GPX files
  • pictures and/or videos from your journey, together with their coordinates (unfortunately, it doesn't suffice to have the coordinates stored inside the images, see Limitations below.)
  • the IGI binaries (e.g. downloaded from Github's release page) or
  • npm installed to build the app from scratch: npm i && npm run build. The binaries are then stored in the dist directory.

Creating an itinerary

  1. Move IGI's binaries into your web server.

  2. Create a directory itinerary in the same directory where IGI is.

  3. Move your images and/or videos (mp4 format) and GPX files into itinerary. You can use any subdirectory structure you like.

  4. Replace the favicon.png by an appropriate image of your own. The favicon is not only shown in the browser's toolbar, but also in the general image area if the current group selection does not contain an image.

  5. Download the sample itenerary/index.json file from this repository and adapt it to your needs. Most of the format is self-explanatory. Information on the non-self-explanatory parts:

    • The map property defines the center of the map if the initial selection of the group does not have any images.
    • The tiles property contains information about map tile retrieval and attribution. For your personal use, it should be fine to use the OSM tile server (see example), as long as you follow their Tile Usage Policy. If you can't meet their policies, please consider alternatives.
    • The info property allows you to specify a link in the app info menu, which appears after pressing the (i)-button. This can be used to link to a legally required contact information if you plan to make the itinerary available to the public.
    • The types property defines the means of transport you used during the trip. Each type has a color and an optional symbol. These are used in the itinerary list and the map.
    • The coordinates in the image objects are [lat, lng]. We're using an array here because there could be a lot of images and this saves a few bytes compared to the object notation.
  6. Navigate to your server's URL and enjoy your itinerary.

Presenting

IGI opens in the default view, showing the itinerary, itinerary, and the first image of all pre-selected groups. To select or deselect a group, click it in the itinerary.

To cycle through the images, press '→' and '←'. To go to the next picture, you can also click on the current picture. Alternatively, the current image can be selected by pressing a marker in the map.

Press 'm' to make the map fullscreen, or press 'i' to make the image fullscreen. Press 'ESC' to reset to the default view.

Press 'h' to open the help menu. There, you find the keymapping, too.

Limitations and Issues

IGI has the following limitations:

  • The length of tracks is only shown if the respective group was selected at least once. This is because the tracks' length are stored in the GPX files which are only loaded at the moment they should be shown in the map. A workaround is to pre-select all groups in the itinerary. For large itineraries, this can lead to real long loading times.
  • GPS coordinates stored inside the image files are not used because that would mean to download all image files to show the markers in the map. Thus, image coordinates must be given manually.
  • If you want to display elevation data in the itinerary, you have to use the info field of the tracks. I don't use the elevation stored in the GPX file because it is not accurate and there is no easy and free way to load elevation data into GPX files (apart from the inaccurate SRTM dataset).
  • The url of media objects should be unique. It is not possible to use images or videos with the same url.

License

See LICENSE file.

imaginary-geo-itinerary's People

Contributors

fafeitsch avatar sonjafeitsch avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.