1
我在地图上画了一个圆圈,现在我想删除这个圈子,我该怎么做?诺基亚HERE地图:删除圈子
var radiusCircle = new nokia.maps.map.Circle(
[viewportCenter.latitude, viewportCenter.longitude],
100000,
{
fillColor: "#F004",
$id: "radiusCircle"
}
);
Map.map.objects.add(radiusCircle);
我都试过了,从MapObject
具有visibility财产radiusCircle.hide();
radiusCircle.destroy()
radiusCircle.remove();
我想这一点,'VAR标记=地图。 objects.get(radiusCircle.id); \t \t marker.destroy();'没有工作。任何想法为什么? – Rao
我该如何让这个圈子可以拖动? – Rao
尝试查看API Explorer中的[Draggable Shapes](http://developer.here.com/apiexplorer/examples/api-for-js/shapes/map-with-draggable-shapes.html)示例。 –