ticker icon indicating copy to clipboard operation
ticker copied to clipboard

Feature: Umap Support

Open whoamiafterall opened this issue 3 years ago • 0 comments

Current Map Features

The current map feature doesn't have the following features:

  • Not added to posts in Integrations (Twitter, Telegram, Mastodon)
  • No Layers
  • No Design options for objects (Color, Shape, etc.)

Proposal

Use https://github.com/umap-project/umap as the Map Software because it has layers and Design Options. See example map: https://lstu.fr/luetzisolimap

Input Side (to umap)

There could be a GeoRSS feed generated by the Ticker which automatically integrates to a umap. So maybe just an additional field or an iframe of the map in the ticker-admin-panel to add an object to the map. Examples for such a mechanism here:

  • https://wiki.lantifa.org => https://map.lantifa.org (Wiki => Umap)
  • https://www.openstreetmap.org/user/ybon/diary/21700 (Flickr => Umap)

It would be really nice if there was an option to have multiple maps connected and be able to select before sending a post on which map to add the marker/object through the admin panel. Also an option to select none would be good, to not create an additional requirement for each post.

Markdown Support

Umap supports a flavor of Markdown, so the Text of the Ticker Posts could be added to the Information of the Object on the map. Also Photos and Links can be added. See: https://wiki.openstreetmap.org/wiki/UMap/Guide/Text_formatting

Output Side (from umap)

For the Posts there is probably no easy way to add an interactive map on every Platform (maybe html-iframes, but probably not). A compromise could be:

  • the selected map is shown in an iframe in the admin panel
  • you select the zoom level and part of the map that should be posted in that iframe (by dragging and zooming)
  • the ticker software automatically takes a screenshot of that exact frame when you click on a button (e.g. send or dedicated button) and adds it as a photo to the Post
  • the Map is distributed to all Platforms via the Screenshot

Here is an API that might be useful: https://rapidapi.com/collection/screenshot-api

Ideas on how to do it

Sorted from hard/nice to easy/okay

  1. Connect the Ticker-Account to a umap/openstreetmap Account, so you could choose from all the Maps the Account has access to. Umap uses openstreetmap for its Account Management (SSO) so there is probably a way to mimic that and have the ticker as an SSO-Client for Openstreetmap.

  2. Just have a single map connected to one Ticker Feed through a GeoRSS-feed. This can simply be done via the settings of the umap. It just requires the Ticker-API to generate a GeoRSS-Feed. It could be done with an if-clause that makes it not push to umap when there is no information about location added.

Additional Information

  • Umap on Matrix: https://matrix.to/#/#umap-project_umap:gitter.im

whoamiafterall avatar Dec 11 '22 13:12 whoamiafterall