Google street view | html component

hello,
I m trying to get the street view of some locations on click but i can t manage to do it … grr
any help from a master would be so appreciated :slight_smile:

here is the component :

Street View Side-By-Side html, body { height: 100%; margin: 0; padding: 0; } #pano { height: 100%; width: 100%; }

Latitude



Longitude

here is the page code :
export function goButton_click(event) {
let data =
{“lati”:$w(“#lati”).value,
“longi”: $w(“#longi”).value)}
$w(“#streetView”).postMessage(data);
}

See here for working with the Wix HTML Component.
https://support.wix.com/en/article/corvid-working-with-the-html-element
https://www.wix.com/corvid/reference/$w.HtmlComponent.html

Also note that Wix won’t provide support for code that comes from third parties that they have not had the chance to test and get working themselves.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site

As for Google Maps within Wix, then have a look at these pages here.
https://support.wix.com/en/article/adding-and-setting-up-google-maps
https://www.embedgooglemap.co.uk/how-to-add-google-maps-to-wix/
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-multiple-markers-google-maps

Show Street View control
This setting show or hides the Google Street View tool.