Hello,
I wanted to have an address from my database be clickable once connected on a page.
To sum it up I will be listing places and want the user to “map it” by clicking the link and it taking them to the “google maps” page with the location up. I know how to do this with just a few locations by going to google maps them putting in the address and then taking the embedded link and using that as a url but I do not want to have to manually do this for thousands of locations.
Hi, If what you’re trying to do is have one map showing a single point at a time you can use the $w.GoogleMaps .
If you need multiple locations to be shown on the same map, use it in an iframe and use postMessage to deliver the points to it.
See here about working with iframes.
and assuming your database has two fields:
TITLE: ADDRESS (address):
M&Ms shop Manhattan
So on the dynamic page, instead of having the address as a text, use it as a button (design it to look however you want) and connect the label to the address or title field.
Then, in code, use $w.onReady to set the url:
I may be missing something but what do I put in replace of #dynamicDataset? It says not a valid selection and I changed to the name of my database and still generating an error… I was able to change the #button to the correct label
Thanks for getting back to me… Another Wix person was able to help with this yesterday… However, the one thing I am trying to figure out now is how to have it “map” each location from the repeater… It only maps the very first cell from my database under address column…