在 Google 地图上制作可点击的多边形(适用于 And
本文介绍了在 Google 地图上制作可点击的多边形(适用于 Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个城市各个区域的连续 LatLngs.有什么方法可以用它创建可点击的多边形.曾经的方法是
I have continuous LatLngs of various areas in a city. Is there any way I can create clickable polygons with it. Once way to go about would be to
- 使用可用的 LatLngs 生成多边形.(我想用颜色编码在地图上直观地显示多边形)
- 设置
setOnMapClickListener
. - 在多边形内做一个点测试.
我知道这很幼稚.有哪些替代方法?
I understand that this is very naive. What are the alternative approaches?
推荐答案
我是这样做的.
希望对您有所帮助.
这篇关于在 Google 地图上制作可点击的多边形(适用于 Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!