React-google-maps: Inject a adrress and show it on maps [help]

Created on 27 Jun 2018  路  5Comments  路  Source: tomchentw/react-google-maps

Hello!

How can I inject a address (from a form) on map, and show the address on it, thru the mark?

I've make a search, and sadly found nothing.

Most helpful comment

Sure
I've made a "two-way data binding" between the inner search component and one input text in my app.
Then you hide the inner search with the last example css.
I suggest add width: 10px, height: 10px in the inner search (just in case the user hover the map and change the cursor, case hover the search)
Then, when the address is completed filled to search, you need to trigger the onBlur of inner search and VOIL脌!

some examples of my code:

image

image
image

All 5 comments

Hi @yuritoledo .
Can I ask you why you close this issue? Do you find any solution?
Thanks!

Hello dude
Yes, i've made a workaround :P

Great, can you share it? or give us a tip?
Thank you anyway!!

Sure
I've made a "two-way data binding" between the inner search component and one input text in my app.
Then you hide the inner search with the last example css.
I suggest add width: 10px, height: 10px in the inner search (just in case the user hover the map and change the cursor, case hover the search)
Then, when the address is completed filled to search, you need to trigger the onBlur of inner search and VOIL脌!

some examples of my code:

image

image
image

Thank you very much!!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wayofthefuture picture wayofthefuture  路  3Comments

shrimpy picture shrimpy  路  3Comments

MrSaints picture MrSaints  路  3Comments

ShintaroNippon picture ShintaroNippon  路  3Comments

johnantoni picture johnantoni  路  3Comments