【问题标题】:gmaps - find locations within visible areagmaps - 在可见区域内查找位置
【发布时间】:2011-06-23 11:58:42
【问题描述】:

我正在尝试开发一个函数来获取当前可见区域内的所有相关记录。

http://code.google.com/apis/maps/articles/phpsqlsearch.html

我找到了这个教程(并让它工作)来获取半径内的位置,这很有帮助,但我需要它完全在可见部分(矩形)内。

知道它是如何工作的吗?

提前致谢!

【问题讨论】:

标签: mysql google-maps geolocation


【解决方案1】:

当前可见区域可以通过Map objects getBounds() method来确定。如果您有一个点或纬度/经度列表,您可以使用 MySQL 来查询它,提供从地图返回的边界。您也可以使用Fusion Tables to store your data instead of MySQLuse its relatively new Geo methods

【讨论】:

    猜你喜欢
    • 2012-08-18
    • 1970-01-01
    • 2011-08-21
    • 1970-01-01
    • 2011-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-22
    相关资源
    最近更新 更多