简体   繁体   English

将Gmaps.js与搜索字段一起使用

[英]Using Gmaps.js with a search field

Is there a way to use a search field to seek addresses on the Gmaps.js library? 有没有一种方法可以使用搜索字段在Gmaps.js库中查找地址?

Also, can I get the coordinates from this address to save on my database? 另外,我可以从该地址获取坐标以保存在数据库中吗?

I followed the Google Maps V3 API and managed to get this result, but I'm wondering if through this javascrips library is also possible. 我遵循了Google Maps V3 API并设法获得了此结果,但我想知道是否也可以通过此javascrips库。 Cheers 干杯

Yes you can. 是的你可以。 For a live example, please see link . 有关实时示例,请参见link

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM