Page 1 of 1

Mapping data drawn from a mySQL database

Posted: Mon Feb 14, 2022 5:02 pm
by marcus
Hi, i found this way to create a Map linked to MySQL Data:
Mapping data drawn from a mySQL database
Has anyone an idea how I could implement this into nuBuilder?

Best regards marcus

Re: Mapping data drawn from a mySQL database

Posted: Tue Feb 15, 2022 4:33 pm
by kev1n
Hi,

You will need to include the leaflet library (if that one is used)
https://stackoverflow.com/questions/493 ... ustergroup

Then fetch data in Before Edit event, pass the data to JS with nuAddJavascript() and use JSON.parse()
Take a look at this Code Library article how it's done