简体   繁体   English

使用Google Maps v3 API搜索MySQL数据

[英]Search MySQL data using Google Maps v3 API

I have made a system/web app that will view resident info from the map. 我已经制作了一个系统/网络应用程序,可以从地图上查看居民信息。 My problem is how can I search resident with inputted value('name','last name',etc...) from text field and displays all result in a marker (with infowindow content) in the map with a value like in the text field? 我的问题是如何从文本字段中搜索具有输入值(“名称”,“姓氏”等)的居民,并在地图中的标记(带有信息窗口内容)中显示所有结果,并带有文本域?

I use codeigniter-googlemaps-v3 API library and Google Maps V3 API. 我使用codeigniter-googlemaps-v3 API库和Google Maps V3 API。 Any help, suggestions, ideas and sample codes is heavenly appreciated. 任何帮助,建议,想法和示例代码都将受到极大的赞赏。

I solved it. 我解决了 See this link , all my codes are there on how I solve the problem. 看到此链接 ,我所有的代码都在其中,说明了我如何解决该问题。 The codes are in AJAX and in Controller form. 代码以AJAX和控制器形式出现。

Although it's not complete, since you'll see at the link that there is an additional problem. 尽管还不完整,但是由于您会在链接中看到还有其他问题。 And I base the solution on this link . 我基于此链接解决方案。

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

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