Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Umap Support #167

Open
whoamiafterall opened this issue Dec 11, 2022 · 0 comments
Open

Feature: Umap Support #167

whoamiafterall opened this issue Dec 11, 2022 · 0 comments

Comments

@whoamiafterall
Copy link

whoamiafterall commented Dec 11, 2022

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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant