You should create a separate click event for your polyline. However, it is hard for the map to determine whether you clicked the map or the polyline. In the case of a polygon, the API should not fire the map event.
If not, you may want to implement some sort of state pattern to block code that shouldn't execute.
CrazyEnigma
2010-07-20 14:35:24