Hello
I have been reading a pas post and have made it this far but it doesn't seem to work for me and I'm stuck to be honest.
I have a repeater page linked to a dataset I want a map to appear from a button on each line on the repeater in a lightbox and show a map location. I paste my code below and would be grateful if I could get some help.
Repeater page
import wixWindow from 'wix-window'; import wixLocation from 'wix-location'; $w.onReady(() => { let receiveData = wixWindow.lightbox.getContext(); //will be equal to itemData console.log(receiveData); $w('#googleMaps1').location = { "latitude": receiveData.latitude, "longitude": receiveData.longitude, "description": receiveData.businessName }; });
Lightbox page
import wixWindow from 'wix-window'; $w.onReady(() => { let recivedData = wixWindow.lightbox.getContext(); });
Any help would be greatly appreciated :)