Google maps from and to with distance.

I have created the following code that works fine outside of Wix:

Route

I cannot get this to work inside of Wix. I have tried a number of support answers and they ask for things such as repeaters that do not exist. I have created packages, imported functions and it just will not work.

I cannot be the only one who has asked for this and are there detailed instruction on how to get this to work.

All code in Wix Velo is Javascript, however you don’t have access to the DOM. You can add HTML into your site, however it has to be either through an HtmlComponent or a Wix Custom Element .

Refer to the Google Maps example to see one possible way to add a Google Map to your site.

Thanks :grin:, I thought you had to leave out the head etc. I Put that in and it works fine.