检查点是否在多边形中(Google Maps API) [英] Check whether or not a point is in a polygon (Google Maps API)

查看:30
本文介绍了检查点是否在多边形中(Google Maps API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一张地图 这里

如何使用 Google Maps API 检测给定坐标是否在该多边形内?这可能吗?

How can I, using Google Maps API, detect whether or not a given coordinate is within that polygon? Is that possible?

提前致谢.

推荐答案

是的,这是可能的.看到这个功能:http://github.com/tparkin/Google-Maps-Point-in-Polygon

Yes it is possible. See this function: http://github.com/tparkin/Google-Maps-Point-in-Polygon

这篇关于检查点是否在多边形中(Google Maps API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆