[ WIXcode ]How to set map address from collection cell?

I want set address to map from collection cell. What good way?
Now I can set address in map’s options.

Thank you!

What map are you referring to? Google Map? If so, look here:

1 Like

Thank you Giri Zano.

I had read wixcode reference. I understand it.

I hope is,
I want use google maps. (in contact menu)
ex. 東京都新宿区新宿1-20-2 <–(This is Japanese address. it can search spot on google maps )

I want result is,

  1. Input text address in collection
  2. Connect to google maps parts in dynamic page.
  3. Pointing it address on google maps.

If wix code can use latitude and longitude then it can be use text address.

Thank you!

Hello Watanabe (assuming that is your first name),
I have been working with the Google Maps component for a while, and you have to know that it has a difference between user interface as component and as API;

  1. if you use the component on a web page, you can input an address and the component will look it up thru the Google API and if this is a know address, it will put a tear drop on the map
  2. if you use the API, you can only set 3 properties: longitude, latitude and name, so the search by name is not there.
    If you want to search by address, you will prob. have to us Google Maps API and use Google Maps on your dynamic page. But then, how do you get the Google Map on your dynamic page?
    I tried this using the HTML-component and send a message to it, the message being the HTML. If you can just use an URL (instead of HTML) you will be OK. If not, I hope Google Maps does not use scripting (I do not know, I have not checked), because I cannot get scripting to work inside the component.

Look at the API docs for the HTML-component . Replace the input from the button with some fields from your collection, clean up the static HTML and you should be OK.

If you can get scripting to work inside the component, please post this on this board, I can not.
Hope this helps.

2 Likes