Image support #8

Open
opened 2023-06-26 13:50:28 +00:00 by newsch · 1 comment
newsch commented 2023-06-26 13:50:28 +00:00 (Migrated from github.com)

Now that the article sources contain image elements, we can display them in the app.

We need a plan that will:

  • preserve any necessary styling of the elements
  • convert the image urls from relative to absolute
  • keep the images hidden/unloaded by default
  • allow the user to enable image loading dynamically in the apps

Presumably we can mark the elements as hidden or similar, and have a piece of JS to toggle it that is loaded in the app webviews based on a user preference.

Now that the article sources contain image elements, we can display them in the app. We need a plan that will: - preserve any necessary styling of the elements - convert the image urls from relative to absolute - keep the images hidden/unloaded by default - allow the user to enable image loading dynamically in the apps Presumably we can mark the elements as [`hidden`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden) or similar, and have a piece of JS to toggle it that is loaded in the app webviews based on a user preference.
biodranik commented 2023-06-26 14:44:20 +00:00 (Migrated from github.com)

There is a setting in Organic Maps for Mobile Internet with the following options:

  • Always use
  • Always ask
  • Never use

We can leverage it and handle images accordingly.

There is a setting in Organic Maps for Mobile Internet with the following options: - Always use - Always ask - Never use We can leverage it and handle images accordingly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/wikiparser#8
No description provided.