Get location coordinates when clicking on maps

Hi,

when I click on a specific location in a google map, I would like to retrieve the relative coordinates. Is that possible?

Thanks

Thx. I assume that there is no way to do it without using HTMLComponent, right?

Take a look onto this one…
https://www.wix.com/velo/reference/$w/googlemap/location

thx again.
I need to fetch the location when i click on the marker on the map because
I will use the location to fetch other information and display them as a box on the map.
Basically I would need an onClick on the location marker unless there is another way that I cannot see…

The google-map out of the Wix-Box won’t make you happy.

Why?

  1. single-location-point only (no possibility to set multiple-pins on map)
  2. no click-event-option onto the marker

All you can do on the provided version is.
https://www.wix.com/velo/reference/$w/googlemap/location

You will have to go the CUSTOM-WAY (like in most cases) if you want to generate your own wished functionality on your page.

This is your way to success…

  1. Implement an HTML-Component onto your site.
  2. Register on GOOGLE-MAPS to get a access-token/key
  3. Follow the instructions of the shown EXAMPLE.

Ok I see. Thanks again for the prompt answer. Will try to make it work :slight_smile: