小编Jay*_*Jay的帖子

Android-仅在地图中显示确定区域中包含的标记

我的应用程序带有地图。在此地图中,我在设备的当前位置放置了一个标记。我还围绕标记添加了一个圆圈,如下所示:

    Circle circle = mMap.addCircle(new CircleOptions()
                        .center(latLng)
                        .radius(400)     //The radius of the circle, specified in meters. It should be zero or greater.
                        .strokeColor(Color.rgb(0, 136, 255))
                        .fillColor(Color.argb(20, 0, 136, 255)));
Run Code Online (Sandbox Code Playgroud)

结果是这样的:
这是结果的示例

我有一个数据库,其中某些位置的特征是经度和纬度。

我将在地图中设置标记,仅针对先前添加的圆内的位置。
我如何理解该区域中包括哪些?

请帮助我,谢谢!

java maps android google-maps coordinates

4
推荐指数
2
解决办法
3164
查看次数

标签 统计

android ×1

coordinates ×1

google-maps ×1

java ×1

maps ×1