【问题标题】:Draw a Circle of a fixed radius that can be drag-able?绘制一个可以拖动的固定半径的圆?
【发布时间】:2014-03-03 14:52:30
【问题描述】:

我想在谷歌地图上创建一个可以从用户那里拖动的 cricle。但是圆的半径是静态的。所以知道我们该怎么做。

这就是我创建圈子

的方式
Circle circle = mMap.addCircle(new CircleOptions()
                .center(new LatLng(Latitude, longitude)).radius(100)
                .strokeColor(Color.RED));

请建议我必须做什么才能使圆圈可以拖动。

【问题讨论】:

    标签: android google-maps-android-api-2 android-maps-v2


    【解决方案1】:

    您可以尝试detect touch,然后添加/删除同一个圈子(提供删除here)。如果您要对每个事件做出反应,它可能会出现一些性能问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-12
      • 2017-06-06
      • 1970-01-01
      • 2019-08-20
      • 1970-01-01
      相关资源
      最近更新 更多