开发者

Google Maps API for Flash - clickable Polyline

开发者 https://www.devze.com 2023-02-12 16:11 出处:网络
I have added event开发者_StackOverflow社区 listener that is fired each time a polyline is clicked. How can I identify the polyline that was clicked? Is it possible?

I have added event开发者_StackOverflow社区 listener that is fired each time a polyline is clicked. How can I identify the polyline that was clicked? Is it possible?

Thanks


it is possible. Here is the code:

public function cutToEnd(event:MapMouseEvent):void
{           
    var clickedPolyline:Polyline = event.feature as  Polyline;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消