polylines added to pathLayer, pathLayer cleared on click