Read CSV text data


(Vincent) #1

Hi,
I need to display text datas from a CSV file
to give details of points of interest on a map.

I have 40 points of interests, so 40 rows and 4 columns
TITLE | ADDRESS | TEL | MAP IFRAME CODE |

Do you know a way to give the ability to Hype to read this CSV file
each time the mouse comes hover a point ?

Kind regards,
Vincent


(Loves Hype) #2

Use some JS to parse the CVS to a data object only once and then use the data. You can store the data object in hypeDocument.customData

A quick search reveals a simple parser

Or a more sophisticated library with error handling etc. https://www.papaparse.com

I am on the road so I can only point you in a direction


(Vincent) #3

Thank you Max !
I’ll take a look to those links.
Kind regards
Vincent


#4

Maybe Leaflet.js is what you’re looking for… https://leafletjs.com :thinking: