Hello,
I am very inexperienced with coding. I know it’s a bit amateurish, but I’m trying to use ChatGPT to write my codes and explain them to me.
I need an open street map on my site that will create the pins I have in my wix database. I have already managed to create a map thanks to Leaflet. Now I don’t know how to feed my map with the data from my database. ChatGPT suggested me a solution in which I should create a .js (see screenshot).
Then on the page where I want the map to be displayed, I should create an HTML element that connects to my .js file. That sounded logical so far. But at the line
I have problems. I suspect the phad is wrong. but I don’t know how to find out the correct phad from my created .js file.
How do i find out the correct phad?
If my whole procedure is wrong: how to proceed instead if i want to connect my map with data from my database?
Thank you for any suggestions on how to solve this.
