UCL / kapta-mobile

Mobile Progressive Web App enabling users to generate maps from WhatsApp chats
Apache License 2.0
1 stars 1 forks source link

26/include exported media #75

Closed acholyn closed 1 month ago

acholyn commented 1 month ago

Closes #26

When passing the data to the Map component, we now include an imgZip which contains the zipped images from the import. If a message contains information referring to an image file, that information is added to the features' properties in an imageFilenames array - this allows more than one image to be associated with a feature. In the Map, when a marker is clicked, the image/s is/are fetched from the zip and added to a stateful cache. The next time it will be fetched from the cache and not the zip.