【问题标题】:Is there anyway to remove a Route or Polyline on the MAPS in Appcelerator无论如何要在 Appcelerator 中的 MAPS 上删除路线或折线
【发布时间】:2019-01-31 20:06:35
【问题描述】:

我需要删除我在地图上创建的路线或折线。我无法做到这一点。我在文档中找不到有关如何执行此操作的任何解释。无论如何,还是我每次都必须重新创建地图对象?

var kuzeyYol = Map.createRoute({
    name:'guzergah',
    width: 4,
    color: 'green',
    points: noktalar
});

harita.addRoute(kuzeyYol);

【问题讨论】:

    标签: routes maps titanium appcelerator appcelerator-titanium


    【解决方案1】:

    有一个 removeRouteremovePolygon 方法将要移除的路线或多边形作为第一个和单个参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-19
      • 1970-01-01
      • 1970-01-01
      • 2018-07-02
      相关资源
      最近更新 更多